Mistral (7B) Instruct v0.3 API

Mistral 7B Instruct v0.3: new, advanced, instruction-based language model with enhanced features.
Output

Overview

Mistral 7B Instruct v0.3 Description

Basic Information

Model Name: Mistral-7B-Instruct-v0.3

Developer/Creator: Mistral AI in collaboration with Hugging Face

Release Date: 05/22/2024

Version: v0.3 latest

Model Type: Chat

Overview:

The Mistral-7B-Instruct-v0.3 is an advanced version of the Mistral-7B model, fine-tuned specifically for instruction-based tasks. This model is designed to enhance language generation and understanding capabilities.

Key Features:

Extended Vocabulary: Supports up to 32,768 tokens for a diverse range of language inputs.

Version 3 Tokenizer: Improves language processing efficiency and accuracy.

Function Calling: Allows execution of predefined functions during language processing.

Instruction Fine-Tuning: Tailored for instruction-based tasks, improving contextual responses.

Intended Use:

The model is designed for a variety of scenarios including:

  • Natural language understanding and generation.
  • Instruction-based tasks and applications.
  • Real-time data manipulation and dynamic interaction scenarios.

Mistral-7B-Instruct-v0.3 can be used for patient education since this powerful solution without high computational costs, ideal for responding quickly to patient queries. Learn more about this and other models and their applications in Healthcare here.

Language Support:

Supports multiple languages due to its extended vocabulary and advanced tokenizer.

Technical Details

Architecture:

The Mistral-7B-Instruct-v0.3 is based on a transformer architecture. It employs grouped-query attention (GQA) for faster inference and sliding window attention (SWA) to handle long sequences efficiently. Key parameters from Mistral-7B-v0.1 include:

  • dim: 4096
  • n_layers: 32
  • head_dim: 128
  • hidden_dim: 14336
  • n_heads: 32
  • n_kv_heads: 8
  • window_size: 4096
  • context_len: 8192
  • vocab_size: 32,000

Training Data:

The model was trained on a diverse dataset sourced from various domains to ensure broad knowledge and robust performance. The training data encompasses a wide range of text inputs to enhance its understanding and response capabilities.

Data Source and Size:

The exact volume of training data is not specified, but it includes extensive datasets from common benchmarks and publicly available data to ensure comprehensive language coverage.

Knowledge Cutoff:

The model's knowledge is up to date as of the release date, 05/22/2024.

Diversity and Bias:

Efforts have been made to include diverse datasets to minimize biases, but users should remain cautious of potential biases due to the nature of the data sources.

Performance Metrics

Key Performance Metrics:

  • Accuracy: The model exhibits high accuracy in generating contextually appropriate and coherent text based on user instructions.
  • Speed: Utilizes zero-copy technology for fast inference, making it suitable for real-time applications.
  • Robustness: Handles diverse inputs well and generalizes effectively across various topics and languages.

Comparison to Other Models:

  • Mistral-7B outperforms Llama 2 13B across multiple benchmarks including reasoning, mathematics, and code generation.
  • Achieves superior performance on instruction-based tasks compared to other 7B and 13B models.

Usage

Code Samples/SDK:

Tutorials:

Support and Community

Community Resources:

  • Hugging Face Discussion Board

Ethical Considerations

Ethical Guidelines:

  • The model lacks moderation mechanisms, which are essential for deployment in environments requiring moderated outputs to avoid inappropriate or harmful content.
  • Users should implement additional safeguards for ethical use.

Licensing

License Type:

  • Released under the Apache 2.0 license, allowing for both commercial and non-commercial usage.

‍

Use cases

Instruction-following chatbots

Build conversational agents that follow user instructions, answer questions, and maintain context over long inputs.

Function-enabled automation

Use function calling to integrate with tools: e.g., fetch calendar events, lookup APIs, or execute calculations.

Long-form content creation

Generate articles, emails or summaries with up to 32K token context for coherence.

Code generation and review

Assist in code writing or debugging across languages, leveraging context and instruction tuning.

Edge deployment

Deploy lightweight mobile versions with quantized weights (W4A16) on-device for offline or low-latency scenarios.

‍

How to use Mistral (7B) Instruct v0.3 API

Install any OpenAI-compatible SDK, point it at api.aimlapi.com/v1, and set the model to .

OpenAI-compatible — swap the base URL and it works with your existing SDK.

Mistral (7B) Instruct v0.3 API Pricing

TypePrice
Input
Output

Mistral (7B) Instruct v0.3 vs other models

ModelInputOutputContextBest for
$6.5 / 1M tokens
$39 / 1M tokens
1M tokens
Reasoning + agents
$2.6 / 1M tokens
$13 / 1M tokens
1M tokens
Balanced coding + agents
$3.9 / 1M tokens
$19.5 / 1M tokens
1M tokens
Long-context, multimodal & agentic workflows
$1.95 / 1M tokens
$11.7 / 1M tokens
1M tokens
Reasoning + agents

Frequently asked questions

Yes, Mistral (7B) Instruct v0.3 can stream responses as they are generated.

Yes, Mistral (7B) Instruct v0.3 supports both function calling and structured outputs.

Mistral (7B) Instruct v0.3 was built by Mistral AI.

It is available at the v1/chat/completions endpoint.

Start building with Mistral (7B) Instruct v0.3

Get API Key
1000+ models, one API.