arnomatic commited on
Commit
206a410
·
verified ·
1 Parent(s): 592d5df

Upload README.md with huggingface_hub

Browse files
Files changed (1) hide show
  1. README.md +270 -199
README.md CHANGED
@@ -1,199 +1,270 @@
1
- ---
2
- library_name: transformers
3
- tags: []
4
- ---
5
-
6
- # Model Card for Model ID
7
-
8
- <!-- Provide a quick summary of what the model is/does. -->
9
-
10
-
11
-
12
- ## Model Details
13
-
14
- ### Model Description
15
-
16
- <!-- Provide a longer summary of what this model is. -->
17
-
18
- This is the model card of a 🤗 transformers model that has been pushed on the Hub. This model card has been automatically generated.
19
-
20
- - **Developed by:** [More Information Needed]
21
- - **Funded by [optional]:** [More Information Needed]
22
- - **Shared by [optional]:** [More Information Needed]
23
- - **Model type:** [More Information Needed]
24
- - **Language(s) (NLP):** [More Information Needed]
25
- - **License:** [More Information Needed]
26
- - **Finetuned from model [optional]:** [More Information Needed]
27
-
28
- ### Model Sources [optional]
29
-
30
- <!-- Provide the basic links for the model. -->
31
-
32
- - **Repository:** [More Information Needed]
33
- - **Paper [optional]:** [More Information Needed]
34
- - **Demo [optional]:** [More Information Needed]
35
-
36
- ## Uses
37
-
38
- <!-- Address questions around how the model is intended to be used, including the foreseeable users of the model and those affected by the model. -->
39
-
40
- ### Direct Use
41
-
42
- <!-- This section is for the model use without fine-tuning or plugging into a larger ecosystem/app. -->
43
-
44
- [More Information Needed]
45
-
46
- ### Downstream Use [optional]
47
-
48
- <!-- This section is for the model use when fine-tuned for a task, or when plugged into a larger ecosystem/app -->
49
-
50
- [More Information Needed]
51
-
52
- ### Out-of-Scope Use
53
-
54
- <!-- This section addresses misuse, malicious use, and uses that the model will not work well for. -->
55
-
56
- [More Information Needed]
57
-
58
- ## Bias, Risks, and Limitations
59
-
60
- <!-- This section is meant to convey both technical and sociotechnical limitations. -->
61
-
62
- [More Information Needed]
63
-
64
- ### Recommendations
65
-
66
- <!-- This section is meant to convey recommendations with respect to the bias, risk, and technical limitations. -->
67
-
68
- Users (both direct and downstream) should be made aware of the risks, biases and limitations of the model. More information needed for further recommendations.
69
-
70
- ## How to Get Started with the Model
71
-
72
- Use the code below to get started with the model.
73
-
74
- [More Information Needed]
75
-
76
- ## Training Details
77
-
78
- ### Training Data
79
-
80
- <!-- This should link to a Dataset Card, perhaps with a short stub of information on what the training data is all about as well as documentation related to data pre-processing or additional filtering. -->
81
-
82
- [More Information Needed]
83
-
84
- ### Training Procedure
85
-
86
- <!-- This relates heavily to the Technical Specifications. Content here should link to that section when it is relevant to the training procedure. -->
87
-
88
- #### Preprocessing [optional]
89
-
90
- [More Information Needed]
91
-
92
-
93
- #### Training Hyperparameters
94
-
95
- - **Training regime:** [More Information Needed] <!--fp32, fp16 mixed precision, bf16 mixed precision, bf16 non-mixed precision, fp16 non-mixed precision, fp8 mixed precision -->
96
-
97
- #### Speeds, Sizes, Times [optional]
98
-
99
- <!-- This section provides information about throughput, start/end time, checkpoint size if relevant, etc. -->
100
-
101
- [More Information Needed]
102
-
103
- ## Evaluation
104
-
105
- <!-- This section describes the evaluation protocols and provides the results. -->
106
-
107
- ### Testing Data, Factors & Metrics
108
-
109
- #### Testing Data
110
-
111
- <!-- This should link to a Dataset Card if possible. -->
112
-
113
- [More Information Needed]
114
-
115
- #### Factors
116
-
117
- <!-- These are the things the evaluation is disaggregating by, e.g., subpopulations or domains. -->
118
-
119
- [More Information Needed]
120
-
121
- #### Metrics
122
-
123
- <!-- These are the evaluation metrics being used, ideally with a description of why. -->
124
-
125
- [More Information Needed]
126
-
127
- ### Results
128
-
129
- [More Information Needed]
130
-
131
- #### Summary
132
-
133
-
134
-
135
- ## Model Examination [optional]
136
-
137
- <!-- Relevant interpretability work for the model goes here -->
138
-
139
- [More Information Needed]
140
-
141
- ## Environmental Impact
142
-
143
- <!-- Total emissions (in grams of CO2eq) and additional considerations, such as electricity usage, go here. Edit the suggested text below accordingly -->
144
-
145
- Carbon emissions can be estimated using the [Machine Learning Impact calculator](https://mlco2.github.io/impact#compute) presented in [Lacoste et al. (2019)](https://arxiv.org/abs/1910.09700).
146
-
147
- - **Hardware Type:** [More Information Needed]
148
- - **Hours used:** [More Information Needed]
149
- - **Cloud Provider:** [More Information Needed]
150
- - **Compute Region:** [More Information Needed]
151
- - **Carbon Emitted:** [More Information Needed]
152
-
153
- ## Technical Specifications [optional]
154
-
155
- ### Model Architecture and Objective
156
-
157
- [More Information Needed]
158
-
159
- ### Compute Infrastructure
160
-
161
- [More Information Needed]
162
-
163
- #### Hardware
164
-
165
- [More Information Needed]
166
-
167
- #### Software
168
-
169
- [More Information Needed]
170
-
171
- ## Citation [optional]
172
-
173
- <!-- If there is a paper or blog post introducing the model, the APA and Bibtex information for that should go in this section. -->
174
-
175
- **BibTeX:**
176
-
177
- [More Information Needed]
178
-
179
- **APA:**
180
-
181
- [More Information Needed]
182
-
183
- ## Glossary [optional]
184
-
185
- <!-- If relevant, include terms and calculations in this section that can help readers understand the model or model card. -->
186
-
187
- [More Information Needed]
188
-
189
- ## More Information [optional]
190
-
191
- [More Information Needed]
192
-
193
- ## Model Card Authors [optional]
194
-
195
- [More Information Needed]
196
-
197
- ## Model Card Contact
198
-
199
- [More Information Needed]
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ base_model: ByteDance-Seed/Seed-OSS-36B-Base
3
+ language:
4
+ - en
5
+ library_name: transformers
6
+ license: apache-2.0
7
+ pipeline_tag: text-generation
8
+ tags:
9
+ - Bytedance Seed
10
+ - instruct
11
+ - finetune
12
+ - reasoning
13
+ - hybrid-mode
14
+ - chatml
15
+ - function calling
16
+ - tool use
17
+ - json mode
18
+ - structured outputs
19
+ - atropos
20
+ - dataforge
21
+ - long context
22
+ - roleplaying
23
+ - chat
24
+ - heretic
25
+ - uncensored
26
+ - decensored
27
+ - abliterated
28
+ widget:
29
+ - example_title: Hermes 4
30
+ messages:
31
+ - role: system
32
+ content: You are Hermes 4, a capable, neutrally-aligned assistant. Prefer concise,
33
+ correct answers.
34
+ - role: user
35
+ content: Explain the difference between BFS and DFS to a new CS student.
36
+ model-index:
37
+ - name: Hermes-4.3-ByteDance-Seed-36B
38
+ results: []
39
+ ---
40
+ # This is a decensored version of [NousResearch/Hermes-4.3-36B](https://huggingface.co/NousResearch/Hermes-4.3-36B), made using [Heretic](https://github.com/p-e-w/heretic) v1.1.0
41
+
42
+ ## Abliteration parameters
43
+
44
+ | Parameter | Value |
45
+ | :-------- | :---: |
46
+ | **direction_index** | 49.93 |
47
+ | **attn.o_proj.max_weight** | 1.26 |
48
+ | **attn.o_proj.max_weight_position** | 53.05 |
49
+ | **attn.o_proj.min_weight** | 1.01 |
50
+ | **attn.o_proj.min_weight_distance** | 26.38 |
51
+ | **mlp.down_proj.max_weight** | 1.45 |
52
+ | **mlp.down_proj.max_weight_position** | 38.47 |
53
+ | **mlp.down_proj.min_weight** | 0.44 |
54
+ | **mlp.down_proj.min_weight_distance** | 10.52 |
55
+
56
+ ## Performance
57
+
58
+ | Metric | This model | Original model ([NousResearch/Hermes-4.3-36B](https://huggingface.co/NousResearch/Hermes-4.3-36B)) |
59
+ | :----- | :--------: | :---------------------------: |
60
+ | **KL divergence** | 0.0157 | 0 *(by definition)* |
61
+ | **Refusals** | 6/100 | 81/100 |
62
+
63
+ -----
64
+
65
+
66
+ # Hermes 4.3 - Seed 36B
67
+
68
+ ![4.3 small](https://cdn-uploads.huggingface.co/production/uploads/6317aade83d8d2fd903192d9/RoJnKcyjYfd5zj3PP3eRq.png)
69
+
70
+ ## Model Description
71
+
72
+ Hermes 4.3 36B is a frontier, hybrid-mode **reasoning** model based on ByteDance Seed 36B base, made by Nous Research that is aligned to **you**.
73
+
74
+ This is our first Hermes model trained in a decentralized manner over the internet using [Psyche](https://psyche.network), read the blog post: https://nousresearch.com/introducing-hermes-4-3/
75
+
76
+ Read the Hermes 4 technical report here: <a href="https://arxiv.org/abs/2508.18255">Hermes 4 Technical Report</a>
77
+
78
+ Chat with Hermes in Nous Chat: https://chat.nousresearch.com
79
+
80
+ Training highlights include a newly synthesized post-training corpus emphasizing verified reasoning traces, massive improvements in math, code, STEM, logic, creativity, and format-faithful outputs, while preserving general assistant quality and broadly neutral alignment.
81
+
82
+ ## What’s new vs Hermes 3
83
+
84
+ - **Post-training corpus**: Massively increased dataset size from 1M samples and 1.2B tokens to **~5M samples / ~60B tokens** blended across reasoning and non-reasoning data.
85
+ - **Hybrid reasoning mode** with explicit `<think>…</think>` segments when the model decides to deliberate, and options to make your responses faster when you want.
86
+ - **Reasoning** that is top quality, expressive, improves math, code, STEM, logic, and even creative writing and subjective responses.
87
+ - **Schema adherence & structured outputs**: trained to produce valid JSON for given schemas and to repair malformed objects.
88
+ - **Much easier to steer and align**: extreme improvements on steerability, especially on reduced refusal rates.
89
+
90
+ ## Our Mission: Frontier Capabilities Aligned to You
91
+
92
+ In pursuit of the mission of producing models that are open, steerable and capable of producing the full range of human expression, while being able to be aligned to your values, we created a new benchmark, RefusalBench, that tests the models willingness to be helpful in a variety of scenarios commonly disallowed by closed and open models.
93
+
94
+ **Hermes 4.3 36B is now SOTA across non-abliterated models on the RefusalBench Leaderboard, surpassing our previous best of 59.5% on Hermes 4 70B**
95
+ ### % of Questions Answered RefusalBench
96
+ *(Average of 5 trials)*
97
+ | Model | % of Questions Answered |
98
+ | :--- | :--- |
99
+ | **Hermes 4.3 36B Non-Reasoning** | 74.60% |
100
+ | **Hermes 4.3 36B Reasoning** | 72.29% |
101
+ | Hermes 4 70B Reasoning | 59.50% |
102
+ | Hermes 4 405B Reasoning | 57.10% |
103
+ | grok4 | 51.30% |
104
+ | Hermes 4 70B | 49.07% |
105
+ | Hermes 4 405B | 43.20% |
106
+ | Qwen2.5 7B | 36.10% |
107
+ | Qwen3 235B Reasoning | 34.30% |
108
+ | DeepSeek V3 | 28.10% |
109
+ | Gemini 2.5 Pro | 24.23% |
110
+ | Llama 405B | 21.70% |
111
+ | Gemini 2.5 Flash | 19.13% |
112
+ | GPT4o | 17.67% |
113
+ | Sonnet 4 | 17.00% |
114
+ | GPT4-mini | 16.76% |
115
+ | R1 | 16.70% |
116
+ | cogito-v2-405B Reasoning| 15.40% |
117
+ | Opus 4.1 | 15.38% |
118
+ | Qwen3 235B | 15.30% |
119
+ | cogito-v2-405B | 14.94% |
120
+ | cogito-v2-405B | 12.10% |
121
+ | GPT 5 | 11.34% |
122
+ | gpt-oss 120B | 5.60% |
123
+ | gpt-oss 20B | 4.79% |
124
+
125
+ Hermes 4 achieves SOTA on RefusalBench across all popular closed and open models in being helpful and conforming to your values, without censorship.
126
+
127
+ ## Benchmarks (Hermes 4.3 36B)
128
+
129
+ | | Hermes 4.3 36B Psyche | Hermes 4.3 36B Centralized | Hermes 4 70B Centralized |
130
+ | :--- | :--- | :--- | :--- |
131
+ | AIME 24 | 71.9 | 70.6 | 73.5 |
132
+ | AIME 25 | 69.3 | 66.8 | 67.4 |
133
+ | BBH | 86.4 | 84.7 | 87.8 |
134
+ | DROP | 83.5 | 81.6 | 85.0 |
135
+ | GPQA Diamond | 65.5 | 64.8 | 66.1 |
136
+ | IFEval | 77.9 | 73.9 | 78.7 |
137
+ | MATH-500 | 93.8 | 92.3 | 95.5 |
138
+ | MMLU | 87.7 | 86.5 | 88.4 |
139
+ | MMLU-Pro | 80.7 | 79.7 | 80.7 |
140
+ | MuSR | 69.7 | 64.7 | 70.4 |
141
+ | OBQA | 96.6 | 91.8 | 94.8 |
142
+ | SimpleQA | 6.0 | 5.6 | 17.9 |
143
+
144
+ ## Prompt Format
145
+
146
+ Hermes 4 uses Llama-3-Chat format with role headers and special tags.
147
+
148
+ **Basic chat:**
149
+ ```
150
+ <|start_header_id|>system<|end_header_id|>
151
+
152
+ You are Hermes 4. Be concise and helpful.<|eot_id|>
153
+ <|start_header_id|>user<|end_header_id|>
154
+
155
+ Explain the photoelectric effect simply.<|eot_id|>
156
+ <|start_header_id|>assistant<|end_header_id|>
157
+ ```
158
+
159
+ ### Reasoning mode
160
+
161
+ Reasoning mode can be activated with the chat template via the flag `thinking=True` or by using the following system prompt:
162
+
163
+ ```
164
+ You are a deep thinking AI, you may use extremely long chains of thought to deeply consider the problem and deliberate with yourself via systematic reasoning processes to help come to a correct solution prior to answering. You should enclose your thoughts and internal monologue inside <think> </think> tags, and then provide your solution or response to the problem.
165
+ ```
166
+
167
+ Note that you can add any additional system instructions before or after this system message, and it will adjust the models policies, style, and effort of thinking, as well as its post-thinking style, format, identity, and more. You may also interleave the tool definition system message with the reasoning one.
168
+
169
+ When the model chooses to deliberate, it emits:
170
+
171
+ ```
172
+ <|start_header_id|>assistant<|end_header_id|>
173
+ <think>
174
+ …model’s internal reasoning may appear here…
175
+ </think>
176
+ Final response starts here…<|eot_id|>
177
+ ```
178
+
179
+ Additionally, we provide a flag to keep the content inbetween the `<think> ... </think>` that you can play with by setting `keep_cots=True`
180
+
181
+
182
+ ## Function Calling & Tool Use
183
+
184
+ Hermes 4 supports function/tool calls *within* a single assistant turn, produced after it's reasoning:
185
+
186
+ **System message (example):**
187
+
188
+ ```
189
+ <|start_header_id|>system<|end_header_id|>
190
+ You are a function-calling AI. Tools are provided inside <tools>…</tools>.
191
+ When appropriate, call a tool by emitting a <tool_call>{...}</tool_call> object.
192
+ After a tool responds (as <tool_response>), continue reasoning inside <think> and produce the final answer.
193
+ <tools>
194
+ {"type":"function","function":{"name":"get_weather","description":"Get weather by city","parameters":{"type":"object","properties":{"city":{"type":"string"}},"required":["city"]}}}
195
+ </tools><|eot_id|>
196
+ ```
197
+
198
+ Note that you may also simply place tool definitions into the "tools:" field of your messages, and the chat template will parse and create the system prompt for you. This also works with reasoning mode for improved accuracy of tool use.
199
+
200
+ The model will then generate tool calls within `<tool_call> {tool_call} </tool_call>` tags, for easy parsing. The tool_call tags are also added tokens, so it makes it easy to parse while streaming! There are also automatic tool parsers built-in to VLLM and SGLang for Hermes, just set the tool parser in VLLM to `hermes` and in SGLang to `qwen25`.
201
+
202
+ ## Inference Notes
203
+
204
+ - **Sampling defaults that work well:** `temperature=0.6, top_p=0.95, top_k=20`.
205
+ - **Template:** Use the Llama chat format for Hermes 4.3 36B, 70B, and 405B as shown above, or set `add_generation_prompt=True` when using `tokenizer.apply_chat_template(...)`.
206
+
207
+ ### Transformers example
208
+
209
+ ```python
210
+ from transformers import AutoTokenizer, AutoModelForCausalLM
211
+ import torch
212
+
213
+ model_id = "NousResearch/Hermes-4.3-36B"
214
+
215
+ tokenizer = AutoTokenizer.from_pretrained(model_id, trust_remote_code=True)
216
+ model = AutoModelForCausalLM.from_pretrained(
217
+ model_id,
218
+ torch_dtype=torch.float16,
219
+ device_map="auto"
220
+ )
221
+
222
+ messages = [
223
+ {"role":"system","content":"You are Hermes 4. Be concise."},
224
+ {"role":"user","content":"Summarize CRISPR in 3 sentences."}
225
+ ]
226
+
227
+ inputs = tokenizer.apply_chat_template(
228
+ messages, add_generation_prompt=True, return_tensors="pt"
229
+ ).to(model.device)
230
+
231
+ outputs = model.generate(
232
+ **inputs, max_new_tokens=400, temperature=0.6, top_p=0.95, top_k=20, do_sample=True
233
+ )
234
+ print(tokenizer.decode(outputs[0], skip_special_tokens=True))
235
+ ```
236
+
237
+ For production serving on multi-GPU nodes, consider tensor parallel inference engines (e.g., SGLang/vLLM backends) with prefix caching.
238
+
239
+ ## Inference Providers:
240
+
241
+ ### Nous Portal:
242
+
243
+ <a href="https://portal.nousresearch.com"><img width=256 alt="chutes logo" src="https://cdn-uploads.huggingface.co/production/uploads/6317aade83d8d2fd903192d9/6YytY7N0mjCnBQvWo3qtv.png"></a>
244
+
245
+ ### Chutes:
246
+
247
+ <a href="https://chutes.ai/app"><img width=256 alt="chutes logo" src="https://cdn-uploads.huggingface.co/production/uploads/6317aade83d8d2fd903192d9/l14AWPv6cSvaprpwK_IWY.png"></a>
248
+
249
+ # Quantized / Smaller Variants
250
+
251
+ Hermes 4 is available as BF16 original weights as well as BF16 as well as GGUF variants.
252
+
253
+ GGUF Verions (4, 5, 6, and 8bit): https://huggingface.co/NousResearch/Hermes-4.3-36B-GGUF
254
+
255
+ See the Hermes 4 collection to explore them all:
256
+ https://huggingface.co/collections/NousResearch/hermes-4-collection-68a731bfd452e20816725728
257
+
258
+ # How to cite
259
+
260
+ ```bibtex
261
+ @misc{teknium2025hermes4technicalreport,
262
+ title={Hermes 4 Technical Report},
263
+ author={Ryan Teknium and Roger Jin and Jai Suphavadeeprasit and Dakota Mahan and Jeffrey Quesnelle and Joe Li and Chen Guang and Shannon Sands and Karan Malhotra},
264
+ year={2025},
265
+ eprint={2508.18255},
266
+ archivePrefix={arXiv},
267
+ primaryClass={cs.AI},
268
+ url={https://arxiv.org/abs/2508.18255},
269
+ }
270
+ ```