高效开源模型,具备顶级性能和快速推理能力,73亿参数,在推理、代码生成和数学任务中表现出色,资源使用高效,适用于多种自然语言处理任务。

24 次收藏下载次数: 0状态:社区镜像维护者:Docker AI 官方镜像仓库类型:镜像最近更新:
下载命令
点击查看

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

AttributeDetails
ProviderMistral AI
ArchitectureLlama
Cutoff dateDecember 2023ⁱ
LanguagesEnglish (primarily)
Tool calling❌
Input modalitiesText
Output modalitiesText
LicenseApache 2.0

i: Estimated

Available model variants

Model variantParametersQuantizationContext windowVRAM¹Size
ai/mistral:latest

ai/mistral:7B-Q4_K_M
7BIQ2_XXS/Q4_K_M33K tokens4.85 GiB4.07 GB
ai/mistral:7B-Q4_07BQ4_033K tokens4.61 GiB3.83 GB
ai/mistral:7B-Q4_K_M7BIQ2_XXS/Q4_K_M33K tokens4.85 GiB4.07 GB
ai/mistral:7B-F167BF1633K tokens14.10 GiB13.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:

bash
docker model pull ai/mistral

Then run the model:

bash
docker 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

CapabilityBenchmarkMistral 7B
Natural Language UnderstandingMMLU60.1%
HellaSwag81.3%
WinoGrande75.3%
PIQA83.0%
Arc-e80.0%
Arc-c55.5%
Knowledge RetrievalNQ28.8%
TriviaQA69.9%
Code Generation & DebuggingHumanEval30.5%
MBPP47.5%
Mathematical ReasoningMATH13.1%
GSM8K52.1%

Links

  • https://mistral.ai/news/announcing-mistral-7b
  • https://arxiv.org/abs/2310.06825

镜像拉取方式

您可以使用以下命令拉取该镜像。请将 <标签> 替换为具体的标签版本。如需查看所有可用标签版本,请访问 标签列表页面。

轩辕镜像加速拉取命令点我查看更多 mistral 镜像标签

docker model pull docker.xuanyuan.run/ai/mistral:<标签>

DockerHub 原生拉取命令

docker model pull ai/mistral:<标签>
专业版 · 高速稳定拉取镜像
50GB 仅 ¥8/年
高速镜像下载在线技术支持专业版保障服务可用付费会员免广告