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="mgoin/mpt-7b-chat-quant", trust_remote_code=True)
# Load model directly
from transformers import AutoTokenizer, AutoModelForCausalLM

tokenizer = AutoTokenizer.from_pretrained("mgoin/mpt-7b-chat-quant", trust_remote_code=True)
model = AutoModelForCausalLM.from_pretrained("mgoin/mpt-7b-chat-quant", trust_remote_code=True, device_map="auto")
Quick Links

mpt_7b_chat-dense_quant_linearW8A8MatMul8Embeds8LMhead8

import deepsparse
from huggingface_hub import snapshot_download

MODEL_PATH = snapshot_download(repo_id="mgoin/mpt-7b-chat-quant")
model = deepsparse.Pipeline.create(task="text-generation", model_path=MODEL_PATH)
model(sequences="Tell me a joke.")
Downloads last month
9
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support