ruri-v3-310m-GGUF-Q4_K_M-imatrix
cl-nagoya/ruri-v3-310m を GGUF 形式に変換し、importance matrix (imatrix) を用いて Q4_K_M に量子化したモデルです。
このモデルは 埋め込みモデル であり、チャット用のモデルではありません。
ファイル
ruri-v3-310m-Q4_K_M-imatrix.gguf: imatrix キャリブレーション付きで生成した Q4_K_M 量子化モデル。benchmarks/benchmark_summary.json: サイズ、速度、品質比較をまとめたサマリ。benchmarks/jmteb_jsts_q4_scores.json: この GGUF に対する JMTEB JSTS の生結果。
使い方
llama.cpp embedding
./llama-embedding \
-m ruri-v3-310m-Q4_K_M-imatrix.gguf \
--pooling mean \
--attention non-causal \
-p "Your text here"
llama.cpp server
./llama-server \
-m ruri-v3-310m-Q4_K_M-imatrix.gguf \
--embedding \
--pooling mean \
--port 8080 \
--host 0.0.0.0
比較サマリ
量子化と評価は、Hugging Face の元重みから変換した F16 GGUF を基準に実施しました。
| 項目 | 結果 |
|---|---|
| ファイルサイズ | 203.87 MiB |
| F16 GGUF 比 | 602.59 MiB -> 203.87 MiB (-66.17%) |
| Q8_0 GGUF 比 | 321.34 MiB -> 203.87 MiB (-36.56%) |
| F16 との埋め込み類似度 | Pairwise Pearson 0.99697 |
| F16 との検索整合性 | Top-1 agreement 0.96, Top-3 overlap 0.96 |
| JMTEB JSTS Spearman | 0.843297 -> 0.839365 (-0.003932, -0.47%) |
| GPU スループット | RTX 3070 Ti, prompt 512 avg 17180 -> 32000 tok/s (1.86x) |
補足
- 変換には、ModernBERT アーキテクチャとこのモデルの SentencePiece tokenizer に対応させた patched
llama.cppを使っています。 - Q4_K_M 量子化は日本語テキストで作成した imatrix を用いて生成しています。
- 評価環境の
llama-cpp-pythonはmodern-bertを読めなかったため、JMTEB 評価はllama.cppの embedding CLI backend で実施しました。
関連リポジトリ
- Q8_0 版: Targoyle/ruri-v3-310m-GGUF
- 元モデル: cl-nagoya/ruri-v3-310m
This is a GGUF release of cl-nagoya/ruri-v3-310m quantized to Q4_K_M with an importance matrix (imatrix).
This model is an embedding model, not a chat model.
Files
ruri-v3-310m-Q4_K_M-imatrix.gguf: Q4_K_M quantization generated with imatrix calibration.benchmarks/benchmark_summary.json: Consolidated size, speed, and quality comparison summary.benchmarks/jmteb_jsts_q4_scores.json: Raw JMTEB JSTS result for this GGUF.
Usage
llama.cpp embedding
./llama-embedding \
-m ruri-v3-310m-Q4_K_M-imatrix.gguf \
--pooling mean \
--attention non-causal \
-p "Your text here"
llama.cpp server
./llama-server \
-m ruri-v3-310m-Q4_K_M-imatrix.gguf \
--embedding \
--pooling mean \
--port 8080 \
--host 0.0.0.0
Comparison Summary
Quantization and evaluation were run against the original F16 GGUF converted from the Hugging Face weights.
| Metric | Result |
|---|---|
| File size | 203.87 MiB |
| Size vs F16 GGUF | 602.59 MiB -> 203.87 MiB (-66.17%) |
| Size vs Q8_0 GGUF | 321.34 MiB -> 203.87 MiB (-36.56%) |
| Embedding similarity vs F16 | Pairwise Pearson 0.99697 |
| Retrieval consistency vs F16 | Top-1 agreement 0.96, Top-3 overlap 0.96 |
| JMTEB JSTS Spearman | 0.843297 -> 0.839365 (-0.003932, -0.47%) |
| GPU throughput | RTX 3070 Ti, prompt 512 avg 17180 -> 32000 tok/s (1.86x) |
Notes
- Conversion used a patched
llama.cppbuild to support the ModernBERT architecture with the SentencePiece tokenizer used by this model. - The Q4_K_M quantization was produced with imatrix-based calibration on Japanese text.
- The installed
llama-cpp-pythonversion in the evaluation environment did not supportmodern-bert, so JMTEB evaluation was executed through thellama.cppembedding CLI backend.
Related Repositories
- Q8_0 release: Targoyle/ruri-v3-310m-GGUF
- Original model: cl-nagoya/ruri-v3-310m