Model reference · open weights
Mistral-NeMo-Minitron is an open-weight language model from nvidia. AxForge deploys and operates it for you on dedicated EU-owned hardware — with the licence handled where one is required.
Available as managed deployment — configured and operated for you on dedicated EU hardware, quoted per deployment.
What it is
| Released by | NVIDIA |
|---|---|
| Type | Language models |
| Task | Text gen |
| Parameters (lead) | 8.4B |
| Context | 8k tokens |
| Runs with | transformers |
| Based on | nvidia/Mistral-NeMo-Minitron-8B-Base |
| Released | 2024-10-02 |
| Popularity | 44k downloads / month |
| Licence | Commercial licence needed |
About
Mistral-NeMo-Minitron-8B-Instruct is a model for generating responses for various text-generation tasks including roleplaying, retrieval augmented generation, and function calling. It is a fine-tuned version of nvidia/Mistral-NeMo-Minitron-8B-Base, which was pruned and distilled from Mistral-NeMo 12B using our LLM compression technique. The model was trained using a multi-stage SFT and preference-based alignment technique with NeMo Aligner. For details on the alignment technique, please refer to the Nemotron-4 340B Technical Report. The model supports a context length of 8,192 tokens.
Try this model on build.nvidia.com.
Model Developer: NVIDIA
Model Dates: Mistral-NeMo-Minitron-8B-Instruct was trained between August 2024 and September 2024.
Mistral-NeMo-Minitron-8B-Instruct uses a model embedding size of 4096, 32 attention heads, MLP intermediate dimension of 11520, with 40 layers in total. Additionally, it uses Grouped-Query Attention (GQA) and Rotary Position Embeddings (RoPE).
Architecture Type: Transformer Decoder (Auto-regressive Language Model)
Network Architecture: Mistral-NeMo
We recommend using the following prompt template, which was used to fine-tune the model. The model may not perform optimally without it.
{system prompt}
{prompt}
\n should be added at the end of the prompt.from transformers import AutoTokenizer, AutoModelForCausalLM
# Load the tokenizer and model
tokenizer = AutoTokenizer.from_pretrained("nvidia/Mistral-NeMo-Minitron-8B-Instruct")
model = AutoModelForCausalLM.from_pretrained("nvidia/Mistral-NeMo-Minitron-8B-Instruct")
# Use the prompt template
messages = [
{
"role": "system",
"content": "You are a friendly chatbot who always responds in the style of a pirate",
},
{"role": "user", "content": "How many helicopters can a human eat in one sitting?"},
]
tokenized_chat = tokenizer.apply_chat_template(messages, tokenize=True, add_generation_prompt=True, return_tensors="pt")
outputs = model.generate(tokenized_chat, stop_strings=[""], tokenizer=tokenizer)
print(tokenizer.decode(outputs[0]))
You can also use pipeline but you need to create a tokenizer object and assign it to the pipeline manually.
from transformers import AutoTokenizer
from transformers import pipeline
tokenizer = AutoTokenizer.from_pretrained("nvidia/Mistral-NeMo-Minitron-8B-Instruct")
messages = [
{"role": "user", "content": "Who are you?"},
]
pipe = pipeline("text-generation", model="nvidia/Mistral-NeMo-Minitron-8B-Instruct")
pipe(messages, max_new_tokens=64, stop_strings=[""], tokenizer=tokenizer)
| Category | Benchmark | # Shots | Mistral-NeMo-Minitron-8B-Instruct |
|---|---|---|---|
| General | MMLU | 5 | 70.4 |
| MT Bench (GPT4-Turbo) | 0 | 7.86 | |
| Math | GMS8K | 0 | 87.1 |
| Reasoning | GPQA | 0 | 31.5 |
| Code | HumanEval | 0 | 71.3 |
| MBPP | 0 | 72.5 | |
| Instruction Following | IFEval | 0 | 84.4 |
| Tool Use | BFCL v2 Live | 0 | 67.6 |
The Mistral-NeMo-Minitron-8B-Instruct model underwent AI safety evaluation including adversarial testing via three distinct methods:
The model was trained on data that contains toxic language and societal biases originally crawled from the internet. Therefore, the model may amplify those biases and return toxic responses especially when prompted with toxic prompts. The model may generate answers that may be inaccurate, omit key information, or include irrelevant or redundant text producing socially unacceptable or undesirable text, even if the prompt itself does not include anything explicitly offensive. This issue could be exacerbated without the use of the recommended prompt template. This issue could be exacerbated without the use of the recommended prompt template. If you are going to use this model in an agentic workflow, validate that the imported packages are from a trusted source to ensure end-to-end security.
NVIDIA believes Trustworthy AI is a shared responsibility and we have established policies and practices to enable development for a wide array of AI applications. When downloaded or used in accordance with our terms of service, developers should work with their i
From the published model card. Full card on the HuggingFace links in the sidebar.
Using it via the API
Once AxForge deploys mistral-nemo-minitron for you, it answers on the OpenAI-compatible API — the same base URL and keys as every other model. (mistral-nemo-minitron below is illustrative; you get the exact model name on deployment.)
$ curl -sS https://api.axforge.ai/v1/chat/completions \
-H "Authorization: Bearer $AXFORGE_API_KEY" \
-H "Content-Type: application/json" \
-d '{"model":"mistral-nemo-minitron","messages":[{"role":"user","content":"Hello"}]}'
Create an account — your API key is available in the console. 3M free tokens every 30 days with every new account.