更新於 13 個月前
13 個月前
60eca258468e · 4.4GB
模型
架構llama
·
參數7.24B
·
量化Q4_K_M
4.4GB
許可證
Apache License Version 2.0, January 2004
11kB
讀我檔案
Mistral 是一個 7B 參數模型,以 Apache 許可證發布。它提供 instruct(指令遵循)和 text completion 兩種版本。
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 文件。
變體
instruct |
Instruct 模型遵循指令 |
text |
Text 模型是未經任何對話微調的基本模型,最適合用於簡單的文字補全。 |
使用方式
CLI
Instruct
ollama run mistral
API
範例
curl -X POST https://127.0.0.1:11434/api/generate -d '{
"model": "mistral",
"prompt":"Here is a story about llamas eating grass"
}'