Instructions to use embedme/lightonai-lateon-Q4_0 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- llama-cpp-python
How to use embedme/lightonai-lateon-Q4_0 with llama-cpp-python:
# !pip install llama-cpp-python from llama_cpp import Llama llm = Llama.from_pretrained( repo_id="embedme/lightonai-lateon-Q4_0", filename="LateOn-Q4_0.gguf", )
output = llm( "Once upon a time,", max_tokens=512, echo=True ) print(output)
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use embedme/lightonai-lateon-Q4_0 with llama.cpp:
Install (macOS, Linux)
curl -LsSf https://llama.app/install.sh | sh # Start a local OpenAI-compatible server with a web UI: llama serve -hf embedme/lightonai-lateon-Q4_0:Q4_0 # Run inference directly in the terminal: llama cli -hf embedme/lightonai-lateon-Q4_0:Q4_0
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf embedme/lightonai-lateon-Q4_0:Q4_0 # Run inference directly in the terminal: llama cli -hf embedme/lightonai-lateon-Q4_0:Q4_0
Use pre-built binary
# Download pre-built binary from: # https://github.com/ggerganov/llama.cpp/releases # Start a local OpenAI-compatible server with a web UI: ./llama-server -hf embedme/lightonai-lateon-Q4_0:Q4_0 # Run inference directly in the terminal: ./llama-cli -hf embedme/lightonai-lateon-Q4_0:Q4_0
Build from source code
git clone https://github.com/ggerganov/llama.cpp.git cd llama.cpp cmake -B build cmake --build build -j --target llama-server llama-cli # Start a local OpenAI-compatible server with a web UI: ./build/bin/llama-server -hf embedme/lightonai-lateon-Q4_0:Q4_0 # Run inference directly in the terminal: ./build/bin/llama-cli -hf embedme/lightonai-lateon-Q4_0:Q4_0
Use Docker
docker model run hf.co/embedme/lightonai-lateon-Q4_0:Q4_0
- LM Studio
- Jan
- Ollama
How to use embedme/lightonai-lateon-Q4_0 with Ollama:
ollama run hf.co/embedme/lightonai-lateon-Q4_0:Q4_0
- Unsloth Studio
How to use embedme/lightonai-lateon-Q4_0 with Unsloth Studio:
Install Unsloth Studio (macOS, Linux, WSL)
curl -fsSL https://unsloth.ai/install.sh | sh # Run unsloth studio unsloth studio -H 0.0.0.0 -p 8888 # Then open http://localhost:8888 in your browser # Search for embedme/lightonai-lateon-Q4_0 to start chatting
Install Unsloth Studio (Windows)
irm https://unsloth.ai/install.ps1 | iex # Run unsloth studio unsloth studio -H 0.0.0.0 -p 8888 # Then open http://localhost:8888 in your browser # Search for embedme/lightonai-lateon-Q4_0 to start chatting
Using HuggingFace Spaces for Unsloth
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for embedme/lightonai-lateon-Q4_0 to start chatting
- Atomic Chat new
- Docker Model Runner
How to use embedme/lightonai-lateon-Q4_0 with Docker Model Runner:
docker model run hf.co/embedme/lightonai-lateon-Q4_0:Q4_0
- Lemonade
How to use embedme/lightonai-lateon-Q4_0 with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull embedme/lightonai-lateon-Q4_0:Q4_0
Run and chat with the model
lemonade run user.lightonai-lateon-Q4_0-Q4_0
List all available models
lemonade list
LateOn Q4_0 for litembeddings
A compact Q4_0 GGUF conversion of lightonai/LateOn, a 149M-parameter ModernBERT ColBERT retrieval model. This speed/size variant is built for litembeddings and includes the model's complete three-stage PyLate projection folded into one 768-to-128 matrix.
Q4_0 is intended for high-throughput packed indexing and retrieval. It is approximately 40% smaller than the Q8_0 conversion and reached approximately 29.9k tokens/s at packed saturation on an Apple M4 Max, versus approximately 20.9k tokens/s for Q8_0 under the same benchmark. Very short single requests are dominated by dispatch overhead and are not consistently faster; use Q8_0 when maximum numerical fidelity matters more than size or packed throughput.
Files
| File | Purpose | SHA-256 |
|---|---|---|
LateOn-Q4_0.gguf |
Q4_0 ModernBERT encoder | 6562738e6ea23e59ad739c7c792afe0e2c64c57158dd65f08109a30bb987f1c6 |
LateOn-Q4_0.projection |
Folded 768-to-128 PyLate projection | 3e7fd24683cbcde958448d2d7120d7f12d4d0abcb67bed47e19e7a3170a5fa0a |
Both files are required. The GGUF encoder alone produces 768-dimensional token vectors; litembeddings applies and normalizes the supplied projection to produce the model's intended 128-dimensional token vectors.
litembeddings usage
.load ./litembeddings
SELECT lembed_model(
'/path/to/LateOn-Q4_0.gguf',
json_object(
'colbert_projection', '/path/to/LateOn-Q4_0.projection',
'ctx_size', 300,
'batch_size', 300
)
);
-- Full-precision token vectors.
SELECT lembed_tokens('What is SQLite WAL mode?');
-- Compact int8 token vectors for storage and MaxSim search.
SELECT lembed_tokens_quantized('What is SQLite WAL mode?');
SELECT lembed_maxsim(
lembed_tokens('What is SQLite WAL mode?'),
lembed_tokens('WAL mode lets SQLite readers coexist with one writer.')
);
LateOn was trained for queries up to 32 tokens and documents up to 300 tokens. Use the same preprocessing and retrieval conventions as the source model when comparing quality results.
Validation
An end-to-end parity check against the source FP32 Transformers/PyLate pipeline over 331 output tokens produced per-token cosine similarity min=0.994162, mean=0.998347.
A 216-document FastAPI retrieval evaluation with 50 queries retained the same measured ranking metrics as exact search with this artifact: MRR 0.8284, Hits@1/5/10 74% / 94% / 96%, and weighted score 92/100. This is a small validation corpus, not a replacement for task-specific evaluation; Q4 quantization can affect other corpora or near-tied rankings.
Conversion provenance
- Source:
lightonai/LateOn - Source revision:
c01907b70557ee5c7753680d4819a5cce1674b83 - Converted: 2026-07-14
- llama.cpp revision:
6eddde06a4f25d55d538b5d15628dcc2b6882147 - Quantization: Q4_0 from the F16 GGUF conversion
- Projection:
W3 @ (W2 + R2) @ (W1 + R1), preserving both learned dimension-changing PyLate residuals
License and attribution
The source model is released under Apache 2.0. See the LateOn model card for training details, evaluation results, intended use, limitations, and citation information. This repository is an independent conversion and is not affiliated with LightOn.
- Downloads last month
- 17
4-bit
Model tree for embedme/lightonai-lateon-Q4_0
Base model
lightonai/LateOn