New
Clarifai is recognized as a Leader in The Forrester Wave™: Computer Vision Tools, Q1 2024
August 9, 2023

Run MPT-7B-Instruct Model with an API

Table of Contents:

Blog header 1

MPT-7B-Instruct is a short-form instruction following model from MosaicML. The Model is built by fine-tuning the original MPT-7B.

You can now access the MPT-Instruct-7B model with the Clarifai API.

Contents

  1. Running MPT-7B-Instruct model with Javascript

  2. Running MPT-7B-Instruct model with Python

  3. Running MPT-7B-Instruct model with cURL

  4. Model Demo

  5. More details of the MPT-7B-Instruct model

  6. Use cases of the Model

  7. Evaluation

  8. Limitations

Running MPT-7B-Instruct model with Javascript

You can run MPT-7B-Instruct Model on Clarifai using Javascript: 

Javascript

 

Running MPT-7B-Instruct model with Python

You can run MPT-7B-Instruct Model on Clarifai using Python:

Python

 

Running MPT-7B-Instruct model with cURL

You can run MPT-7B-Instruct Model on Clarifai using cURL/HTTP:

# Model version ID is optional. It defaults to the latest model version if omitted.

cURL

 

You can also run MPT-7B-Instruct Model using other Clarifai Client Libraries like Java, NodeJS, PHP, etc.

 

Model Demo in the Clarifai Platform:

Try out the model here: https://clarifai.com/mosaicml/mpt/models/mpt-7b-instruct


Here are more details of the MPT-7B-Instruct model:

MPT-7B-Instruct is a decoder-style transformer with 6.7B parameters. It was trained from scratch on 1 trillion tokens of text and code, which were carefully curated by MosaicML's data team.

 

Use Cases

MPT-7B-Instruct is designed to excel at short-form instruction following tasks. It is particularly suitable for applications that require natural language instructions to be accurately processed and followed by the model. Potential use cases for MPT-7B-Instruct include:

- Language Understanding: The model can understand and follow textual instructions provided in various formats, such as YAML to JSON conversion.

- Automation: It can be utilized for automated tasks that rely on human-readable instructions, such as data preprocessing, text generation, or content conversion.

- Chatbot and Dialogue Systems: MPT-7B-Instruct can be used as a component in chatbot-like models to process and respond to user instructions effectively.

 

Evaluation

MPT-7B-Instruct's performance was evaluated using a combination of internal benchmarks and industry-standard evaluation methodologies. The model's ability to accurately follow instructions and generate appropriate outputs was assessed on various instruction-following tasks. Additionally, zero-shot performance on standard academic tasks was compared against other open-source models to establish its quality and capabilities.

 

Limitations

While MPT-7B-Instruct is a powerful model for instruction-following tasks, it does have certain limitations that users should be aware of:

Language Dependency: MPT-7B-Instruct's performance may vary across different languages, with a stronger emphasis on English natural language text.

Context Length: Although the model is optimized to handle longer inputs compared to some open-source models, there may still be practical limitations on the length of instructions it can effectively process.

Specificity of Instructions: Like any language model, MPT-7B-Instruct may require precise and well-formulated instructions for accurate processing and generation.

Keep up to speed with AI