nvidia / Nemotron-Mini-4B-Instruct

huggingface.co
Total runs: 36.8K
24-hour runs: 0
7-day runs: 4.1K
30-day runs: 26.6K
Model's Last Updated: February 15 2025
text-generation

Introduction of Nemotron-Mini-4B-Instruct

Model Details of Nemotron-Mini-4B-Instruct

Nemotron-Mini-4B-Instruct

Model Overview

Nemotron-Mini-4B-Instruct is a model for generating responses for roleplaying, retrieval augmented generation, and function calling. It is a small language model (SLM) optimized through distillation, pruning and quantization for speed and on-device deployment. It is a fine-tuned version of nvidia/Minitron-4B-Base , which was pruned and distilled from Nemotron-4 15B using our LLM compression technique . This instruct model is optimized for roleplay, RAG QA, and function calling in English. It supports a context length of 4,096 tokens. This model is ready for commercial use.

Try this model on build.nvidia.com .

For more details about how this model is used for NVIDIA ACE , please refer to this blog post and this demo video , which showcases how the model can be integrated into a video game. You can download the model checkpoint for NVIDIA AI Inference Manager (AIM) SDK from here .

Model Developer: NVIDIA

Model Dates: Nemotron-Mini-4B-Instruct was trained between February 2024 and Aug 2024.

License

NVIDIA Community Model License

Model Architecture

Nemotron-Mini-4B-Instruct uses a model embedding size of 3072, 32 attention heads, and an MLP intermediate dimension of 9216. It also uses Grouped-Query Attention (GQA) and Rotary Position Embeddings (RoPE).

Architecture Type: Transformer Decoder (auto-regressive language model)

Network Architecture: Nemotron-4

Prompt Format:

We recommend using the following prompt template, which was used to fine-tune the model. The model may not perform optimally without it.

Single Turn

<extra_id_0>System
{system prompt}

<extra_id_1>User
{prompt}
<extra_id_1>Assistant\n

Tool use

<extra_id_0>System
{system prompt}

<tool> ... </tool>
<context> ... </context>

<extra_id_1>User
{prompt}
<extra_id_1>Assistant
<toolcall> ... </toolcall>
<extra_id_1>Tool
{tool response}
<extra_id_1>Assistant\n
Usage
from transformers import AutoTokenizer, AutoModelForCausalLM

# Load the tokenizer and model
tokenizer  = AutoTokenizer.from_pretrained("nvidia/Nemotron-Mini-4B-Instruct")
model = AutoModelForCausalLM.from_pretrained("nvidia/Nemotron-Mini-4B-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, max_new_tokens=128) 
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/Nemotron-Mini-4B-Instruct")

messages = [
    {"role": "user", "content": "Who are you?"},
]
pipe = pipeline("text-generation", model="nvidia/Nemotron-Mini-4B-Instruct")
pipe.tokenizer = tokenizer  # You need to assign tokenizer manually
pipe(messages)
AI Safety Efforts

The Nemotron-Mini-4B-Instruct model underwent AI safety evaluation including adversarial testing via three distinct methods:

  • Garak , is an automated LLM vulnerability scanner that probes for common weaknesses, including prompt injection and data leakage.
  • AEGIS , is a content safety evaluation dataset and LLM based content safety classifier model, that adheres to a broad taxonomy of 13 categories of critical risks in human-LLM interactions.
  • Human Content Red Teaming leveraging human interaction and evaluation of the models' responses.
Limitations

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.

Ethical Considerations

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 internal model team to ensure this model meets requirements for the relevant industry and use case and addresses unforeseen product misuse. For more detailed information on ethical considerations for this model, please see the Model Card++ . Please report security vulnerabilities or NVIDIA AI Concerns here .

Runs of nvidia Nemotron-Mini-4B-Instruct on huggingface.co

36.8K
Total runs
0
24-hour runs
358
3-day runs
4.1K
7-day runs
26.6K
30-day runs

More Information About Nemotron-Mini-4B-Instruct huggingface.co Model

More Nemotron-Mini-4B-Instruct license Visit here:

https://choosealicense.com/licenses/nvidia-open-model-license

Nemotron-Mini-4B-Instruct huggingface.co

Nemotron-Mini-4B-Instruct huggingface.co is an AI model on huggingface.co that provides Nemotron-Mini-4B-Instruct's model effect (), which can be used instantly with this nvidia Nemotron-Mini-4B-Instruct model. huggingface.co supports a free trial of the Nemotron-Mini-4B-Instruct model, and also provides paid use of the Nemotron-Mini-4B-Instruct. Support call Nemotron-Mini-4B-Instruct model through api, including Node.js, Python, http.

Nemotron-Mini-4B-Instruct huggingface.co Url

https://huggingface.co/nvidia/Nemotron-Mini-4B-Instruct

nvidia Nemotron-Mini-4B-Instruct online free

Nemotron-Mini-4B-Instruct huggingface.co is an online trial and call api platform, which integrates Nemotron-Mini-4B-Instruct's modeling effects, including api services, and provides a free online trial of Nemotron-Mini-4B-Instruct, you can try Nemotron-Mini-4B-Instruct online for free by clicking the link below.

nvidia Nemotron-Mini-4B-Instruct online free url in huggingface.co:

https://huggingface.co/nvidia/Nemotron-Mini-4B-Instruct

Nemotron-Mini-4B-Instruct install

Nemotron-Mini-4B-Instruct is an open source model from GitHub that offers a free installation service, and any user can find Nemotron-Mini-4B-Instruct on GitHub to install. At the same time, huggingface.co provides the effect of Nemotron-Mini-4B-Instruct install, users can directly use Nemotron-Mini-4B-Instruct installed effect in huggingface.co for debugging and trial. It also supports api for free installation.

Nemotron-Mini-4B-Instruct install url in huggingface.co:

https://huggingface.co/nvidia/Nemotron-Mini-4B-Instruct

Url of Nemotron-Mini-4B-Instruct

Nemotron-Mini-4B-Instruct huggingface.co Url

Provider of Nemotron-Mini-4B-Instruct huggingface.co

nvidia
ORGANIZATIONS

Other API from nvidia

huggingface.co

Total runs: 406.9K
Run Growth: 252.1K
Growth Rate: 61.97%
Updated:December 04 2025
huggingface.co

Total runs: 232.6K
Run Growth: 214.6K
Growth Rate: 92.28%
Updated:September 10 2025
huggingface.co

Total runs: 174.2K
Run Growth: 42.0K
Growth Rate: 24.09%
Updated:December 04 2025
huggingface.co

Total runs: 156.9K
Run Growth: 136.2K
Growth Rate: 86.83%
Updated:April 11 2026
huggingface.co

Total runs: 128.4K
Run Growth: 24.0K
Growth Rate: 18.70%
Updated:January 15 2025
huggingface.co

Total runs: 105.2K
Run Growth: -27.4K
Growth Rate: -26.72%
Updated:November 15 2023
huggingface.co

Total runs: 76.7K
Run Growth: 59.4K
Growth Rate: 77.48%
Updated:September 10 2025
huggingface.co

Total runs: 69.4K
Run Growth: 50.0K
Growth Rate: 71.95%
Updated:November 29 2025
huggingface.co

Total runs: 40.8K
Run Growth: 13.7K
Growth Rate: 33.60%
Updated:December 03 2025
huggingface.co

Total runs: 40.3K
Run Growth: -40.8K
Growth Rate: -101.36%
Updated:July 22 2025
huggingface.co

Total runs: 39.7K
Run Growth: 13.3K
Growth Rate: 36.43%
Updated:August 06 2022
huggingface.co

Total runs: 36.8K
Run Growth: 4.0K
Growth Rate: 10.85%
Updated:December 16 2025
huggingface.co

Total runs: 31.2K
Run Growth: 16.5K
Growth Rate: 54.32%
Updated:August 06 2022
huggingface.co

Total runs: 30.4K
Run Growth: 15.7K
Growth Rate: 51.63%
Updated:September 10 2025
huggingface.co

Total runs: 26.5K
Run Growth: 11.9K
Growth Rate: 44.81%
Updated:January 30 2026
huggingface.co

Total runs: 25.2K
Run Growth: -2.1K
Growth Rate: -8.48%
Updated:May 08 2025