11 個月前更新
11 個月前
1b226e2802db · 46MB
模型
架構bert
·
參數22.6M
·
量化F16
46MB
參數
{ "num_ctx": 256 }
16B
許可證
Apache 授權條款 2.0 版,2004 年 1 月
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' })