更新时间 9 months ago
9 months ago
1b226e2802db · 46MB
模型
架构bert
·
参数22.6M
·
量化F16
46MB
params
{ "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 library
ollama.embeddings(model='all-minilm', prompt='The sky is blue because of Rayleigh scattering')
Javascript library
ollama.embeddings({ model: 'all-minilm', prompt: 'The sky is blue because of Rayleigh scattering' })