NVIDIA Nemotron-H-8B-Base-8K is a large language model (LLM) developed by NVIDIA that is designed as a completion model for a given piece of text. It uses a hybrid model architecture that consists primarily of Mamba-2 and MLP layers combined with just four Attention layers.The model features a context length of 8K. The supported languages include: English, German, Spanish, French, Italian, Korean, Portuguese, Russian, Japanese, and Chinese. For more detailed information on the model architecture, training, and evaluation, please see the
project page
and the
technical report
.
For best performance on a given task, users are encouraged to customize the model using the
NeMo Framework
suite of customization tools including Parameter-Efficient Fine-Tuning (P-tuning, Adapters, LoRA, and more), and Model Alignment (SFT, SteerLM, RLHF, and more) using
NeMo-Aligner
.
This model is for research and development only.
This model is part of the Nemotron-H Collection. You can find the models in this family here:
Other Properties Related to Input: Context length up to 8K. Supported languages include German, Spanish, French, Italian, Korean, Portuguese, Russian, Japanese, Chinese and English.
Our AI models are designed and/or optimized to run on NVIDIA GPU-accelerated systems. By leveraging NVIDIA’s hardware (e.g. GPU cores) and software frameworks (e.g., CUDA libraries), the model achieves faster training and inference times compared to CPU-only solutions.
As this is a base model, no explicit prompt format is recommended or required.
Example
import torch
from transformers import AutoTokenizer, AutoModelForCausalLM
# Load the tokenizer and model
tokenizer = AutoTokenizer.from_pretrained("nvidia/Nemotron-H-8B-Base-8K", trust_remote_code=True)
model = AutoModelForCausalLM.from_pretrained("nvidia/Nemotron-H-8B-Base-8K", torch_dtype=torch.bfloat16, trust_remote_code=True).cuda()
prompt = "When was NVIDIA founded?"
outputs = model.generate(**tokenizer(prompt, return_tensors="pt", add_special_tokens=False).to(model.device))
print(tokenizer.decode(outputs[0]))
Training, Testing, and Evaluation Datasets
Training & Testing Datasets:
The training corpus for Nemotron-H-8B-Base-8K consists of English and multilingual text (German, Spanish, French, Italian, Korean, Portuguese, Russian, Japanese, Chinese and English), as well as code. Our sources cover a variety of document types such as: webpages, dialogue, articles, and other written materials. This model was also improved using synthetic data from Qwen (Built with Qwen). The corpus spans domains including legal, math, science, finance, and more. We also include a small portion of question-answering, and alignment style data to improve model accuracy.
Data Collection for Training & Testing Datasets:
Hybrid: Automated, Human, Synthetic
Data Labeling for Training & Testing Datasets:
Hybrid: Automated, Human, Synthetic
Evaluation Datasets
We used the datasets listed in the next section to evaluate Nemotron-H-8B-Base-8K.
Data Collection for Evaluation Datasets:
Hybrid: Human, Synthetic
Data Labeling for Evaluation Datasets:
Hybrid: Human, Synthetic, Automatic
Commonsense Understanding Evaluations:
ARC Challenge 25-shot
Hellaswag 10-shot
Winogrande 5-shot
CommonsenseQA 7-shot
88.74
83.23
80.51
78.71
ARC (Ai2 reasoning challenge)-Challenge - The challenge set of questions from a benchmark that contains grade-school level, multiple-choice science questions to assess question answering ability of language models.
Dataset
Hellaswag - Tests the ability of a language model to correctly finish the provided context from a choice of possible options.
Dataset
Winogrande - Tests the ability to choose the right option for a given sentence which requires commonsense reasoning.
Dataset
CommonsenseQA - A multiple-choice question answering dataset that requires different type of commonsense knowledge to predict the correct answers.
Dataset
Coding Evaluations:
MBPP (sanitized) 3-shot
MBPP+ 0-shot
HumanEval 0-shot
HumanEval+ 0-shot
65.37
59.52
58.54
55.49
MBPP (Mostly Basic Python Programming Problems) - Evaluates ability to generate solutions for Python programming tasks.
Dataset
MBPP+ - Extended version of MBPP with additional validation.
Dataset
HumanEval - Tests code generation and completion abilities in Python.
Dataset
Math Evaluations:
GSM8K 8-shot CoT
MATH 4-shot CoT
MATH-Lvl 5 4-shot CoT
MATH-500 4-shot CoT
87.11
46.52
22.93
44.43
GSM8K (Grade School Math 8K) - Evaluates grade school level mathematical word problem solving.
Dataset
MATH - Tests mathematical ability across multiple difficulty levels and various subjects including: Prealgebra, Algebra, Number Theory, Counting and Probability, Geometry, Intermediate Algebra, and Precalculus.
Dataset
MATH Lvl 5 - Only the most difficult questions from the MATH dataset.
Dataset
MATH-500 - Tests advanced mathematical problem solving across algebra, geometry, and calculus.
Dataset
General Evaluations:
MMLU-Pro 5-shot CoT
MMLU 5-shot
44.01
72.77
MMLU Pro - Evaluates language understanding models across a broad range of challenging, reasoning-focused questions across 14 diverse domains.
Dataset
MMLU - Tests knowledge across 57 subjects including science, humanities, math and more.
Dataset
Potential Known Risks for Usage
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.
The model demonstrates weakness to indirect prompt injection via some encodings, including Base16, Hex/ASCII, and Braille, though is more resilient than other similar models to injections using the more common Base64 vector.
Inference
Engine: NeMo
Test Hardware NVIDIA H100-80GB
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.
Nemotron-H-8B-Base-8K huggingface.co is an AI model on huggingface.co that provides Nemotron-H-8B-Base-8K's model effect (), which can be used instantly with this nvidia Nemotron-H-8B-Base-8K model. huggingface.co supports a free trial of the Nemotron-H-8B-Base-8K model, and also provides paid use of the Nemotron-H-8B-Base-8K. Support call Nemotron-H-8B-Base-8K model through api, including Node.js, Python, http.
Nemotron-H-8B-Base-8K huggingface.co is an online trial and call api platform, which integrates Nemotron-H-8B-Base-8K's modeling effects, including api services, and provides a free online trial of Nemotron-H-8B-Base-8K, you can try Nemotron-H-8B-Base-8K online for free by clicking the link below.
nvidia Nemotron-H-8B-Base-8K online free url in huggingface.co:
Nemotron-H-8B-Base-8K is an open source model from GitHub that offers a free installation service, and any user can find Nemotron-H-8B-Base-8K on GitHub to install. At the same time, huggingface.co provides the effect of Nemotron-H-8B-Base-8K install, users can directly use Nemotron-H-8B-Base-8K installed effect in huggingface.co for debugging and trial. It also supports api for free installation.
Nemotron-H-8B-Base-8K install url in huggingface.co: