Mistral AI
Mistral AI 是一家总部位于法国巴黎的人工智能公司,成立于 2023 年,由前 Google DeepMind 和 Meta 的研究人员创立。该公司专注于开发开源和商业大型语言模型(LLMs),致力于提供高效、可定制且可访问的前沿 AI 技术。
Mistral AI 是一个 7B 参数模型,使用 Apache 许可证分发。它可用于指令(指令跟踪)和文本完成。
Mistral AI 的模型适用于多种场景,包括但不限于:
Mistral AI 的模型适用于多种场景,包括但不限于:
Mistral AI 团队指出,Mistral 7B:
为了展示 Mistral 7B 的泛化能力,我们根据 HuggingFace 上公开的指令数据集对其进行了微调。没有技巧,没有专有数据。最终的模型 Mistral 7B Instruct 优于 MT-Bench 上的所有 7B 模型,并且可与 13B 聊天模型相媲美。
Mistral 0.3 支持使用 Ollama 的原始模式进行函数调用。
Example raw prompt
[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]
Example response
[TOOL_CALLS] [{"name": "get_current_weather", "arguments": {"location": "San Francisco, CA", "format": "celsius"}}]
curl -X POST http://localhost:11434/api/generate -d '{ "model": "mistral", "prompt":"Here is a story about llamas eating grass" }'