Run MPT-7B-Instruct Model with an API | Clarifai Blog

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

Running MPT-7B-Instruct model with Javascript

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

Running MPT-7B-Instruct model with Python

You can run MPT-7B-Instruct Model on Clarifai using 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.

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:

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: