更新於 9 個月前
9 個月前
4f5da3bd944d · 67MB
模型
archbert
·
parameters33.2M
·
quantizationF16
67MB
參數
{ "num_ctx": 256 }
16B
許可證
Apache License Version 2.0, January 2004
11kB
說明文件
注意:此模型需要 Ollama 0.1.26 或更高版本。在此處下載。它僅可用於生成嵌入。
此專案旨在透過自我監督對比學習目標,於大規模句子級數據集上訓練句子嵌入模型。
使用方式
REST API
curl https://127.0.0.1:11434/api/embeddings -d '{
"model": "all-minilm",
"prompt": "The sky is blue because of Rayleigh scattering"
}'
Python 函式庫
ollama.embeddings(model='all-minilm', prompt='The sky is blue because of Rayleigh scattering')
Javascript 函式庫
ollama.embeddings({ model: 'all-minilm', prompt: 'The sky is blue because of Rayleigh scattering' })