高效开源模型,具备顶级性能和快速推理能力,73亿参数,在推理、代码生成和数学任务中表现出色,资源使用高效,适用于多种自然语言处理任务。
Mistral 7B Instruct v0.2
A fast and powerful 7B parameter model excelling in reasoning, code, and math. Mistral 7B is a powerful 7.3B parameter language model that outperforms Llama 2 13B across a wide range of benchmarks, including reasoning, reading comprehension, and code generation. Despite its smaller size, it delivers performance comparable to much larger models, making it efficient and versatile.
Intended uses
Mistral 7B is designed to provide high-quality responses across a wide range of general-purpose NLP tasks while remaining efficient in resource usage. Also, this model is fine-tuned to follow instructions, allowing it to perform tasks and answer questions naturally. The base model doesn’t have this capability.
- Automated code generation: Automates creation of code snippets, reducing manual coding and accelerating development.
- Debugging support: Identifies code errors and provides actionable recommendations to streamline debugging.
- Text summarization and classification: Supports summarizing text, classification, and text/code completion tasks.
- Conversational applications: Fine-tuned for conversational interactions using diverse datasets.
- Knowledge retrieval: Delivers accurate, detailed answers for enhanced information retrieval.
- Mathematical accuracy: Reliably processes and solves complex mathematical problems.
- Roleplay and text generation: Generates extensive narrative text for roleplaying and creative scenarios.
Characteristics
| Attribute | Details |
|---|---|
| Provider | Mistral AI |
| Architecture | Llama |
| Cutoff date | December 2023ⁱ |
| Languages | English (primarily) |
| Tool calling | ❌ |
| Input modalities | Text |
| Output modalities | Text |
| License | Apache 2.0 |
i: Estimated
Available model variants
| Model variant | Parameters | Quantization | Context window | VRAM¹ | Size |
|---|---|---|---|---|---|
ai/mistral:latestai/mistral:7B-Q4_K_M | 7B | IQ2_XXS/Q4_K_M | 33K tokens | 4.85 GiB | 4.07 GB |
ai/mistral:7B-Q4_0 | 7B | Q4_0 | 33K tokens | 4.61 GiB | 3.83 GB |
ai/mistral:7B-Q4_K_M | 7B | IQ2_XXS/Q4_K_M | 33K tokens | 4.85 GiB | 4.07 GB |
ai/mistral:7B-F16 | 7B | F16 | 33K tokens | 14.10 GiB | 13.50 GB |
¹: VRAM estimated based on model characteristics.
latest→7B-Q4_K_M
Use this AI model with Docker Model Runner
First, pull the model:
bashdocker model pull ai/mistral
Then run the model:
bashdocker model run ai/mistral
For more information on Docker Model Runner, https://docs.docker.com/desktop/features/model-runner/.
***ations
- Best suited for English.
- Performs well out-of-the-box but can be fine-tuned further.
- Use appropriate system prompts for safer and more controlled outputs.
- To use instruction fine-tuning, wrap your prompt with
[INST]and[/INST]tags. The first instruction must start with a beginning-of-sentence token, while any following instructions should not. The assistant's response will automatically end with an end-of-sentence token.
Benchmark performance
| Capability | Benchmark | Mistral 7B |
|---|---|---|
| Natural Language Understanding | MMLU | 60.1% |
| HellaSwag | 81.3% | |
| WinoGrande | 75.3% | |
| PIQA | 83.0% | |
| Arc-e | 80.0% | |
| Arc-c | 55.5% | |
| Knowledge Retrieval | NQ | 28.8% |
| TriviaQA | 69.9% | |
| Code Generation & Debugging | HumanEval | 30.5% |
| MBPP | 47.5% | |
| Mathematical Reasoning | MATH | 13.1% |
| GSM8K | 52.1% |
Links
- https://mistral.ai/news/announcing-mistral-7b
- https://arxiv.org/abs/2310.06825
ai 命名空间的其他可用镜像:
ai/qwen3
ai/deepseek-r1-distill-llama
ai/qwen3-embedding
ai/qwen3-vl
ai/qwen3-vllm
ai/qwen3-embedding-vllm
镜像拉取方式
您可以使用以下命令拉取该镜像。请将 <标签> 替换为具体的标签版本。如需查看所有可用标签版本,请访问 标签列表页面。
DockerHub 原生拉取命令
用户好评
来自真实用户的反馈,见证轩辕镜像的优质服务