CoolFace
Modelpublic

Targoyle/ruri-v3-310m-GGUF-Q4_K_M-imatrix

sourceHugging Faceapache-2.0updated 4mo agoView on Hugging Face
0likes28downloads
Model Card

ruri-v3-310m-GGUF-Q4KM-imatrix

cl-nagoya/ruri-v3-310m を GGUF 形式に変換し、importance matrix (imatrix) を用いて Q4_K_M に量子化したモデルです。

このモデルは 埋め込みモデル であり、チャット用のモデルではありません。

ファイル

  • —ruri-v3-310m-Q4_K_M-imatrix.gguf: imatrix キャリブレーション付きで生成した Q4KM 量子化モデル。
  • —benchmarks/benchmark_summary.json: サイズ、速度、品質比較をまとめたサマリ。
  • —benchmarks/jmteb_jsts_q4_scores.json: この GGUF に対する JMTEB JSTS の生結果。

使い方

llama.cpp embedding

bash
./llama-embedding \
  -m ruri-v3-310m-Q4_K_M-imatrix.gguf \
  --pooling mean \
  --attention non-causal \
  -p "Your text here"

llama.cpp server

bash
./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 Spearman0.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 を使っています。
  • —Q4KM 量子化は日本語テキストで作成した imatrix を用いて生成しています。
  • —評価環境の llama-cpp-python は modern-bert を読めなかったため、JMTEB 評価は llama.cpp の embedding CLI backend で実施しました。

関連リポジトリ


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: Q4KM 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

bash
./llama-embedding \
  -m ruri-v3-310m-Q4_K_M-imatrix.gguf \
  --pooling mean \
  --attention non-causal \
  -p "Your text here"

llama.cpp server

bash
./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.

MetricResult
File size203.87 MiB
Size vs F16 GGUF602.59 MiB -> 203.87 MiB (-66.17%)
Size vs Q8_0 GGUF321.34 MiB -> 203.87 MiB (-36.56%)
Embedding similarity vs F16Pairwise Pearson 0.99697
Retrieval consistency vs F16Top-1 agreement 0.96, Top-3 overlap 0.96
JMTEB JSTS Spearman0.843297 -> 0.839365 (-0.003932, -0.47%)
GPU throughputRTX 3070 Ti, prompt 512 avg 17180 -> 32000 tok/s (1.86x)

Notes

  • —Conversion used a patched llama.cpp build to support the ModernBERT architecture with the SentencePiece tokenizer used by this model.
  • —The Q4KM quantization was produced with imatrix-based calibration on Japanese text.
  • —The installed llama-cpp-python version in the evaluation environment did not support modern-bert, so JMTEB evaluation was executed through the llama.cpp embedding CLI backend.

Related Repositories