mistral

The 7B model released by Mistral AI, updated to version 0.3.

Araç Kullanımı 7b
Hızlı Kurulum (Ollama kuruluysa)
ollama run mistral

Ollama kurulu değil mi? ollama.com/download — Windows, macOS ve Linux için ücretsiz. İlk çalıştırmada model indirilir, sonrası tamamen çevrimdışıdır.

Varyantlar

Boyut büyüdükçe kalite artar, donanım ihtiyacı yükselir. Başlangıç için küçük varyantı deneyin.

EtiketBoyutBağlamGirdiKomut
latest 4.4GB 32K Text ollama run mistral:latest
instruct 4.1GB 32K Text ollama run mistral:instruct
text 4.1GB 16K Text ollama run mistral:text
v0.1 4.1GB 32K Text ollama run mistral:v0.1
v0.2 4.1GB 32K Text ollama run mistral:v0.2
v0.3 4.4GB 32K Text ollama run mistral:v0.3
7b 4.4GB 32K Text ollama run mistral:7b
7b-instruct 4.4GB 32K Text ollama run mistral:7b-instruct
7b-instruct-q2_K 3.1GB 32K Text ollama run mistral:7b-instruct-q2_K
7b-instruct-v0.2-q2_K 3.1GB 32K Text ollama run mistral:7b-instruct-v0.2-q2_K
7b-instruct-q3_K_S 3.2GB 32K Text ollama run mistral:7b-instruct-q3_K_S
7b-instruct-v0.2-q3_K_S 3.2GB 32K Text ollama run mistral:7b-instruct-v0.2-q3_K_S
7b-instruct-q3_K_M 3.5GB 32K Text ollama run mistral:7b-instruct-q3_K_M
7b-instruct-v0.2-q3_K_M 3.5GB 32K Text ollama run mistral:7b-instruct-v0.2-q3_K_M
7b-instruct-q3_K_L 3.8GB 32K Text ollama run mistral:7b-instruct-q3_K_L
7b-instruct-v0.2-q3_K_L 3.8GB 32K Text ollama run mistral:7b-instruct-v0.2-q3_K_L
7b-instruct-q4_0 4.1GB 32K Text ollama run mistral:7b-instruct-q4_0
7b-instruct-v0.2-q4_0 4.1GB 32K Text ollama run mistral:7b-instruct-v0.2-q4_0
7b-instruct-q4_1 4.6GB 32K Text ollama run mistral:7b-instruct-q4_1
7b-instruct-v0.2-q4_1 4.6GB 32K Text ollama run mistral:7b-instruct-v0.2-q4_1
7b-instruct-q4_K_S 4.1GB 32K Text ollama run mistral:7b-instruct-q4_K_S
7b-instruct-v0.2-q4_K_S 4.1GB 32K Text ollama run mistral:7b-instruct-v0.2-q4_K_S
7b-instruct-v0.2-q4_K_M 4.4GB 32K Text ollama run mistral:7b-instruct-v0.2-q4_K_M
7b-instruct-v0.2-q5_0 5.0GB 32K Text ollama run mistral:7b-instruct-v0.2-q5_0
7b-instruct-v0.2-q5_1 5.4GB 32K Text ollama run mistral:7b-instruct-v0.2-q5_1

59 varyant daha var — tümü için ollama.com.

Model Detayları ve Benchmarklar (kaynak: ollama.com)

Mistral is a 7B parameter model, distributed with the Apache license. It is available in both instruct (instruction following) and text completion.

The Mistral AI team has noted that Mistral 7B:

  • Outperforms Llama 2 13B on all benchmarks
  • Outperforms Llama 1 34B on many benchmarks
  • Approaches CodeLlama 7B performance on code, while remaining good at English tasks

Versions

Tag Date Notes
v0.3 latest 05/22/2024 A new version of Mistral 7B that supports function calling.
v0.2 03/23/2024 A minor release of Mistral 7B
v0.1 09/27/2023 Initial release

Function calling

Mistral 0.3 supports function calling with Ollama’s raw mode.

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"}}]

For more information on raw mode, see the API documentation.

Variations

instruct Instruct models follow instructions
text Text models are the base foundation model without any fine-tuning for conversations, and are best used for simple text completion.

Usage

CLI

Instruct:

ollama run mistral

API

Example:

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

References

HuggingFace

Mistral AI News Release