MPT-7B
FreeA New Standard for Open-Source, Commercially Usable LLMs
About MPT-7B
MPT-7B (MosaicML Pretrained Transformer 7B) is an open-source, commercially usable large language model released by MosaicML (a Databricks company). It is a decoder-style transformer with 6.7 billion parameters, trained from scratch on 1 trillion tokens of text and code. The model achieves quality comparable to LLaMA-7B while being fully open source under the Apache 2.0 license (base model). Key technical innovations include ALiBi (Attention with Linear Biases) enabling extrapolation to context lengths up to 84k tokens, FlashAttention for efficient training and inference, and integration with FasterTransformer. MPT-7B was trained on the MosaicML platform in 9.5 days at a cost of approximately $200,000, with zero human intervention. Alongside the base model, three finetuned variants are released: MPT-7B-StoryWriter-65k+ (for long-form story generation with 65k+ token context), MPT-7B-Instruct (for short-form instruction following), and MPT-7B-Chat (for dialogue generation). The entire training, finetuning, and evaluation codebase is open-sourced via the MosaicML LLM Foundry.
Key Features
Pros & Cons
- Open source and available for commercial use (base model Apache 2.0)
- Very long context window (up to 84k tokens) enabling document-level tasks
- High quality comparable to LLaMA-7B
- Efficient training and inference with FlashAttention
- Multiple finetuned variants for different use cases
- Full open-source codebase for reproducibility and customization
- Smaller model size (7B parameters) may limit performance on complex reasoning
- Some finetuned variants (Chat) use non-commercial licenses
- Training from scratch requires significant compute resources (~$200k)
- Base model may require additional fine-tuning for production-quality instruction following