28.2M 次下载 更新于 9个月前
ollama run mistral:7b
9个月前更新
9个月前
6577803aa9a0 · 4.4GB ·
Mistral 是一个 7B 参数的模型,采用 Apache 许可证发布。它既有指令遵循(instruction following)版本,也有文本补全版本。
Mistral AI 团队指出 Mistral 7B
| 标签 | 日期 | 备注 |
|---|---|---|
v0.3 latest |
05/22/2024 | Mistral 7B 的新版本,支持函数调用。 |
v0.2 |
03/23/2024 | Mistral 7B 的一个小版本发布 |
v0.1 |
09/27/2023 | 初始发布 |
Mistral 0.3 支持使用 Ollama 的 原始模式 进行函数调用。
示例原始提示
[AVAILABLE_TOOLS] [{"type": "function", "function": {"name": "get_current_weather", "description": "Get the current weather", "parameters": {"type": "object", "properties": {"location": {"type": "string", "description": "The city and state, e.g. San Francisco, CA"}, "format": {"type": "string", "enum": ["celsius", "fahrenheit"], "description": "The temperature unit to use. Infer this from the users location."}}, "required": ["location", "format"]}}}][/AVAILABLE_TOOLS][INST] What is the weather like today in San Francisco [/INST]
示例回复
[TOOL_CALLS] [{"name": "get_current_weather", "arguments": {"location": "San Francisco, CA", "format": "celsius"}}]
有关原始模式的更多信息,请参阅 API 文档。
指令 |
指令模型遵循指令 |
文本 |
文本模型是基础模型,未针对对话进行任何微调,最适合用于简单的文本补全。 |
指令
ollama run mistral
示例
curl -X POST https://:11434/api/generate -d '{
"model": "mistral",
"prompt":"Here is a story about llamas eating grass"
}'