更新于 10 个月前
10 个月前
1b226e2802db · 46MB
模型
架构bert
·
参数22.6M
·
量化F16
46MB
参数
{ "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' })