Skip to main content

Model guide

Mistral 7B Instruct v0.3

Mistral 7B Instruct v0.3 is a compact instruction model with a version-specific tokenizer and function-calling format. It suits text-chat experiments and controlled tests of an application that supports that format. A tool definition in a prompt is not enough: the application still has to interpret the call and execute it.

7BText chat32,768 token contextView the model card →

At a glance

Parameters
7B
Accepts
Text
Returns
Text
Published context limit
32,768 tokens
Model format
safetensors · GGUF
Software and download hosts
Ollama. Follow the exact setup below; this list does not establish support for every format, input type or software version.
Suggested compression
Q4_K_M
Model-weight download
Q4_K_M weights · 4.37 GBbartowski (community conversion)Mistral-7B-Instruct-v0.3-Q4_K_M.gguf
License
Apache-2.0

Will it fit?

Mistral 7B Instruct v0.3 · Q4_K_M download. Fit depends on your computer, the app you run it in and the conversation length you need.

Check on your computer

Best for

  • Ask for structured text first. If you need application functions, pass a real function definition and inspect the requested arguments.

Choose something else when

  • Choose a different integration if it cannot parse v0.3’s function-call format.

First setup

Check a representative task

First check a structured answer; test native function calls separately through the application.

Return only a JSON object with exactly two string fields: city and unit. The unit must be either "celsius" or "fahrenheit". Do not fetch weather.
Request: Show me Paris temperatures in Celsius.

Check the result: The result must parse as {"city":"Paris","unit":"celsius"}, with no extra fields, Markdown or weather result.

This is a JSON-formatting exercise, not proof that the runtime supports Mistral function calls. A tool integration needs its documented tool schema, call parsing and returned tool result.

This creates a 4,096-token copy of mistral:7b-instruct-v0.3-q4_K_M named mistral-7b-instruct-v0-3-short-context. Save the following as a file named Modelfile in your working folder:

FROM mistral:7b-instruct-v0.3-q4_K_M
PARAMETER num_ctx 4096

Then run these commands from that folder:

ollama pull mistral:7b-instruct-v0.3-q4_K_M
ollama create mistral-7b-instruct-v0-3-short-context -f ./Modelfile
ollama run mistral-7b-instruct-v0-3-short-context

Run the task check. While the model is loaded, run ollama ps in another terminal and check CONTEXT and PROCESSOR.

The recorded Ollama package is Q4_K_M: 4.37 GB of model weights. Use Ollama 0.40.18 or a supporting newer release. A Hugging Face GGUF or MLX checkpoint is a separate representation; choose the matching source and runner in the memory calculator.

See Ollama context settings and the Modelfile instructions.

Other models for this task