Run this model with HF Jobs
Run nvidia/Nemotron-Research-GooseReason-4B-Instruct on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.
Paste one of these prompts into your coding agent:
Fine-tune on my dataset
Use HF Jobs and TRL to fine-tune https://huggingface.co/nvidia/Nemotron-Research-GooseReason-4B-Instruct. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.
Run batch inference
Use HF Jobs to run batch inference with https://huggingface.co/nvidia/Nemotron-Research-GooseReason-4B-Instruct on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.
Evaluate on a benchmark
Use HF Jobs to evaluate https://huggingface.co/nvidia/Nemotron-Research-GooseReason-4B-Instruct. Ask me which benchmark to run, then save the scores and the per-example results to a new dataset repo. Run `hf jobs --help` first to learn the CLI.
Quantize for lower memory use
Use HF Jobs to create a 4-bit version of https://huggingface.co/nvidia/Nemotron-Research-GooseReason-4B-Instruct. Push it to a new model repo, then reload it from there and report its memory footprint. Run `hf jobs --help` first to learn the CLI.
Instructions to use nvidia/Nemotron-Research-GooseReason-4B-Instruct with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use nvidia/Nemotron-Research-GooseReason-4B-Instruct with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="nvidia/Nemotron-Research-GooseReason-4B-Instruct") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("nvidia/Nemotron-Research-GooseReason-4B-Instruct") model = AutoModelForCausalLM.from_pretrained("nvidia/Nemotron-Research-GooseReason-4B-Instruct", device_map="auto") messages = [ {"role": "user", "content": "Who are you?"}, ] inputs = tokenizer.apply_chat_template( messages, add_generation_prompt=True, tokenize=True, return_dict=True, return_tensors="pt", ).to(model.device) outputs = model.generate(**inputs, max_new_tokens=256) print(tokenizer.decode(outputs[0][inputs["input_ids"].shape[-1]:])) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use nvidia/Nemotron-Research-GooseReason-4B-Instruct with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "nvidia/Nemotron-Research-GooseReason-4B-Instruct" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "nvidia/Nemotron-Research-GooseReason-4B-Instruct", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/nvidia/Nemotron-Research-GooseReason-4B-Instruct
- SGLang
How to use nvidia/Nemotron-Research-GooseReason-4B-Instruct with SGLang:
Install from pip and serve model
# Install SGLang from pip: pip install sglang # Start the SGLang server: python3 -m sglang.launch_server \ --model-path "nvidia/Nemotron-Research-GooseReason-4B-Instruct" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "nvidia/Nemotron-Research-GooseReason-4B-Instruct", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker images
docker run --gpus all \ --shm-size 32g \ -p 30000:30000 \ -v ~/.cache/huggingface:/root/.cache/huggingface \ --env "HF_TOKEN=<secret>" \ --ipc=host \ lmsysorg/sglang:latest \ python3 -m sglang.launch_server \ --model-path "nvidia/Nemotron-Research-GooseReason-4B-Instruct" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "nvidia/Nemotron-Research-GooseReason-4B-Instruct", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use nvidia/Nemotron-Research-GooseReason-4B-Instruct with Docker Model Runner:
docker model run hf.co/nvidia/Nemotron-Research-GooseReason-4B-Instruct
GooseReason-4B-Instruct
Trained with Golden Goose: A Simple Trick to Synthesize Unlimited RLVR Tasks from Unverifiable Internet Text
GooseReasonโ4BโInstruct is a state-of-the-art 4B reasoning model trained via Reinforcement Learning with Verifiable Rewards (RLVR) on GooseReason-0.7M, a large-scale dataset synthesized by the Golden Goose pipeline. Starting from Qwen3โ4BโInstruct and applying the ProRLv2 RL recipe augmented with GooseReason-0.7M data, GooseReason-4B-Instruct achieves new state-of-the-art results among 4B-Instruct models across 15 diverse benchmarks, spanning mathematics, programming, STEM reasoning, instruction following, and logical puzzles.
This model is for research and development only.
Golden Goose
Scaling up RLVR is bottlenecked by the scarcity of verifiable training data, where improvements increasingly saturate after prolonged training on existing datasets. Golden Goose is a simple, scalable pipeline that synthesizes unlimited RLVR tasks from reasoning-rich but unverifiable internet textโcorpora such as science textbooks, Olympiad math forums, and cybersecurity web scrapes that were previously excluded from RLVR data construction due to the difficulty of automatic verification.
The key idea: given a source text S, we prompt an LLM to identify a contiguous span t of crucial reasoning steps and replace it with a [MASK] token, constructing a masked context S_mask. Treating t as the ground-truth answer, the LLM then generates a set of diverse, plausible distractors D = {dโ, ..., dโ} that are similar in style and length to the removed span yet incorrect in context, forming a multiple-choice question: Q = (S_mask, {t} โช D)
Verification during RL simply checks whether the model's prediction matches the ground-truth optionโno external judge or test execution needed. This formulation unlocks reasoning-rich corpora that were previously unusable for RLVR: Olympiad-level theorem proving from AoPS-Instruct, free-form textbook QA from MegaScience, and coding problems without test cases from rStar-Coder.
GooseReason-0.7M Dataset
Using the Golden Goose pipeline, we synthesize GooseReason-0.7M, a large-scale RLVR dataset with over 0.7 million tasks spanning mathematics, programming, and general scientific domains. The dataset is constructed from the following source corpora:
| Domain | # Examples | Source | Description |
|---|---|---|---|
| Math | 235,836 | AoPSโInstruct | ~600K QA pairs from the Art of Problem Solving forum, predominantly featuring Olympiad-level math problems with community-driven solutions |
| Code | 281,793 | rStarโCoder | ~418K coding problems from competitive programming platforms; we use the synthetic_sft split (questions + teacher model solutions without test cases), which is not directly usable for RL training |
| STEM | 155,496 | MegaScience | ~650K QA pairs from ~12K university-level scientific textbooks spanning physics, biology, chemistry, medicine, computer science, mathematics, and economics |
The data mixing ratio used to train GooseReason-4B-Instruct is 55% ProRL data, 15% GooseReason-0.7M Math, 15% GooseReason-0.7M Code, and 15% GooseReason-0.7M STEM.
Evaluation Results
GooseReason-4B-Instruct is evaluated on 15 diverse benchmarks following the ProRL evaluation protocol. Math performance is measured on AIME 2024/2025, AMC, MATH, Minerva, and Olympiad Bench. Code performance is measured on APPS, CodeContests, CodeForces, TACO, HumanEvalPlus, and LiveCodeBench. STEM and reasoning tasks are measured via GPQA Diamond, IFEval, and Reasoning Gym (logical puzzles). The Qwen3โ30BโInstruct results (in italics) are provided as a reference.
Table 1. Performance (pass@1) comparison across math benchmarks. Adding GooseReason-0.7M revives the saturated model and enables further RL scaling, achieving a +2.18% absolute gain (vs. a 0.79% degradation when continuing on ProRL data alone).
| Model | RL Data | RL Steps | AIME24 | AIME25 | AMC | MATH | Minerva | Olympiad | Avg |
|---|---|---|---|---|---|---|---|---|---|
| Qwen3โ4BโInstruct | โ | โ | 64.79 | 48.75 | 85.17 | 94.66 | 50.09 | 65.83 | 68.21 |
| Qwen3โ4BโInstruct | ProRL Dataset | 333 | 66.46 | 57.29 | 87.80 | 96.41 | 53.72 | 68.24 | 71.65 |
| Qwen3โ4BโInstruct | ProRL Dataset | +156 | 62.29 | 55.21 | 87.65 | 96.54 | 53.33 | 67.19 | 70.36 |
| GooseReasonโ4BโInstruct | +GooseReasonโ0.7M | +270 | 70.00 | 63.96 | 89.16 | 96.70 | 54.37 | 68.79 | 73.83 |
| Qwen3โ30BโInstruct | โ | โ | 76.66 | 63.74 | 91.64 | 97.10 | 51.99 | 70.05 | 75.20 |
Table 2. Performance (pass@1) comparison across coding benchmarks. GooseReason-4B-Instruct achieves a +2.24% absolute gain in coding average, outperforming Qwen3โ30BโInstruct by a wide margin.
| Model | RL Data | RL Steps | APPS | CodeContests | CodeForces | TACO | HumanEvalPlus | LiveCodeBench | Avg |
|---|---|---|---|---|---|---|---|---|---|
| Qwen3โ4BโInstruct | โ | โ | 47.01 | 42.08 | 33.69 | 23.69 | 77.56 | 31.74 | 42.63 |
| Qwen3โ4BโInstruct | ProRL Dataset | 333 | 57.92 | 52.55 | 51.67 | 33.13 | 84.24 | 41.28 | 53.46 |
| Qwen3โ4BโInstruct | ProRL Dataset | +156 | 58.45 | 52.88 | 54.47 | 32.80 | 84.20 | 40.56 | 53.89 |
| GooseReasonโ4BโInstruct | +GooseReasonโ0.7M | +270 | 60.48 | 54.66 | 55.59 | 35.37 | 86.46 | 41.64 | 55.70 |
| Qwen3โ30BโInstruct | โ | โ | 55.37 | 49.70 | 47.76 | 29.05 | 80.56 | 43.20 | 50.94 |
Table 3. Performance (pass@1) on STEM reasoning (GPQA Diamond), instruction following (IFEval), and logic puzzles (Reasoning Gym). Tasks in Reasoning Gym are grouped into four categories: Math, Algorithmic, Cognition, and Logic.
| Model | RL Data | RL Steps | GPQA | IFEval | Math | Algorithmic | Cognition | Logic | Avg. Gym |
|---|---|---|---|---|---|---|---|---|---|
| Qwen3โ4BโInstruct | โ | โ | 60.26 | 72.36 | 43.69 | 19.46 | 34.92 | 57.26 | 33.98 |
| Qwen3โ4BโInstruct | ProRL Dataset | 333 | 64.39 | 79.11 | 92.66 | 80.47 | 60.07 | 86.90 | 80.10 |
| Qwen3โ4BโInstruct | ProRL Dataset | +156 | 62.87 | 76.24 | 92.71 | 83.24 | 60.75 | 87.71 | 81.06 |
| GooseReasonโ4BโInstruct | +GooseReasonโ0.7M | +270 | 66.79 | 76.39 | 92.76 | 83.91 | 60.24 | 87.80 | 81.28 |
| Qwen3โ30BโInstruct | โ | โ | 70.40 | 82.73 | 53.86 | 38.51 | 28.60 | 32.89 | 43.56 |
How to Use
Requirements: transformers >= 4.51.0
from transformers import AutoModelForCausalLM, AutoTokenizer
model_name = "nvidia/GooseReason-4B-Instruct"
tokenizer = AutoTokenizer.from_pretrained(model_name)
model = AutoModelForCausalLM.from_pretrained(
model_name,
torch_dtype="auto",
device_map="auto",
)
prompt = "Find all positive integers n such that nยฒ + 3n + 5 is a perfect square."
messages = [
{"role": "user", "content": prompt}
]
text = tokenizer.apply_chat_template(
messages,
tokenize=False,
add_generation_prompt=True,
)
model_inputs = tokenizer([text], return_tensors="pt").to(model.device)
generated_ids = model.generate(
**model_inputs,
max_new_tokens=32768,
)
output_ids = generated_ids[0][len(model_inputs.input_ids[0]):].tolist()
response = tokenizer.decode(output_ids, skip_special_tokens=True)
print(response)
Recommended sampling parameters: temperature=0.6, max_new_tokens=32768.
Citation
If you find this model or the Golden Goose paper helpful, please cite:
@article{lu2026goldengoose,
title={Golden Goose: A Simple Trick to Synthesize Unlimited RLVR Tasks from Unverifiable Internet Text},
author={Lu, Ximing and Acuna, David and Jung, Jaehun and Hu, Jian and Zhang, Di and Diao, Shizhe and Zou, Yunheng and Zhang, Shaokun and Cui, Brandon and Liu, Mingjie and Kim, Hyunwoo and Ammanabrolu, Prithviraj and Kautz, Jan and Dong, Yi and Choi, Yejin},
journal={arXiv preprint arXiv:2601.22975},
year={2026}
}
- Downloads last month
- 2,767
Model tree for nvidia/Nemotron-Research-GooseReason-4B-Instruct
Base model
Qwen/Qwen3-4B-Instruct-2507
docker model run hf.co/nvidia/Nemotron-Research-GooseReason-4B-Instruct