Sentence Similarity
GGUF
sentence-transformers
Russian
English
feature-extraction
embeddings
text-embeddings
russian-text-embeddings
russian-embeddings
multilingual-embeddings
semantic-search
retrieval
rag
russian
local-ai
llama-cpp
ollama
apple-silicon
cuda
cpu
quantized
q8
q6
q4
Instructions to use ai-babai/giga-embeddings-0826-3b-gguf with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- sentence-transformers
How to use ai-babai/giga-embeddings-0826-3b-gguf with sentence-transformers:
from sentence_transformers import SentenceTransformer model = SentenceTransformer("ai-babai/giga-embeddings-0826-3b-gguf") sentences = [ "Это счастливый человек", "Это счастливая собака", "Это очень счастливый человек", "Сегодня солнечный день" ] 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 ai-babai/giga-embeddings-0826-3b-gguf 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 ai-babai/giga-embeddings-0826-3b-gguf:Q4_K_M # Run inference directly in the terminal: llama cli -hf ai-babai/giga-embeddings-0826-3b-gguf:Q4_K_M
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf ai-babai/giga-embeddings-0826-3b-gguf:Q4_K_M # Run inference directly in the terminal: llama cli -hf ai-babai/giga-embeddings-0826-3b-gguf:Q4_K_M
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 ai-babai/giga-embeddings-0826-3b-gguf:Q4_K_M # Run inference directly in the terminal: ./llama-cli -hf ai-babai/giga-embeddings-0826-3b-gguf:Q4_K_M
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 ai-babai/giga-embeddings-0826-3b-gguf:Q4_K_M # Run inference directly in the terminal: ./build/bin/llama-cli -hf ai-babai/giga-embeddings-0826-3b-gguf:Q4_K_M
Use Docker
docker model run hf.co/ai-babai/giga-embeddings-0826-3b-gguf:Q4_K_M
- LM Studio
- Jan
- Ollama
How to use ai-babai/giga-embeddings-0826-3b-gguf with Ollama:
ollama run hf.co/ai-babai/giga-embeddings-0826-3b-gguf:Q4_K_M
- Unsloth Desktop
- Docker Model Runner
How to use ai-babai/giga-embeddings-0826-3b-gguf with Docker Model Runner:
docker model run hf.co/ai-babai/giga-embeddings-0826-3b-gguf:Q4_K_M
- Lemonade
How to use ai-babai/giga-embeddings-0826-3b-gguf with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull ai-babai/giga-embeddings-0826-3b-gguf:Q4_K_M
Run and chat with the model
lemonade run user.giga-embeddings-0826-3b-gguf-Q4_K_M
List all available models
lemonade list
- Atomic Chat
Polish model card and add quantization chooser
Browse files- .gitattributes +1 -0
- README.md +21 -16
- README.ru.md +22 -16
- assets/giga-embeddings-0826-gguf-choice.png +3 -0
- assets/giga-embeddings-0826-gguf-choice.svg +126 -0
- manifest.json +12 -0
.gitattributes
CHANGED
|
@@ -37,3 +37,4 @@ giga-embeddings-0826-3b-bf16.gguf filter=lfs diff=lfs merge=lfs -text
|
|
| 37 |
giga-embeddings-0826-3b-q4_k_m.gguf filter=lfs diff=lfs merge=lfs -text
|
| 38 |
giga-embeddings-0826-3b-q6_k.gguf filter=lfs diff=lfs merge=lfs -text
|
| 39 |
giga-embeddings-0826-3b-q8_0.gguf filter=lfs diff=lfs merge=lfs -text
|
|
|
|
|
|
| 37 |
giga-embeddings-0826-3b-q4_k_m.gguf filter=lfs diff=lfs merge=lfs -text
|
| 38 |
giga-embeddings-0826-3b-q6_k.gguf filter=lfs diff=lfs merge=lfs -text
|
| 39 |
giga-embeddings-0826-3b-q8_0.gguf filter=lfs diff=lfs merge=lfs -text
|
| 40 |
+
assets/giga-embeddings-0826-gguf-choice.png filter=lfs diff=lfs merge=lfs -text
|
README.md
CHANGED
|
@@ -46,19 +46,22 @@ included for research, but is not a better default than Q8_0 or Q4_K_M.
|
|
| 46 |
This is an independent `ai-babai` GGUF conversion, not an official `ai-sage`
|
| 47 |
release.
|
| 48 |
|
|
|
|
|
|
|
| 49 |
## Choose a file
|
| 50 |
|
| 51 |
-
| Variant | Best for |
|
| 52 |
|---|---|---:|---:|---:|---:|
|
| 53 |
-
| **Q8_0** | **recommended default** | **3.
|
| 54 |
-
| **Q4_K_M** | **lightweight / experimental** | **1.
|
| 55 |
-
| BF16 | high-precision reference | 6.
|
| 56 |
-
| Q6_K | research / owner review | 2.
|
| 57 |
|
| 58 |
Apple Silicon uses unified memory. Metal allocation and process RSS are
|
| 59 |
different views of the same shared memory and must not be added together. Peak
|
| 60 |
-
process RSS in the same Mac runs was
|
| 61 |
-
|
|
|
|
| 62 |
|
| 63 |
## Quick start
|
| 64 |
|
|
@@ -129,21 +132,23 @@ leaderboard submission, or a cross-model comparison.
|
|
| 129 |
| Q4_K_M | 0.778297 | 0.769349 | 0.888652 | −0.0461 points |
|
| 130 |
|
| 131 |
¹The small positive aggregate difference is not evidence that Q6_K improves the
|
| 132 |
-
model.
|
| 133 |
-
long-code
|
| 134 |
|
| 135 |
The stricter frozen multilingual/code holdout compared each quantized GGUF with
|
| 136 |
the BF16 GGUF:
|
| 137 |
|
| 138 |
-
| Variant | Min / mean vector cosine | Top-1 agreement | Mean top-10 overlap |
|
| 139 |
-
|---|---:|---:|---:|
|
| 140 |
-
| Q8_0 | 0.993540 / 0.999734 | 100.00% | 99.06% |
|
| 141 |
-
| Q6_K | 0.974783 / 0.997845 | 99.61% | 97.07% |
|
| 142 |
-
| Q4_K_M | 0.950085 / 0.982052 | 96.88% | 91.37% |
|
| 143 |
|
| 144 |
These agreement numbers measure preservation versus our BF16 GGUF, not absolute
|
| 145 |
-
retrieval accuracy.
|
| 146 |
-
|
|
|
|
|
|
|
| 147 |
|
| 148 |
## Measured speed
|
| 149 |
|
|
|
|
| 46 |
This is an independent `ai-babai` GGUF conversion, not an official `ai-sage`
|
| 47 |
release.
|
| 48 |
|
| 49 |
+

|
| 50 |
+
|
| 51 |
## Choose a file
|
| 52 |
|
| 53 |
+
| Variant | Best for | File size | Saving vs BF16 | Metal memory | CUDA peak VRAM |
|
| 54 |
|---|---|---:|---:|---:|---:|
|
| 55 |
+
| **Q8_0** | **recommended default** | **3.35 GB** | **46.8%** | **5.04 GB** | **5.38 GB** |
|
| 56 |
+
| **Q4_K_M** | **lightweight / experimental** | **1.96 GB** | **68.9%** | **3.65 GB** | **3.99 GB** |
|
| 57 |
+
| BF16 | high-precision reference | 6.31 GB | — | 8.00 GB | not measured |
|
| 58 |
+
| Q6_K | research / owner review | 2.59 GB | 58.9% | 4.28 GB | 4.62 GB |
|
| 59 |
|
| 60 |
Apple Silicon uses unified memory. Metal allocation and process RSS are
|
| 61 |
different views of the same shared memory and must not be added together. Peak
|
| 62 |
+
process RSS in the same Mac runs was 8.21 / 5.20 / 4.45 / 3.84 GB for BF16 /
|
| 63 |
+
Q8_0 / Q6_K / Q4_K_M. All capacities in this section use decimal GB
|
| 64 |
+
(`1 GB = 10^9 bytes`); measured MiB values were converted to GB.
|
| 65 |
|
| 66 |
## Quick start
|
| 67 |
|
|
|
|
| 132 |
| Q4_K_M | 0.778297 | 0.769349 | 0.888652 | −0.0461 points |
|
| 133 |
|
| 134 |
¹The small positive aggregate difference is not evidence that Q6_K improves the
|
| 135 |
+
model. A separate frozen representation comparison found one reproducible
|
| 136 |
+
long-code outlier for Q6_K.
|
| 137 |
|
| 138 |
The stricter frozen multilingual/code holdout compared each quantized GGUF with
|
| 139 |
the BF16 GGUF:
|
| 140 |
|
| 141 |
+
| Variant | Min / mean vector cosine | Top-1 agreement | Mean top-10 overlap |
|
| 142 |
+
|---|---:|---:|---:|
|
| 143 |
+
| Q8_0 | 0.993540 / 0.999734 | 100.00% | 99.06% |
|
| 144 |
+
| Q6_K | 0.974783 / 0.997845 | 99.61% | 97.07% |
|
| 145 |
+
| Q4_K_M | 0.950085 / 0.982052 | 96.88% | 91.37% |
|
| 146 |
|
| 147 |
These agreement numbers measure preservation versus our BF16 GGUF, not absolute
|
| 148 |
+
retrieval accuracy. All four files passed functional runtime validation. The
|
| 149 |
+
larger representation drift is why Q4_K_M is labeled experimental even though
|
| 150 |
+
its full RuBQ+SciFact NDCG loss was small; Q6_K's lower minimum comes from one
|
| 151 |
+
reproducible long-code sample.
|
| 152 |
|
| 153 |
## Measured speed
|
| 154 |
|
README.ru.md
CHANGED
|
@@ -16,18 +16,22 @@ Giga Embeddings 3B 0826 для stock `llama.cpp`.
|
|
| 16 |
|
| 17 |
Это независимая GGUF-конверсия `ai-babai`, а не официальный релиз `ai-sage`.
|
| 18 |
|
|
|
|
|
|
|
| 19 |
## Какой файл выбрать
|
| 20 |
|
| 21 |
-
| Вариант | Для чего |
|
| 22 |
|---|---|---:|---:|---:|---:|
|
| 23 |
-
| **Q8_0** | **рекомендуемый default** | **3,
|
| 24 |
-
| **Q4_K_M** | **лёгкий / экспериментальный** | **1,
|
| 25 |
-
| BF16 | высокоточный reference | 6,
|
| 26 |
-
| Q6_K | исследование / owner review | 2,
|
| 27 |
|
| 28 |
На Apple Silicon unified memory общая: Metal allocation и RSS — разные срезы
|
| 29 |
одной памяти, их нельзя складывать. Peak RSS в тех же Mac-тестах составил
|
| 30 |
-
|
|
|
|
|
|
|
| 31 |
|
| 32 |
## Быстрый старт
|
| 33 |
|
|
@@ -91,20 +95,22 @@ macro-average двух задач. Это не полный MTEB, не leaderboa
|
|
| 91 |
| Q6_K | 0,779334 | 0,768964 | 0,895146 | +0,0576 points¹ |
|
| 92 |
| Q4_K_M | 0,778297 | 0,769349 | 0,888652 | −0,0461 points |
|
| 93 |
|
| 94 |
-
¹Небольшой положительный delta не доказывает улучшение Q6_K.
|
| 95 |
-
|
| 96 |
-
пример с кодом.
|
| 97 |
|
| 98 |
Более строгий frozen multilingual/code holdout сравнивал кванты с нашим BF16:
|
| 99 |
|
| 100 |
-
| Вариант | Min / mean cosine | Top-1 | Mean top-10 overlap |
|
| 101 |
-
|---|---:|---:|---:|
|
| 102 |
-
| Q8_0 | 0,993540 / 0,999734 | 100,00% | 99,06% |
|
| 103 |
-
| Q6_K | 0,974783 / 0,997845 | 99,61% | 97,07% |
|
| 104 |
-
| Q4_K_M | 0,950085 / 0,982052 | 96,88% | 91,37% |
|
| 105 |
|
| 106 |
-
|
| 107 |
-
|
|
|
|
|
|
|
| 108 |
|
| 109 |
## Измеренная скорость
|
| 110 |
|
|
|
|
| 16 |
|
| 17 |
Это независимая GGUF-конверсия `ai-babai`, а не официальный релиз `ai-sage`.
|
| 18 |
|
| 19 |
+

|
| 20 |
+
|
| 21 |
## Какой файл выбрать
|
| 22 |
|
| 23 |
+
| Вариант | Для чего | Размер файла | Экономия к BF16 | Память Metal | Peak VRAM CUDA |
|
| 24 |
|---|---|---:|---:|---:|---:|
|
| 25 |
+
| **Q8_0** | **рекомендуемый default** | **3,35 ГБ** | **46,8%** | **5,04 ГБ** | **5,38 ГБ** |
|
| 26 |
+
| **Q4_K_M** | **лёгкий / экспериментальный** | **1,96 ГБ** | **68,9%** | **3,65 ГБ** | **3,99 ГБ** |
|
| 27 |
+
| BF16 | высокоточный reference | 6,31 ГБ | — | 8,00 ГБ | не измерялось |
|
| 28 |
+
| Q6_K | исследование / owner review | 2,59 ГБ | 58,9% | 4,28 ГБ | 4,62 ГБ |
|
| 29 |
|
| 30 |
На Apple Silicon unified memory общая: Metal allocation и RSS — разные срезы
|
| 31 |
одной памяти, их нельзя складывать. Peak RSS в тех же Mac-тестах составил
|
| 32 |
+
8,21 / 5,20 / 4,45 / 3,84 ГБ для BF16 / Q8_0 / Q6_K / Q4_K_M. В этом разделе
|
| 33 |
+
используются десятичные гигабайты (`1 ГБ = 10^9 байт`); исходные измерения в
|
| 34 |
+
MiB пересчитаны в ГБ.
|
| 35 |
|
| 36 |
## Быстрый старт
|
| 37 |
|
|
|
|
| 95 |
| Q6_K | 0,779334 | 0,768964 | 0,895146 | +0,0576 points¹ |
|
| 96 |
| Q4_K_M | 0,778297 | 0,769349 | 0,888652 | −0,0461 points |
|
| 97 |
|
| 98 |
+
¹Небольшой положительный delta не доказывает улучшение Q6_K. Отдельное
|
| 99 |
+
сравнение сохранения представлений выявило один воспроизводимый длинный
|
| 100 |
+
пример с кодом, на котором Q6_K отклоняется сильнее.
|
| 101 |
|
| 102 |
Более строгий frozen multilingual/code holdout сравнивал кванты с нашим BF16:
|
| 103 |
|
| 104 |
+
| Вариант | Min / mean cosine | Top-1 | Mean top-10 overlap |
|
| 105 |
+
|---|---:|---:|---:|
|
| 106 |
+
| Q8_0 | 0,993540 / 0,999734 | 100,00% | 99,06% |
|
| 107 |
+
| Q6_K | 0,974783 / 0,997845 | 99,61% | 97,07% |
|
| 108 |
+
| Q4_K_M | 0,950085 / 0,982052 | 96,88% | 91,37% |
|
| 109 |
|
| 110 |
+
Все четыре файла прошли функциональную runtime-проверку. Q4 помечен
|
| 111 |
+
экспериментальным из-за большего отклонения представлений, хотя его потеря
|
| 112 |
+
полного RuBQ+SciFact NDCG невелика. Более низкий минимум Q6_K относится к
|
| 113 |
+
одному воспроизводимому длинному примеру с кодом.
|
| 114 |
|
| 115 |
## Измеренная скорость
|
| 116 |
|
assets/giga-embeddings-0826-gguf-choice.png
ADDED
|
Git LFS Details
|
assets/giga-embeddings-0826-gguf-choice.svg
ADDED
|
|
manifest.json
CHANGED
|
@@ -32,6 +32,18 @@
|
|
| 32 |
"pooling": "mean",
|
| 33 |
"embedding_dimension": 2048
|
| 34 |
},
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 35 |
"artifacts": [
|
| 36 |
{
|
| 37 |
"file": "giga-embeddings-0826-3b-bf16.gguf",
|
|
|
|
| 32 |
"pooling": "mean",
|
| 33 |
"embedding_dimension": 2048
|
| 34 |
},
|
| 35 |
+
"card_assets": [
|
| 36 |
+
{
|
| 37 |
+
"file": "assets/giga-embeddings-0826-gguf-choice.svg",
|
| 38 |
+
"role": "editable quantization chooser source",
|
| 39 |
+
"sha256": "7205e7e3d10223a570761aadd9c2a753552778effe5f454040352d6ff7c67b90"
|
| 40 |
+
},
|
| 41 |
+
{
|
| 42 |
+
"file": "assets/giga-embeddings-0826-gguf-choice.png",
|
| 43 |
+
"role": "rendered quantization chooser",
|
| 44 |
+
"sha256": "81533d6d89915720ab35021afcdba363be353fd6f42a21663549a2dcd836c65a"
|
| 45 |
+
}
|
| 46 |
+
],
|
| 47 |
"artifacts": [
|
| 48 |
{
|
| 49 |
"file": "giga-embeddings-0826-3b-bf16.gguf",
|