Downloads · 30 days
16
16% of all-time downloads
vvijayk/mpt-7b-moe-nq-finetuned
mpt-7b-moe-nq-finetuned is a question answering model from vvijayk. Use it when the input is a question plus a passage. The card lists the license as apache-2.0.
This model is a fine-tuned version of mosaicml/mpt-7b on the Natural Questions dataset.
Downloads · 30 days
16
16% of all-time downloads
All-time downloads
102
Public
Parameters
6.6B
120 GB on disk
Likes
0
Public
Click a slice to open those files.
.pt93.1 GB · 87%
From the Hugging Face model README
This model is a fine-tuned version of mosaicml/mpt-7b on the Natural Questions dataset.
The model was fine-tuned using:
from transformers import AutoTokenizer, AutoModelForCausalLM
model_name = "vvijayk/mpt-7b-moe-nq-finetuned"
tokenizer = AutoTokenizer.from_pretrained(model_name, trust_remote_code=True)
model = AutoModelForCausalLM.from_pretrained(
model_name,
trust_remote_code=True,
torch_dtype="auto",
device_map="auto"
)
# Example inference
question = "What is the capital of France?"
prompt = f"Question: {question}\nAnswer:"
inputs = tokenizer(prompt, return_tensors="pt").to(model.device)
outputs = model.generate(
**inputs,
max_new_tokens=128,
temperature=0.7,
do_sample=True,
top_p=0.9,
)
answer = tokenizer.decode(outputs[0], skip_special_tokens=True)
print(answer)
Training was performed using the configuration in the repository. See train_mpt7b_moe_accelerate.py for details.
This model inherits limitations and biases from the base MPT-7B model and the Natural Questions dataset. Users should be aware of potential biases in question-answering outputs.
If you use this model, please cite:
@misc{mpt-7b-moe-nq,
author = {Your Name},
title = {MPT-7B-MoE Fine-tuned on Natural Questions},
year = {2025},
publisher = {HuggingFace},
howpublished = {\url{https://huggingface.co/vvijayk/mpt-7b-moe-nq-finetuned}}
}