mistral:7b

28.2M 9个月前

Mistral AI 发布,版本 0.3 的 7B 模型。

工具 7b
ollama run mistral:7b

详情

9个月前

6577803aa9a0 · 4.4GB ·

llama
·
7.25B
·
Q4_K_M
{ "stop": [ "[INST]", "[/INST]" ] }
Apache License Version 2.0, January 2004 https://apache.ac.cn/licenses/ TERMS AND CONDITIONS FOR US
{{- if .Messages }} {{- range $index, $_ := .Messages }} {{- if eq .Role "user" }} {{- if and (eq (l

自述文件

Mistral 是一个 7B 参数的模型,采用 Apache 许可证发布。它既有指令遵循(instruction following)版本,也有文本补全版本。

Mistral AI 团队指出 Mistral 7B

  • 在所有基准测试中表现优于 Llama 2 13B
  • 在许多基准测试中表现优于 Llama 1 34B
  • 在代码方面接近 CodeLlama 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 文档

变体

指令 指令模型遵循指令
文本 文本模型是基础模型,未针对对话进行任何微调,最适合用于简单的文本补全。

用法

CLI

指令

ollama run mistral

API

示例

curl -X POST https://:11434/api/generate -d '{
  "model": "mistral",
  "prompt":"Here is a story about llamas eating grass"
 }'

参考文献

HuggingFace

Mistral AI 新闻稿