xVITA-Embed-300M-zhTW — GGUF

xVITA-Embed-300M-zhTW(云碩科技自製繁體中文檢索embedding,DRCD test hit@1 86.0、超越bge-m3 / multilingual-e5-large)的GGUF量化版,適用llama.cpp與ollama。

完整精度權重(safetensors)為私有發行,如有微調或研究合作需求請聯繫云碩科技。

2026-07-18重要修復:本日以前的所有GGUF檔因轉檔工具與sentence-transformers 5.6模組命名不相容, 缺少模型的Dense投影層,向量空間與safetensors版不一致(cosine相似度失效)。請重新下載本日後的檔案。 現版本已逐一與safetensors版驗證向量一致(f16 cosine = 1.0、Q8_0 = 0.9998),並已把mean pooling 寫入GGUF metadata,llama.cpp無須再手動指定 --pooling。

兩種版本,依場景選

版本 context 檔案 大小 適用
標準版(v2) 8192 xcloud-emb-zhtw-f16.gguf 584 MB 一般RAG、段落級檢索(短文分數最佳86.0)
xcloud-emb-zhtw-Q8_0.gguf 313 MB
長文特化版 8192 xcloud-emb-zhtw-8k-f16.gguf 584 MB 長文件整篇檢索、法規/報告全文(長文分數最佳84.7)
xcloud-emb-zhtw-8k-Q8_0.gguf 313 MB
  • 段落級RAG(chunk ≤ 2048 tokens)用標準版,短文檢索分數最佳。
  • 把整份長文件當單一檢索單位(整篇法規、報告全文)用長文特化版。
  • 兩版皆768維、同一prompt格式、皆支援8192 tokens輸入;差別在訓練取向(標準版短文最佳、長文特化版長文最佳)。
  • Q8_0幾乎無損(與f16 cosine 0.9998)、體積小一半,一般首選。

評測(DRCD test,與safetensors版同protocol)

短段落檢索(3,493查詢 / 1,000段落庫):

模型 hit@1 hit@5 hit@10
標準版v2(0.3B) 86.0 97.4 98.7
multilingual-e5-large(0.56B) 82.8 95.3 97.0
BAAI/bge-m3(0.57B) 82.2 95.6 97.2

長文整篇檢索(378篇完整文章 / 3,493查詢):

模型 hit@1 hit@5 hit@10
長文特化版 84.7 94.5 96.6
標準版v2 79.2 91.2 94.3
BAAI/bge-m3(8k原生) 77.5 90.3 93.4

長文特化版在完整文章檢索上勝過bge-m3原生8k達7.2個百分點。

llama.cpp

# 標準版(段落級 RAG)
llama-server -m xcloud-emb-zhtw-Q8_0.gguf --embeddings --port 8080
# 長文特化版(整篇長文件檢索)
llama-server -m xcloud-emb-zhtw-8k-Q8_0.gguf --embeddings --port 8080

查詢端與文檔端請使用EmbeddingGemma規格prompt:

  • 查詢:task: search result | query: {你的問題}
  • 文檔:title: none | text: {文檔內容}

完整評測、訓練細節與誠實聲明見主repo model card。


授權

底模依 Gemma Terms of Use 授權,本量化模型之使用同受其約束。

Gemma合規聲明

Gemma is provided under and subject to the Gemma Terms of Use found at ai.google.dev/gemma/terms

  • 本模型為 Google EmbeddingGemma-300m的修改版本(Model Derivative),經繁體中文檢索語料微調後轉換為GGUF格式。
  • 使用者再散布本模型或其衍生物時,須一併傳遞Gemma Terms of Use第3.2節之使用限制。

註:GGUF檔名維持 xcloud-emb-* 前綴不變,以免既有下載腳本與ollama設定失效;模型本身即xVITA-Embed-300M-zhTW。

關於云碩科技

云碩科技(xCloudinfo Corp. Limited)專注於地端私有化人工智慧解決方案。xVITA是云碩自研模型的品牌名稱。

其他模型請見 https://hf.co/xCloudinfo。


xVITA-Embed-300M-zhTW — GGUF — English

The GGUF quantization of xVITA-Embed-300M-zhTW (an xCloudinfo in-house Traditional Chinese retrieval embedding, DRCD test hit@1 86.0, surpassing bge-m3 / multilingual-e5-large), for llama.cpp and ollama.

The full-precision weights (safetensors) are a private release; for fine-tuning or research-collaboration needs, please contact xCloudinfo.

2026-07-18 important fix: all GGUF files from before this date were, due to a naming incompatibility between the conversion tool and sentence-transformers 5.6 modules, missing the model's Dense projection layer, so their vector space did not match the safetensors version (cosine similarity was broken). Please re-download the files dated after this day. The current version has been verified vector-by-vector against the safetensors version (f16 cosine = 1.0, Q8_0 = 0.9998), and mean pooling has been written into the GGUF metadata, so llama.cpp no longer needs --pooling specified manually.

Two versions, choose by scenario

Version context File Size Suited to
Standard (v2) 8192 xcloud-emb-zhtw-f16.gguf 584 MB general RAG, passage-level retrieval (best short-text score 86.0)
xcloud-emb-zhtw-Q8_0.gguf 313 MB
Long-document specialized 8192 xcloud-emb-zhtw-8k-f16.gguf 584 MB whole-document retrieval of long documents, full text of regulations/reports (best long-text score 84.7)
xcloud-emb-zhtw-8k-Q8_0.gguf 313 MB
  • For passage-level RAG (chunk ≤ 2048 tokens) use the standard version; it has the best short-text retrieval score.
  • To treat a whole long document as a single retrieval unit (an entire regulation, a full report) use the long-document specialized version.
  • Both versions are 768-dimensional, use the same prompt format, and support 8192-token inputs; they differ in training orientation (standard best for short text, long-document specialized best for long text).
  • Q8_0 is nearly lossless (cosine 0.9998 with f16), half the size, the general first choice.

Evaluation (DRCD test, same protocol as the safetensors version)

Short-passage retrieval (3,493 queries / 1,000-passage pool):

Model hit@1 hit@5 hit@10
Standard v2 (0.3B) 86.0 97.4 98.7
multilingual-e5-large (0.56B) 82.8 95.3 97.0
BAAI/bge-m3 (0.57B) 82.2 95.6 97.2

Whole-article long-document retrieval (378 complete articles / 3,493 queries):

Model hit@1 hit@5 hit@10
Long-document specialized 84.7 94.5 96.6
Standard v2 79.2 91.2 94.3
BAAI/bge-m3 (native 8k) 77.5 90.3 93.4

On complete-article retrieval the long-document specialized version beats bge-m3's native 8k by 7.2 percentage points.

llama.cpp

# 標準版(段落級 RAG)
llama-server -m xcloud-emb-zhtw-Q8_0.gguf --embeddings --port 8080
# 長文特化版(整篇長文件檢索)
llama-server -m xcloud-emb-zhtw-8k-Q8_0.gguf --embeddings --port 8080

On both the query side and the document side, use the EmbeddingGemma-spec prompt:

  • Query: task: search result | query: {你的問題}
  • Document: title: none | text: {文檔內容}

For the full evaluation, training details and honesty statement, see the main repo model card.


License

The base model is licensed under the Gemma Terms of Use, and use of this quantized model is equally subject to those terms.

Gemma compliance statement

Gemma is provided under and subject to the Gemma Terms of Use found at ai.google.dev/gemma/terms

  • This model is a modified version (Model Derivative) of Google EmbeddingGemma-300m, fine-tuned on a Traditional Chinese retrieval corpus and then converted to GGUF format.
  • When redistributing this model or its derivatives, users must pass along the use restrictions in section 3.2 of the Gemma Terms of Use.

Note: the GGUF filenames keep the xcloud-emb-* prefix unchanged, so that existing download scripts and ollama configurations do not break; the model itself is xVITA-Embed-300M-zhTW.

About xCloudinfo

xCloudinfo Corp. Limited (云碩科技) builds on-premises, private AI solutions. xVITA is xCloudinfo's in-house model brand.

More models: https://hf.co/xCloudinfo

Downloads last month
535
GGUF
Model size
0.3B params
Architecture
gemma-embedding
Hardware compatibility
Log In to add your hardware

8-bit

16-bit

Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support

Model tree for xCloudinfo/xVITA-Embed-300M-zhTW-GGUF

Quantized
(1)
this model

Collection including xCloudinfo/xVITA-Embed-300M-zhTW-GGUF