Abstract
Hermes 3 is a suite of open-weight, neutrally-aligned models (8B, 70B, and 405B) fine-tuned from Llama 3.1. Developed by Nous Research, it pushes the boundaries of steerability and agentic reasoning, achieving state-of-the-art performance among open models while explicitly avoiding the "moralizing" refusals common in commercial LLMs.
1. Introduction
While base models are incredibly capable, they are often difficult for average users to control. Most "instruct-tuned" models solve this by training the model to be a helpful assistant, but commercial versions often come with heavy-handed guardrails that lead to "refusals" on moral grounds or "lobotomized" lines of thinking. The authors argue that guardrails should exist at the system level, not within the model's weights. Hermes 3 aims to be a "neutral generalist"—a model that follows instructions exactly as given, maintaining high steerability and complex reasoning without pre-filtering the user's intent.
2. Methods
The training recipe for Hermes 3 consists of two primary phases: Supervised Fine-Tuning (SFT) and Direct Preference Optimization (DPO).
2.1 Supervised Fine-Tuning (SFT)
The models were trained on a 128K context window using the AdamW optimizer. A key technical highlight is the use of efficient sample packing with Flash Attention 2, which allowed the team to train on a heterogeneous mix of sequence lengths with 96% efficiency.
2.2 Direct Preference Optimization (DPO)
To save memory—especially for the 405B giant—the team used LoRA adapters for the DPO phase. Interestingly, while DPO significantly boosted the 8B model, the authors found it provided negligible gains for the 70B and 405B versions, leading them to stick with the SFT checkpoints for the larger models.
2.3 Agentic Training
A standout feature is the model's agentic training. Hermes 3 was trained to use specific XML-like tags for structured reasoning, including <SCRATCHPAD>, <REASONING>, <INNER_MONOLOGUE>, and <THINKING>. This encourages the model to "think" before it speaks, improving its performance on complex, multi-step tasks.
3. Datasets
The "Hermes 3 Data Mixture" is a curated collection of approximately 390 million tokens. 69% of the tokens are "output" (response) tokens, focusing the learning on the model's generation quality. The mixture includes General Instructions (60.6%), Domain Expertise (12.8%), Math (6.7%), Roleplaying (6.1%), and specialized categories like Tool Use/RAG and Coding. The team heavily utilized Evol-Instruct schemes to generate high-quality synthetic reasoning tasks.
4. Key Insights
- Neutral Alignment: By training the model to be neutrally aligned, it becomes a more faithful tool for roleplaying and creative writing, as it won't break character to lecture the user.
- Sensitivity to System Prompts: Hermes 3 is designed to be highly sensitive to the system prompt. In the 405B version, an empty system prompt doesn't even trigger a "helpful assistant" persona; the model essentially waits for the user to define its world-view.
- Structured Reasoning: By reserving specific tokens for internal monologues and planning, Hermes 3 makes "Chain of Thought" (CoT) an architectural feature rather than just a prompting trick.
5. Key Results
Hermes 3 405B is currently a top-tier open-weight model, often outperforming the original Llama 3.1 Instruct on several benchmarks. For instance, on AGIEval, Hermes 3 405B scored 61.84, notably higher than Llama 3.1 Instruct's 58.60.
Qualitative examples show the model successfully maintaining complex personas while performing logic tasks, such as counting letters in specific words while adhering to a requested prose style.
6. Limitations and Future Work
Training the 405B model required 128 H100 GPUs and significant optimization of FSDP with CPU offloading. The lack of improvement from DPO on the largest models suggests that current preference optimization techniques might need to be re-evaluated for 400B+ parameter scales. Finally, the authors acknowledge that while the model is "agentic," true agency comes from the systems humans build around the model.
Summary updated