Sentence Similarity
GGUF
sentence-transformers
English
litembeddings
modernbert
dense-retrieval
feature-extraction
quantized
Instructions to use embedme/lightonai-denseon-Q8_0 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- sentence-transformers
How to use embedme/lightonai-denseon-Q8_0 with sentence-transformers:
from sentence_transformers import SentenceTransformer model = SentenceTransformer("embedme/lightonai-denseon-Q8_0") sentences = [ "That is a happy person", "That is a happy dog", "That is a very happy person", "Today is a sunny day" ] embeddings = model.encode(sentences) similarities = model.similarity(embeddings, embeddings) print(similarities.shape) # [4, 4] - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use embedme/lightonai-denseon-Q8_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-denseon-Q8_0:Q8_0 # Run inference directly in the terminal: llama cli -hf embedme/lightonai-denseon-Q8_0:Q8_0
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf embedme/lightonai-denseon-Q8_0:Q8_0 # Run inference directly in the terminal: llama cli -hf embedme/lightonai-denseon-Q8_0:Q8_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-denseon-Q8_0:Q8_0 # Run inference directly in the terminal: ./llama-cli -hf embedme/lightonai-denseon-Q8_0:Q8_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-denseon-Q8_0:Q8_0 # Run inference directly in the terminal: ./build/bin/llama-cli -hf embedme/lightonai-denseon-Q8_0:Q8_0
Use Docker
docker model run hf.co/embedme/lightonai-denseon-Q8_0:Q8_0
- LM Studio
- Jan
- Ollama
How to use embedme/lightonai-denseon-Q8_0 with Ollama:
ollama run hf.co/embedme/lightonai-denseon-Q8_0:Q8_0
- Unsloth Studio
How to use embedme/lightonai-denseon-Q8_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-denseon-Q8_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-denseon-Q8_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-denseon-Q8_0 to start chatting
- Docker Model Runner
How to use embedme/lightonai-denseon-Q8_0 with Docker Model Runner:
docker model run hf.co/embedme/lightonai-denseon-Q8_0:Q8_0
- Lemonade
How to use embedme/lightonai-denseon-Q8_0 with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull embedme/lightonai-denseon-Q8_0:Q8_0
Run and chat with the model
lemonade run user.lightonai-denseon-Q8_0-Q8_0
List all available models
lemonade list
- Atomic Chat
Publish DenseOn Q8_0 from cb9947e
Browse filesConverted with llama.cpp 6eddde0; preserves native CLS pooling and verified litembeddings usage.
- .gitattributes +1 -0
- DenseOn-Q8_0.gguf +3 -0
- README.md +58 -0
.gitattributes
CHANGED
|
@@ -33,3 +33,4 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
|
|
| 33 |
*.zip filter=lfs diff=lfs merge=lfs -text
|
| 34 |
*.zst filter=lfs diff=lfs merge=lfs -text
|
| 35 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
|
|
|
|
|
| 33 |
*.zip filter=lfs diff=lfs merge=lfs -text
|
| 34 |
*.zst filter=lfs diff=lfs merge=lfs -text
|
| 35 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
| 36 |
+
DenseOn-Q8_0.gguf filter=lfs diff=lfs merge=lfs -text
|
DenseOn-Q8_0.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:506d5bab02a4adf7c00a71fef2bb58bfa54f769e15670886e212af7c16b4ccff
|
| 3 |
+
size 160208288
|
README.md
ADDED
|
@@ -0,0 +1,58 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
base_model: lightonai/DenseOn
|
| 3 |
+
library_name: litembeddings
|
| 4 |
+
license: apache-2.0
|
| 5 |
+
language:
|
| 6 |
+
- en
|
| 7 |
+
pipeline_tag: sentence-similarity
|
| 8 |
+
tags:
|
| 9 |
+
- gguf
|
| 10 |
+
- litembeddings
|
| 11 |
+
- modernbert
|
| 12 |
+
- sentence-transformers
|
| 13 |
+
- dense-retrieval
|
| 14 |
+
- feature-extraction
|
| 15 |
+
- quantized
|
| 16 |
+
---
|
| 17 |
+
|
| 18 |
+
# DenseOn Q8_0 for litembeddings
|
| 19 |
+
|
| 20 |
+
A Q8_0 GGUF conversion of [lightonai/DenseOn](https://huggingface.co/lightonai/DenseOn), a 149M-parameter ModernBERT dense retrieval model. DenseOn emits one 768-dimensional, L2-normalized vector using CLS pooling and was trained with asymmetric query/document prefixes.
|
| 21 |
+
|
| 22 |
+
## Files
|
| 23 |
+
|
| 24 |
+
| File | Purpose | SHA-256 |
|
| 25 |
+
|---|---|---|
|
| 26 |
+
| `DenseOn-Q8_0.gguf` | Q8_0 ModernBERT encoder with native CLS pooling metadata | `506d5bab02a4adf7c00a71fef2bb58bfa54f769e15670886e212af7c16b4ccff` |
|
| 27 |
+
|
| 28 |
+
## litembeddings usage
|
| 29 |
+
|
| 30 |
+
```sql
|
| 31 |
+
.load ./litembeddings
|
| 32 |
+
|
| 33 |
+
SELECT lembed_model(
|
| 34 |
+
'/path/to/DenseOn-Q8_0.gguf',
|
| 35 |
+
json_object('ctx_size', 512, 'batch_size', 512)
|
| 36 |
+
);
|
| 37 |
+
|
| 38 |
+
-- Prefixes are required by DenseOn's training contract.
|
| 39 |
+
SELECT lembed('query: best database indexing strategy');
|
| 40 |
+
SELECT lembed('document: covering indexes can avoid table lookups');
|
| 41 |
+
```
|
| 42 |
+
|
| 43 |
+
Use `query: ` for queries and `document: ` for corpus passages. Omitting or swapping these prefixes can reduce retrieval quality. The source model's maximum sequence length is 512 tokens.
|
| 44 |
+
|
| 45 |
+
## Conversion provenance
|
| 46 |
+
|
| 47 |
+
- Source: [`lightonai/DenseOn`](https://huggingface.co/lightonai/DenseOn)
|
| 48 |
+
- Source revision: `cb9947ebccb33862d24e3c7ca2edb25e51acd887`
|
| 49 |
+
- Converted: 2026-07-14
|
| 50 |
+
- llama.cpp revision: `6eddde06a4f25d55d538b5d15628dcc2b6882147`
|
| 51 |
+
- Quantization: Q8_0
|
| 52 |
+
- Pooling: native CLS pooling from sentence-transformers metadata
|
| 53 |
+
|
| 54 |
+
An end-to-end parity check against the source FP32 Transformers pipeline produced cosine similarity `0.999389` for the validation query. Small differences are expected from Q8_0 quantization.
|
| 55 |
+
|
| 56 |
+
## License and attribution
|
| 57 |
+
|
| 58 |
+
The source model is released under Apache 2.0. See the [DenseOn model card](https://huggingface.co/lightonai/DenseOn) for training details, evaluation results, intended use, limitations, and citation information. This repository is an independent conversion and is not affiliated with LightOn.
|