Код: Выделить всё
FROM /home/user/hugging_face/sbert_large_nlu_ru
PARAMETER stop ""
PARAMETER stop ""
TEMPLATE """
system
{{ .System }}
user
{{ .Prompt }}
assistant
"""

А теперь используйте эту модель в моем проекте на Python. Я использую ollama-python https://github.com/ollama/ollama-python. Вот мой простой код:
Код: Выделить всё
from ollama import Client
client = Client(host='http://192.168.70.79:11434')
response = client.embed(model='sbert_large_nlu_ru:latest', input='Привет')
print(response)

< /p>
Как я вижу, встраивания разные. Почему? Что я могу там пропустить?
Подробнее здесь: https://stackoverflow.com/questions/790 ... s-response