WhoBuilt

Decoding Mistral AI's Large Language Models

Nov 21, 2024· 18 min· 4.5K views·Watch on YouTube

Speaker

Devendra Chaplot of Mistral AI explains the company’s open models, training approach, and choices between open and commercial models at an AI Engineer event.

Mistral’s open model strategy

Chaplot traces Mistral AI’s releases from Mistral 7B in September 2023 through Mixtral 8x7B, Mistral Large, Mixtral 8x22B, and Codestral 22B. He says the company aims to make frontier AI available to developers through models that are open, portable, efficient, and customizable. Models can run on cloud platforms or on-premises, and Mistral offers open inference and fine-tuning tools.

Why open models support a business

Chaplot argues that open source can complement commercial revenue. Open releases build awareness and help customers discover Mistral’s products; some users may later pay to upgrade to proprietary models. Community use also reveals ways to customize and deploy models, including running Mistral 7B on laptops and phones.

How language models are trained

Chaplot outlines three stages: pre-training, instruction tuning, and learning from human feedback. Pre-training uses next-token prediction on very large text datasets, where cleaning, deduplication, and curation matter because noisy data can reduce performance. Instruction tuning trains on prompt-response pairs, while preference methods such as RLHF and DPO use human comparisons between responses.

Efficiency and Codestral

Chaplot says Mistral targets strong benchmark performance relative to inference cost, using active parameters as a measure of cost and MMLU as a performance measure. Codestral 22B is a dense model for code, trained on more than 80 programming languages, with instruction and fill-in-the-middle modes. He says it can support code completion and help answer questions about bugs, and is available through Mistral’s chat interface, API, and editor integrations.

Choosing open or commercial models

Chaplot recommends starting with prompting techniques such as few-shot prompting and retrieval-augmented generation when exploring commercial models. Open models also allow task-specific fine-tuning, which can be useful once an application reaches production or high volume. He describes a common path: prototype with a high-end commercial model, then fine-tune an open model such as Mistral 7B or Mixtral 8x7B to improve performance per cost on a defined task.

Takeaways

  • Open models can attract users and create a path to paid commercial services.
  • Data quality and curation matter alongside dataset size in pre-training.
  • Instruction tuning teaches models to answer in the format people request.
  • Compare models by task performance and inference cost, including active parameter count.
  • Prototype broadly, then consider fine-tuning an open model for a stable, high-volume task.

Mentioned in this talk

Search inside this talk

What was claimed 18

Show all 18 facts

Related talks