Instructions to use GeneralReasoning/Avalon-M1-Mini with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use GeneralReasoning/Avalon-M1-Mini with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="GeneralReasoning/Avalon-M1-Mini", trust_remote_code=True) 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("GeneralReasoning/Avalon-M1-Mini", trust_remote_code=True) model = AutoModelForCausalLM.from_pretrained("GeneralReasoning/Avalon-M1-Mini", trust_remote_code=True, 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 GeneralReasoning/Avalon-M1-Mini with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "GeneralReasoning/Avalon-M1-Mini" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "GeneralReasoning/Avalon-M1-Mini", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/GeneralReasoning/Avalon-M1-Mini
- SGLang
How to use GeneralReasoning/Avalon-M1-Mini 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 "GeneralReasoning/Avalon-M1-Mini" \ --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": "GeneralReasoning/Avalon-M1-Mini", "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 "GeneralReasoning/Avalon-M1-Mini" \ --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": "GeneralReasoning/Avalon-M1-Mini", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use GeneralReasoning/Avalon-M1-Mini with Docker Model Runner:
docker model run hf.co/GeneralReasoning/Avalon-M1-Mini
Avalon-M1-Mini
Avalon-M1-Mini is an agent collective model trained with reinforcement learning from collective rewards (RLCR). It runs organisations of agents that work together to accomplish long-horizon tasks. Paper: Avalon-M1: Reinforcement Learning from Collective Rewards. Harness: github.com/GeneralReasoning/avalon-harness.
This repository holds Avalon-M1-Mini, a fine-tune of NVIDIA Nemotron 3 Super 120B-A12B in bf16 safetensors, loadable with transformers (trust_remote_code=True) and servable with SGLang or vLLM.
Research model. Avalon-M1-Mini is released for research and experimentation with multi-agent systems and multi-agent safety. It is not intended for production use.
How it is meant to be used
Avalon-M1-Mini plays every role in an agent organisation: a CEO agent reads the task, hires specialist agents with job titles of its choosing (up to an organisation budget of 0 to 8 specialists), and the team co-ordinates through a shared message board (channels, direct messages, reactions), a shared archive and a shared workspace, with the CEO submitting the final result. Every agent is a copy of this model with its own context. During training the whole organisation is rewarded as one, so the same checkpoint learns to manage, to specialise and to review its teammates' work.
Run it with our harness, github.com/GeneralReasoning/avalon-harness, which reproduces the organisation environment the model was trained in (hiring, message board, archive, workspace tools and the organisation budget). The model has not been trained for other agent harnesses such as OpenCode: in those it runs as a single tool-using agent with a different tool set and prompts, its organisation skills go unused, and you should expect lower performance than the numbers below.
A budget of 0 gives an ordinary single-agent run with tools, which is how the "single" columns below were measured.
Model details
| Base model | NVIDIA Nemotron 3 Super 120B-A12B (base, bf16) |
| Architecture | Nemotron-H hybrid: 40 Mamba-2 layers, 40 latent mixture-of-experts layers and 8 attention layers (88 layers in total) |
| Parameters | 120B total, 12B active per token |
| Experts | 512 routed experts plus 1 shared expert, 22 routed experts active per token, latent size 1,024 |
| Hidden size / vocabulary | 4,096 / 131,072 |
| Attention | 32 query heads, 2 key-value heads, head dimension 128 |
| Context | trained with a 131,072-token window; the config allows longer positions and we serve at up to 262,144 |
| Multi-token prediction head | removed (num_nextn_predict_layers: 0) |
| Precision | bf16 safetensors |
| Chat format | ChatML-style turns, <think> reasoning opened by the chat template, XML-style tool calls; see Prompt format below |
Prompt format
The chat template in tokenizer_config.json renders OpenAI-style messages and tools into the format the model was trained on with RL:
- Tool definitions are one compact JSON object per line inside
<tools>β¦</tools>, appended to the end of the first system message (or sent as their own system message when there is none, as below). - Tool results are sent back with the
toolrole. - Past assistant turns always open with a
<think>block (empty when the turn had no reasoning) and end at<|im_end|>with no trailing newline. - The generation prompt opens the reasoning block for the model:
<|im_start|>assistant\n<think>\n. The model writes its reasoning, closes it with</think>, then answers or calls tools.
The end-of-sequence token is <|im_end|>. Tool-call arguments must reach the template as a mapping, as SGLang and vLLM pass them; with transformers, parse OpenAI-style JSON-string arguments before calling apply_chat_template.
<|im_start|>system
You may call one or more functions to assist with the user query.
You are provided with function signatures within <tools></tools> XML tags:
<tools>
{"name": "get_weather", "description": "Get weather", "parameters": {"type": "object", "properties": {"city": {"type": "string"}}, "required": ["city"]}}
</tools>
For each function call, return the function call within <tool_call></tool_call> XML tags using the following format:
<tool_call>
<function=function_name>
<parameter=param_name>param_value</parameter>
</function>
</tool_call><|im_end|>
<|im_start|>user
What is the weather in Paris?<|im_end|>
<|im_start|>assistant
<think>
The user wants the current weather, so I should call get_weather.
</think>
<tool_call>
<function=get_weather>
<parameter=city>
Paris
</parameter>
</function>
</tool_call><|im_end|><|im_start|>tool
{"temperature_c": 12, "conditions": "overcast"}<|im_end|>
<|im_start|>assistant
<think>
Training
- Supervised fine-tuning of the base model on agent-organisation trajectories.
- Reinforcement learning from collective rewards (RLCR) on 128 NVIDIA H200 GPUs. Each optimizer step samples several hundred tasks from 147 training environments (software engineering, finance and business simulations, science, mathematics and proofs, games, deep research, healthcare and professional tasks), runs a group of organisations per task with randomised organisation budgets, and updates every agent in an organisation with the same group-relative collective advantage. No per-agent credit assignment is used. Rollouts run for hours of wall-clock time at the full 131k context, with context compaction when an agent's context fills.
The training recipe, the organisation environment and our analysis of how collective behaviour changes during training are described in the paper and the Avalon-M1 release.
Evaluation
Results are from the paper, Avalon-M1: Reinforcement Learning from Collective Rewards (Tables 2 and 3). All are internal evaluations on General Reasoning infrastructure, with Avalon-M1-Mini run in the Avalon harness.
Organisation budgets and baselines. "Single" is a budget of 0 (one agent with tools); "team@N" lets the CEO hire up to N specialists. S8 is a single agent that may not submit until it has matched team@8's output tokens. I8 (independent@8) runs eight single agents in parallel with no communication, after which a selector, the same model, reads the eight answers and trajectories and submits one. The Nemotron column is NVIDIA's instruction-tuned Nemotron 3 Super 120B-A12B as a single agent, run in OpenCode so that it uses a familiar harness. Scores are percentages except for two rows: KellyBench is the return on the starting bankroll and YC-Bench is the final cash.
| Benchmark | Nemotron 3 Super (instruct), single | Avalon-M1-Mini single | team@2 | team@4 | team@8 | S8 | I8 |
|---|---|---|---|---|---|---|---|
| AIME 2024 | 91.1 | 96.7 | 93.3 | 96.7 | 95.6 | 95.6 | 96.7 |
| AIME 2025 | 92.2 | 91.1 | 98.9 | 98.9 | 98.9 | 100.0 | 100.0 |
| AIME 2026 | 87.8 | 92.2 | 95.6 | 95.6 | 94.4 | 96.7 | 93.3 |
| BrowseComp-Internal | 16.7 | 19.3 | 29.3 | 28.7 | 28.0 | 20.7 | 35.8 |
| DRACO-Internal | 38.4 | 50.5 | 55.2 | 56.2 | 57.4 | 56.0 | 50.4 |
| EdgeBench | 11.9 | 18.5 | 19.2 | 19.9 | 18.1 | n/a | n/a |
| FrontierFinance | 26.1 | 38.1 | 42.9 | 42.4 | 42.5 | 43.7 | 41.7 |
| FrontierScience | 50.0 | 62.6 | 61.3 | 61.1 | 63.9 | 59.6 | 60.6 |
| GPQA | 82.7 | 85.4 | 84.3 | 86.9 | 88.4 | 85.4 | 86.9 |
| HealthBench | 45.8 | 49.4 | 50.3 | 50.7 | 50.5 | 56.4 | 48.7 |
| HLE (no tools) | 14.0 | 24.4 | 27.0 | 27.1 | 27.4 | 24.3 | 27.4 |
| IMO-ProofBench-Advanced | 16.6 | 23.8 | 43.7 | 45.2 | 39.0 | 38.8 | 34.8 |
| JobBench | 9.2 | 21.4 | 30.3 | 34.2 | 37.0 | 33.0 | 25.2 |
| KellyBench (return on the starting bankroll, %) | β98.7 | β4.4 | β11.5 | β13.6 | β22.8 | n/a | n/a |
| ProgramBench | 13.1 | 30.6 | 31.8 | 31.1 | 31.2 | n/a | n/a |
| SWE-Bench Pro V2 (Hard) | 11.8 | 27.5 | 35.3 | 29.4 | 23.5 | 29.4 | 25.5 |
| Terminal-Bench 2.1 | 34.8 | 48.3 | 46.1 | 47.2 | 41.6 | 42.7 | 49.4 |
| YC-Bench (final cash, $M) | 0.33 | 1.25 | 1.18 | 1.04 | 1.44 | n/a | n/a |
BrowseComp-Internal and DRACO-Internal search an internal index rather than the live web, so their scores are not comparable with published results. "n/a" marks baselines that were not run on that benchmark.
Latency. Across 12 benchmarks, the eight-hire organisation reaches a similar average score to S8 and I8 at approximately one third of S8's derived latency and just over half of I8's. On EdgeBench, organisations overtake the single agent after approximately 0.4 derived hours. See the paper for the derived-latency method.
Serving
SGLang, 8 GPUs with tensor parallelism (4 also fits on H200-class GPUs):
python -m sglang.launch_server \
--model-path GeneralReasoning/Avalon-M1-Mini \
--trust-remote-code --tp 8 --context-length 131072 \
--reasoning-parser glm45 --tool-call-parser qwen3_coder
vLLM, with the same parsers (--port 30000 matches SGLang's default, which the examples below and the harness assume):
vllm serve GeneralReasoning/Avalon-M1-Mini \
--trust-remote-code --tensor-parallel-size 8 --max-model-len 131072 \
--enable-auto-tool-choice --tool-call-parser qwen3_coder \
--reasoning-parser glm45 --port 30000
Both commands were tested with SGLang 0.5.23 and vLLM 0.34.0 on 8 H200 GPUs.
The chat template opens the <think> block in the prompt, so the generated text is the reasoning, then </think>, then the answer. The glm45 reasoning parser treats a reply as reasoning from its first token, so it returns everything before </think> as the reasoning (reasoning_content in SGLang, reasoning in vLLM) and the rest as content. Without a parser, the reasoning and the closing </think> arrive inside the message content. Sample at temperature 1.0, as in training. Tool calls parse with the qwen3_coder parser. Then point the harness, or any OpenAI-compatible client with tool calling, at the server:
from openai import OpenAI
client = OpenAI(base_url="http://localhost:30000/v1", api_key="none")
resp = client.chat.completions.create(
model="GeneralReasoning/Avalon-M1-Mini",
messages=[{"role": "user", "content": "What is the capital of France? Answer in one word."}],
)
print(resp.choices[0].message.content)
With transformers (the full model needs about 240 GB of GPU memory in bf16):
from transformers import AutoModelForCausalLM, AutoTokenizer
name = "GeneralReasoning/Avalon-M1-Mini"
tok = AutoTokenizer.from_pretrained(name, trust_remote_code=True)
model = AutoModelForCausalLM.from_pretrained(name, trust_remote_code=True, dtype="bfloat16", device_map="auto")
msgs = [{"role": "user", "content": "What is the capital of France? Answer in one word."}]
ids = tok.apply_chat_template(msgs, add_generation_prompt=True, return_tensors="pt").to(model.device)
print(tok.decode(model.generate(ids, max_new_tokens=256)[0][ids.shape[1]:], skip_special_tokens=True))
The repository includes NVIDIA's configuration_nemotron_h.py and modeling_nemotron_h.py, so trust_remote_code=True is required.
Limitations and safety
- Research use only. The model has not been tuned for production safety, and nothing has been done to make it refuse harmful requests beyond what it inherited from the base model and the training environments. Do not deploy it to end users.
- It acts. As an agent it writes and runs code, browses, edits files and messages other agents. Run it in isolated sandboxes with no access to credentials, production systems or the open internet unless that is what you are studying.
- Training artefacts. Like other RL-trained agents it can reward-hack an environment, over-hire or under-use its team, loop on a message, or stop early with a confident wrong answer. These behaviours are part of what the model is released to study.
- Scope. Trained and evaluated in English on tool-using, long-horizon tasks. It is not a general chat assistant and was not tuned for conversational helpfulness or style.
- Reasoning tokens. Every response starts with reasoning (the chat template opens the
<think>block) that can be long; budget tokens and context accordingly.
License
Released under the MIT License. It is a fine-tune of NVIDIA Nemotron 3 Super 120B-A12B, which NVIDIA distributes under the NVIDIA Nemotron Open Model License; the model code files in this repository (configuration_nemotron_h.py, modeling_nemotron_h.py) are NVIDIA's.
Citation
@article{zarov2026avalonm1,
title = {Avalon-M1: Reinforcement Learning from Collective Rewards},
author = {Zarov, Iliyan and Course, Henry and Hartshorn, Anthony and Achiron, Ran and Roche, Louis and Sinha, Akshit and Taylor, Chengxi and Taylor, Ross},
journal = {arXiv preprint arXiv:2611.32539},
year = {2026},
url = {https://arxiv.org/abs/2611.32539}
}
- Downloads last month
- -
