How to use from the
Use from the
Transformers library
# Use a pipeline as a high-level helper
from transformers import pipeline

pipe = pipeline("text-generation", model="ibm-research/mpt-7b-instruct2", trust_remote_code=True)
# Load model directly
from transformers import AutoTokenizer, AutoModelForCausalLM

tokenizer = AutoTokenizer.from_pretrained("ibm-research/mpt-7b-instruct2", trust_remote_code=True)
model = AutoModelForCausalLM.from_pretrained("ibm-research/mpt-7b-instruct2", trust_remote_code=True)
Quick Links

MPT-7B-Instruct2

MPT-7B-Instruct2 is a retrained version of the orignal MPT-7B-Instruct model available under the Apache 2.0 License.

MPT-7B-Instruct is a short-form instruction following decoder-only model.

See model cards for MPT-7B and MPT-7B-Instruct for more information.

Downloads last month
780
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support

Dataset used to train ibm-research/mpt-7b-instruct2