MPT-Chat (7B) API

MPT-Chat (7B) High-quality chatbot model for efficient and realistic dialogue generation.
Output

Overview

MPT-7B Description

Basic Information
  • Model Name: MPT-7B
  • Developer/Creator: MosaicML
  • Release Date: May, 2023
  • Version: Initial release, with subsequent variant models including MPT-7B-Chat, MPT-7B-Instruct, and MPT-7B-StoryWriter-65k+
  • Model Type: Decoder-style Transformer, part of the GPT-style large language model family

Overview: MPT-7B represents MosaicML's leap into the open-source domain, aiming to democratize access to state-of-the-art transformer technology. It's designed for both generic and specific NLP tasks, with a particular emphasis on handling extremely long input sequences.

Key Features:
  • Commercially Usable and Open Source: Licensed under Apache-2.0 for base and some variants, enabling wide accessibility and commercial application.
  • Long Input Sequences: Utilizes ALiBi to manage unprecedented input lengths (up to 65k tokens), making it ideal for detailed text analysis and generation tasks.
  • High Efficiency: Incorporates FlashAttention and FasterTransformer for accelerated training and inference, significantly reducing operational costs.
  • Broad Accessibility: Integrated with HuggingFace for easy implementation, ensuring compatibility with existing machine learning workflows.
Intended Use:

The model is versatile, suitable for tasks ranging from machine learning research and application development to specific commercial uses in fields like tech and entertainment. Its variants are optimized for roles like conversational AI, narrative generation, and compliance with complex instructions.

Language Support:

Focused on English, incorporating a diverse array of text types, including technical and creative writing, to ensure robust language understanding.

Technical Details

Architecture:

Built as a decoder-only transformer with a configuration of 6.7 billion parameters, tailored for deep contextual understanding and generation.

Training Data:

The model's robustness stems from its training on 1 trillion tokens derived from a meticulously curated dataset combining text and code, ensuring a comprehensive linguistic and contextual grasp.

Data Source and Size:

Diverse sources including large-scale corpora like Books3, Common Crawl, and domain-specific datasets ensuring a rich mix of general and specialized content.

Knowledge Cutoff:

Includes the most recent and relevant data up to the year 2023, facilitating a contemporary understanding of language and context.

Diversity and Bias:

Carefully constructed to minimize bias by incorporating a wide range of text sources, genres, and styles, with ongoing evaluations to address and amend any emergent biases.

Performance Metrics
Accuracy:

Demonstrates high performance, matching and in some aspects surpassing that of contemporaries like LLaMA-7B across standardized benchmarks.

Robustness:

Proven capability to handle a variety of inputs and tasks, showcasing excellent generalization across numerous benchmarks and real-world applications.

Usage

Code Samples
Ethical Guidelines:

Adherence to ethical AI development practices, with an emphasis on transparency, fairness, and responsible use, highlighted in the documentation.

License Type:

Each variant of MPT-7B comes with specific licensing, from fully open Apache-2.0 to more restrictive CC-By-NC-SA-4.0 for certain uses, clearly delineated to inform appropriate usage.

Use cases

  • AI chatbots for multi-turn, context-aware dialogue and customer support
  • interactive conversational assistants for productivity and content generation
  • instruction-following for a wide variety of NLP tasks
  • text summarization and long-form content generation (especially with extended context variants)
  • coding assistance and code generation support
  • academic, research and experimentation use in scalable open-source LLMs

How to use MPT-Chat (7B) 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.

MPT-Chat (7B) API Pricing

TypePrice
Input
Output

MPT-Chat (7B) vs other models

ModelInputOutputContextBest for
MPT-Chat (7B)
This page
$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, MPT-Chat (7B) can stream responses as they are generated.

Yes, MPT-Chat (7B) supports both function calling and structured outputs.

MPT-Chat (7B) was built by Mosaic ML.

MPT-Chat (7B) is available on endpoint v1.

Start building with MPT-Chat (7B)

Get API Key
1000+ models, one API.