Mungert commited on
Commit
db4437b
·
verified ·
1 Parent(s): 5475555

Upload README.md with huggingface_hub

Browse files
Files changed (1) hide show
  1. README.md +312 -0
README.md ADDED
@@ -0,0 +1,312 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: apache-2.0
3
+ language:
4
+ - en
5
+ - es
6
+ - fr
7
+ - de
8
+ - it
9
+ - pt
10
+ - ru
11
+ - ar
12
+ - hi
13
+ - ko
14
+ - zh
15
+ library_name: transformers
16
+ base_model:
17
+ - arcee-ai/Trinity-Mini-Base
18
+ ---
19
+
20
+ # <span style="color: #7FFF7F;">Trinity-Mini GGUF Models</span>
21
+
22
+
23
+ ## <span style="color: #7F7FFF;">Model Generation Details</span>
24
+
25
+ This model was generated using [llama.cpp](https://github.com/ggerganov/llama.cpp) at commit [`98bd9ab1e`](https://github.com/ggerganov/llama.cpp/commit/98bd9ab1e4fdef1497da628574bb90d0890539e7).
26
+
27
+
28
+
29
+
30
+
31
+ ---
32
+
33
+ ## <span style="color: #7FFF7F;">Quantization Beyond the IMatrix</span>
34
+
35
+ I've been experimenting with a new quantization approach that selectively elevates the precision of key layers beyond what the default IMatrix configuration provides.
36
+
37
+ In my testing, standard IMatrix quantization underperforms at lower bit depths, especially with Mixture of Experts (MoE) models. To address this, I'm using the `--tensor-type` option in `llama.cpp` to manually "bump" important layers to higher precision. You can see the implementation here:
38
+ 👉 [Layer bumping with llama.cpp](https://github.com/Mungert69/GGUFModelBuilder/blob/main/model-converter/tensor_list_builder.py)
39
+
40
+ While this does increase model file size, it significantly improves precision for a given quantization level.
41
+
42
+ ### **I'd love your feedback—have you tried this? How does it perform for you?**
43
+
44
+
45
+
46
+
47
+ ---
48
+
49
+ <a href="https://readyforquantum.com/huggingface_gguf_selection_guide.html" style="color: #7FFF7F;">
50
+ Click here to get info on choosing the right GGUF model format
51
+ </a>
52
+
53
+ ---
54
+
55
+
56
+
57
+ <!--Begin Original Model Card-->
58
+
59
+ <div align="center">
60
+ <picture>
61
+ <img
62
+ src="https://cdn-uploads.huggingface.co/production/uploads/6435718aaaef013d1aec3b8b/i-v1KyAMOW_mgVGeic9WJ.png"
63
+ alt="Arcee Trinity Mini"
64
+ style="max-width: 100%; height: auto;"
65
+ >
66
+ </picture>
67
+ </div>
68
+
69
+ # Trinity Mini
70
+
71
+ Trinity Mini is an Arcee AI 26B MoE model with 3B active parameters. It is the medium-sized model in our new Trinity family, a series of open-weight models for enterprise and tinkerers alike.
72
+
73
+ This model is tuned for reasoning, but in testing, it uses a similar total token count to competitive instruction-tuned models.
74
+
75
+ ***
76
+
77
+ Trinity Mini is trained on 10T tokens gathered and curated through a key partnership with [Datology](https://www.datologyai.com/), building upon the excellent dataset we used on [AFM-4.5B](https://huggingface.co/arcee-ai/AFM-4.5B) with additional math and code.
78
+
79
+ Training was performed on a cluster of 512 H200 GPUs powered by [Prime Intellect](https://www.primeintellect.ai/) using HSDP parallelism.
80
+
81
+ More details, including key architecture decisions, can be found on our blog [here](https://www.arcee.ai/blog/the-trinity-manifesto)
82
+
83
+ Try it out now at [chat.arcee.ai](http://chat.arcee.ai/)
84
+
85
+ ***
86
+
87
+ ## Model Details
88
+
89
+ * **Model Architecture:** AfmoeForCausalLM
90
+ * **Parameters:** 26B, 3B active
91
+ * **Experts:** 128 total, 8 active, 1 shared
92
+ * **Context length:** 128k
93
+ * **Training Tokens:** 10T
94
+ * **License:** [Apache 2.0](https://huggingface.co/arcee-ai/Trinity-Mini#license)
95
+ * **Recommended settings:**
96
+ * temperature: 0.15
97
+ * top_k: 50
98
+ * top_p: 0.75
99
+ * min_p: 0.06
100
+
101
+ ***
102
+
103
+ ## Benchmarks
104
+
105
+ ![](https://cdn-uploads.huggingface.co/production/uploads/6435718aaaef013d1aec3b8b/UMV0OZh_H1JfvgzBTXh6u.png)
106
+
107
+ <div align="center">
108
+ <picture>
109
+ <img src="https://cdn-uploads.huggingface.co/production/uploads/6435718aaaef013d1aec3b8b/sSVjGNHfrJKmQ6w8I18ek.png" style="background-color:ghostwhite;padding:5px;" width="17%" alt="Powered by Datology">
110
+ </picture>
111
+ </div>
112
+
113
+ ### Running our model
114
+
115
+ - [Transformers](https://huggingface.co/arcee-ai/Trinity-Mini#transformers)
116
+ - [VLLM](https://huggingface.co/arcee-ai/Trinity-Mini#vllm)
117
+ - [llama.cpp](https://huggingface.co/arcee-ai/Trinity-Mini#llamacpp)
118
+ - [LM Studio](https://huggingface.co/arcee-ai/Trinity-Mini#lm-studio)
119
+ - [API](https://huggingface.co/arcee-ai/Trinity-Mini#api)
120
+
121
+ ## Transformers
122
+
123
+ Use the `main` transformers branch
124
+
125
+ ```
126
+ git clone https://github.com/huggingface/transformers.git
127
+ cd transformers
128
+
129
+ # pip
130
+ pip install '.[torch]'
131
+
132
+ # uv
133
+ uv pip install '.[torch]'
134
+ ```
135
+
136
+ ```python
137
+ from transformers import AutoTokenizer, AutoModelForCausalLM
138
+ import torch
139
+
140
+ model_id = "arcee-ai/Trinity-Mini"
141
+ tokenizer = AutoTokenizer.from_pretrained(model_id)
142
+ model = AutoModelForCausalLM.from_pretrained(
143
+ model_id,
144
+ torch_dtype=torch.bfloat16,
145
+ device_map="auto"
146
+ )
147
+
148
+ messages = [
149
+ {"role": "user", "content": "Who are you?"},
150
+ ]
151
+
152
+ input_ids = tokenizer.apply_chat_template(
153
+ messages,
154
+ add_generation_prompt=True,
155
+ return_tensors="pt"
156
+ ).to(model.device)
157
+
158
+ outputs = model.generate(
159
+ input_ids,
160
+ max_new_tokens=256,
161
+ do_sample=True,
162
+ temperature=0.5,
163
+ top_k=50,
164
+ top_p=0.95
165
+ )
166
+
167
+ response = tokenizer.decode(outputs[0], skip_special_tokens=True)
168
+ print(response)
169
+ ```
170
+
171
+ If using a released transformers, simply pass "trust_remote_code=True":
172
+
173
+ ```python
174
+ model_id = "arcee-ai/Trinity-Mini"
175
+ tokenizer = AutoTokenizer.from_pretrained(model_id)
176
+ model = AutoModelForCausalLM.from_pretrained(
177
+ model_id,
178
+ torch_dtype=torch.bfloat16,
179
+ device_map="auto",
180
+ trust_remote_code=True
181
+ )
182
+ ```
183
+
184
+ ## VLLM
185
+
186
+ Supported in VLLM release 0.11.1
187
+
188
+ ```
189
+ # pip
190
+ pip install "vllm>=0.11.1"
191
+ ```
192
+
193
+ Serving the model with suggested settings:
194
+
195
+ ```
196
+ vllm serve arcee-train/Trinity-Mini \
197
+ --dtype bfloat16 \
198
+ --enable-auto-tool-choice \
199
+ --reasoning-parser deepseek_r1 \
200
+ --tool-call-parser hermes
201
+ ```
202
+
203
+ ## llama.cpp
204
+
205
+ Supported in llama.cpp release b7061
206
+
207
+ Download the latest [llama.cpp release](https://github.com/ggml-org/llama.cpp/releases)
208
+
209
+ ```
210
+ llama-server -hf arcee-ai/Trinity-Mini-GGUF:q4_k_m \
211
+ --temp 0.15 \
212
+ --top-k 50 \
213
+ --top-p 0.75
214
+ --min-p 0.06
215
+ ```
216
+
217
+ ## LM Studio
218
+
219
+ Supported in latest LM Studio runtime
220
+
221
+ Update to latest available, then verify your runtime by:
222
+
223
+ 1. Click "Power User" at the bottom left
224
+ 2. Click the green "Developer" icon at the top left
225
+ 3. Select "LM Runtimes" at the top
226
+ 4. Refresh the list of runtimes and verify that the latest is installed
227
+
228
+ Then, go to Model Search and search for `arcee-ai/Trinity-Mini-GGUF`, download your prefered size, and load it up in the chat
229
+
230
+ ## API
231
+
232
+ Trinity Mini is available today on openrouter:
233
+
234
+ https://openrouter.ai/arcee-ai/trinity-mini
235
+
236
+ ```
237
+ curl -X POST "https://openrouter.ai/v1/chat/completions" \
238
+ -H "Authorization: Bearer $OPENROUTER_API_KEY" \
239
+ -H "Content-Type: application/json" \
240
+ -d '{
241
+ "model": "arcee-ai/trinity-mini",
242
+ "messages": [
243
+ {
244
+ "role": "user",
245
+ "content": "What are some fun things to do in New York?"
246
+ }
247
+ ]
248
+ }'
249
+ ```
250
+
251
+ ## License
252
+
253
+ Trinity-Mini is released under the Apache-2.0 license.
254
+
255
+ <!--End Original Model Card-->
256
+
257
+ ---
258
+
259
+ # <span id="testllm" style="color: #7F7FFF;">🚀 If you find these models useful</span>
260
+
261
+ Help me test my **AI-Powered Quantum Network Monitor Assistant** with **quantum-ready security checks**:
262
+
263
+ 👉 [Quantum Network Monitor](https://readyforquantum.com/?assistant=open&utm_source=huggingface&utm_medium=referral&utm_campaign=huggingface_repo_readme)
264
+
265
+
266
+ The full Open Source Code for the Quantum Network Monitor Service available at my github repos ( repos with NetworkMonitor in the name) : [Source Code Quantum Network Monitor](https://github.com/Mungert69). You will also find the code I use to quantize the models if you want to do it yourself [GGUFModelBuilder](https://github.com/Mungert69/GGUFModelBuilder)
267
+
268
+ 💬 **How to test**:
269
+ Choose an **AI assistant type**:
270
+ - `TurboLLM` (GPT-4.1-mini)
271
+ - `HugLLM` (Hugginface Open-source models)
272
+ - `TestLLM` (Experimental CPU-only)
273
+
274
+ ### **What I’m Testing**
275
+ I’m pushing the limits of **small open-source models for AI network monitoring**, specifically:
276
+ - **Function calling** against live network services
277
+ - **How small can a model go** while still handling:
278
+ - Automated **Nmap security scans**
279
+ - **Quantum-readiness checks**
280
+ - **Network Monitoring tasks**
281
+
282
+ 🟡 **TestLLM** – Current experimental model (llama.cpp on 2 CPU threads on huggingface docker space):
283
+ - ✅ **Zero-configuration setup**
284
+ - ⏳ 30s load time (slow inference but **no API costs**) . No token limited as the cost is low.
285
+ - 🔧 **Help wanted!** If you’re into **edge-device AI**, let’s collaborate!
286
+
287
+ ### **Other Assistants**
288
+ 🟢 **TurboLLM** – Uses **gpt-4.1-mini** :
289
+ - **It performs very well but unfortunatly OpenAI charges per token. For this reason tokens usage is limited.
290
+ - **Create custom cmd processors to run .net code on Quantum Network Monitor Agents**
291
+ - **Real-time network diagnostics and monitoring**
292
+ - **Security Audits**
293
+ - **Penetration testing** (Nmap/Metasploit)
294
+
295
+ 🔵 **HugLLM** – Latest Open-source models:
296
+ - 🌐 Runs on Hugging Face Inference API. Performs pretty well using the lastest models hosted on Novita.
297
+
298
+ ### 💡 **Example commands you could test**:
299
+ 1. `"Give me info on my websites SSL certificate"`
300
+ 2. `"Check if my server is using quantum safe encyption for communication"`
301
+ 3. `"Run a comprehensive security audit on my server"`
302
+ 4. '"Create a cmd processor to .. (what ever you want)" Note you need to install a [Quantum Network Monitor Agent](https://readyforquantum.com/Download/?utm_source=huggingface&utm_medium=referral&utm_campaign=huggingface_repo_readme) to run the .net code on. This is a very flexible and powerful feature. Use with caution!
303
+
304
+ ### Final Word
305
+
306
+ I fund the servers used to create these model files, run the Quantum Network Monitor service, and pay for inference from Novita and OpenAI—all out of my own pocket. All the code behind the model creation and the Quantum Network Monitor project is [open source](https://github.com/Mungert69). Feel free to use whatever you find helpful.
307
+
308
+ If you appreciate the work, please consider [buying me a coffee](https://www.buymeacoffee.com/mahadeva) ☕. Your support helps cover service costs and allows me to raise token limits for everyone.
309
+
310
+ I'm also open to job opportunities or sponsorship.
311
+
312
+ Thank you! 😊