mpt-7b-moe-nq-finetuned
16
license:apache-2.0
by
vvijayk
Language Model
OTHER
7B params
New
16 downloads
Early-stage
Edge AI:
Mobile
Laptop
Server
16GB+ RAM
Mobile
Laptop
Server
Quick Summary
AI model with specialized capabilities.
Device Compatibility
Mobile
4-6GB RAM
Laptop
16GB RAM
Server
GPU
Minimum Recommended
7GB+ RAM
Code Examples
Training Detailspythontransformers
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)Citationbibtex
@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}}
}Deploy This Model
Production-ready deployment in minutes
Together.ai
Instant API access to this model
Production-ready inference API. Start free, scale to millions.
Try Free APIReplicate
One-click model deployment
Run models in the cloud with simple API. No DevOps required.
Deploy NowDisclosure: We may earn a commission from these partners. This helps keep LLMYourWay free.