LateOn-Code-edge (GGUF f32 + Projection)
Lossless GGUF conversion of lightonai/LateOn-Code-edge for use with litembeddings.
This is the original float32 precision — no quantization loss.
Model Details
Variants
Files
Usage with litembeddings
.load ./build/litembeddings
-- Load model with projection
SELECT lembed_model('lightonai-lateon-code-edge-f32.gguf',
'{"colbert_projection": "lightonai-lateon-code-edge-f32.projection"}');
-- Generate token embeddings for code
SELECT lembed_tokens('async fn get_connection(pool: &Pool) -> Result<Connection>');
-- Code search with MaxSim
SELECT
id, code,
lembed_maxsim(lembed_tokens('database connection pool'), token_emb) AS score
FROM code_embeddings
ORDER BY score DESC
LIMIT 10;
Quantization Quality Benchmark
Tested across 3 codebases (jq/C, Rails/Ruby, FastAPI/Python) with 150 questions total (15 easy + 20 medium + 15 hard per codebase). Weighted scoring: easy×1, medium×2, hard×3 = 100 points per codebase, 300 total.
Aggregate Weighted Scores
Per-Corpus Scores
Quantization Quality (Top-1 Agreement vs f32)
Key Findings
- f16 is lossless — identical weighted score (240/300) and 100% top-1 agreement across all codebases
- Q8_0 loses only 1% — 237/300 vs 240/300, drops only on hard queries in jq corpus
- Q8_0 is fastest — 2.5s avg query vs 3.4s f32 vs 13.4s f16 (CPU without FP16 hardware)
- Easy/medium questions show zero quality difference between all variants
Conversion
Converted using litembeddings' ColBERT converter with PyLate projection support:
python scripts/convert_colbert_to_gguf.py lightonai/LateOn-Code-edge ./models \
--name lightonai-lateon-code-edge-f32 --quantize f32