DMP96 commited on
Commit
09eccd9
Β·
verified Β·
1 Parent(s): dad79e5

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +205 -0
README.md CHANGED
@@ -1,3 +1,208 @@
1
  ---
2
  license: apache-2.0
 
 
 
 
 
 
 
 
 
3
  ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  ---
2
  license: apache-2.0
3
+ base_model:
4
+ - swiss-ai/Apertus-v1.1-0.5B-Instruct
5
+ pipeline_tag: text-generation
6
+ tags:
7
+ - multilingual
8
+ - compliant
9
+ - swiss-ai
10
+ - apertus
11
+ - source:swiss-ai/Apertus-v1.1-0.5B-Instruct-MLX-INT4
12
  ---
13
+
14
+ # Apertus-v1.1-0.5B-Instruct (QAD INT4 -> GGUF Q4_1)
15
+
16
+ > **GGUF Release Notice**:
17
+ > This is a native GGUF `Q4_1` transcoding of the official [swiss-ai/Apertus-v1.1-0.5B-Instruct-MLX-INT4](https://huggingface.co/swiss-ai/Apertus-v1.1-0.5B-Instruct-MLX-INT4) checkpoint using [DMP96/apertus-mlx-to-gguf](https://github.com/DMP96/apertus-mlx-to-gguf).
18
+ >
19
+ > The original model card content follows below.
20
+
21
+ ---
22
+
23
+ # Apertus-v1.1-0.5B-Instruct-MLX-INT4
24
+
25
+ ![image/jpeg](https://cdn-uploads.huggingface.co/production/uploads/6639f08490b7db8dcbf1a2aa/YKux3SpTciL4O60L3Ol-6.jpeg)
26
+
27
+ ## Table of Contents
28
+
29
+ 1. [Model Summary](#model-summary)
30
+ 2. [How to use](#how-to-use)
31
+ 3. [Evaluation](#evaluation)
32
+ 4. [Training](#training)
33
+ 5. [Limitations](#limitations)
34
+ 6. [Legal Aspects](#legal-aspects)
35
+
36
+ ---
37
+
38
+ ## Model Summary
39
+
40
+ Apertus-v1.1 is a series of highly efficient, 0.5-4B billion parameter language models designed to extend the fully-open and compliant Apertus ecosystem to highly constrained hardware environments.
41
+
42
+ The models rely on a dense transformer architecture featuring grouped-query attention and xIELU activations. To achieve high performance with a minimized memory footprint, this model uses tied embeddings and a deeper, thinner architectural design.
43
+
44
+ Instead of standard pre-training, Apertus-v1.1 models were created using pre-training distillation (PD) from the [Apertus-8B-2509](https://huggingface.co/swiss-ai/Apertus-8B-2509) teacher model. They were trained on 1.7T tokens from Phase 5 of the original Apertus data pipelineβ€”the highest quality tier of filtered documents, code, and instruction samples without introducing any new data sources or licenses. Post-training included supervised fine-tuning (SFT) and alignment similar to that of the original Apertus.
45
+
46
+ ### Key features
47
+ - **Fully open model**: open weights + open data + full training details including all data and training recipes
48
+ - **Massively Multilingual**: 1811 natively supported languages
49
+ - **Compliant** Apertus is trained while respecting opt-out consent of data owners (even retrospectively), and avoiding memorization of training data
50
+ - **Cost-Effective Distillation**: Trained using a 90%/10% mix of KL-Divergence and label cross-entropy derived from the 8B teacher model, drastically reducing the required compute.
51
+ - **Hardware Optimized**: Specifically optimized for memory-limited scenarios like mobile and edge deployments, with quantized checkpoints available for Apple devices (MLX) in INT2, INT3, INT4, and INT6 formats.
52
+
53
+ ### Quantized Checkpoints
54
+
55
+ This model family includes base pre-trained models and instruction-tuned models.
56
+
57
+ For instruction-tuned models, we additionally provide high-quality quantization-aware distillation (QAD) checkpoints, obtained via the official [`qat-suite`](https://github.com/swiss-ai/qat-suite). We provide FP8 and NVFP4A16 checkpoints with vLLM inference in mind and INT3-6 checkpoints optimized for mobile usage on Apple devices.
58
+
59
+ The full list of released checkpoints is shown below:
60
+
61
+ | | BF16 | BF16 | FP8 | NVFP4A16 | INT3 | INT4 | INT6 |
62
+ |---|:---:|:---:|:---:|:---:|:---:|:---:|:---:|
63
+ | | Base | Instruct | Instruct | Instruct | Instruct | Instruct | Instruct |
64
+ | **0.5B** | [βœ…](https://huggingface.co/swiss-ai/Apertus-v1.1-0.5B) | [βœ…](https://huggingface.co/swiss-ai/Apertus-v1.1-0.5B-Instruct) | [βœ…](https://huggingface.co/swiss-ai/Apertus-v1.1-0.5B-Instruct-vLLM-FP8) | [βœ…](https://huggingface.co/swiss-ai/Apertus-v1.1-0.5B-Instruct-vLLM-NVFP4A16) | [βœ…](https://huggingface.co/swiss-ai/Apertus-v1.1-0.5B-Instruct-MLX-INT3) | [βœ…](https://huggingface.co/swiss-ai/Apertus-v1.1-0.5B-Instruct-MLX-INT4) | [βœ…](https://huggingface.co/swiss-ai/Apertus-v1.1-0.5B-Instruct-MLX-INT6) |
65
+ | **1.5B** | [βœ…](https://huggingface.co/swiss-ai/Apertus-v1.1-1.5B) | [βœ…](https://huggingface.co/swiss-ai/Apertus-v1.1-1.5B-Instruct) | [βœ…](https://huggingface.co/swiss-ai/Apertus-v1.1-1.5B-Instruct-vLLM-FP8) | [βœ…](https://huggingface.co/swiss-ai/Apertus-v1.1-1.5B-Instruct-vLLM-NVFP4A16) | [βœ…](https://huggingface.co/swiss-ai/Apertus-v1.1-1.5B-Instruct-MLX-INT3) | [βœ…](https://huggingface.co/swiss-ai/Apertus-v1.1-1.5B-Instruct-MLX-INT4) | [βœ…](https://huggingface.co/swiss-ai/Apertus-v1.1-1.5B-Instruct-MLX-INT6) |
66
+ | **4B** | [βœ…](https://huggingface.co/swiss-ai/Apertus-v1.1-4B) | [βœ…](https://huggingface.co/swiss-ai/Apertus-v1.1-4B-Instruct) | [βœ…](https://huggingface.co/swiss-ai/Apertus-v1.1-4B-Instruct-vLLM-FP8) | [βœ…](https://huggingface.co/swiss-ai/Apertus-v1.1-4B-Instruct-vLLM-NVFP4A16) | [βœ…](https://huggingface.co/swiss-ai/Apertus-v1.1-4B-Instruct-MLX-INT3) | [βœ…](https://huggingface.co/swiss-ai/Apertus-v1.1-4B-Instruct-MLX-INT4) | [βœ…](https://huggingface.co/swiss-ai/Apertus-v1.1-4B-Instruct-MLX-INT6) |
67
+ | **8B** | [βœ…](https://huggingface.co/swiss-ai/Apertus-8B-2509) | [βœ…](https://huggingface.co/swiss-ai/Apertus-8B-Instruct-2509) | [βœ…](https://huggingface.co/swiss-ai/Apertus-8B-Instruct-2509-vLLM-FP8) | [βœ…](https://huggingface.co/swiss-ai/Apertus-8B-Instruct-2509-vLLM-NVFP4A16) | ❌ | [βœ…](https://huggingface.co/swiss-ai/Apertus-8B-Instruct-2509-MLX-INT4) | ❌ |
68
+
69
+
70
+ For more details refer to the original Apertus [technical report](https://arxiv.org/abs/2509.14233) and the new Apertus [distillation technical report](https://arxiv.org/abs/2605.29128).
71
+
72
+ ---
73
+
74
+ ## How to use
75
+
76
+ The modeling code for this Apertus MLX quantization is available via `mlx-lm`.
77
+ ```bash
78
+ pip install mlx-lm
79
+ ```
80
+
81
+ ```python
82
+ from mlx_lm import load, generate
83
+
84
+ model_name = "swiss-ai/Apertus-v1.1-0.5B-Instruct-MLX-INT4"
85
+
86
+ # load the model and tokenizer
87
+ model, tokenizer = load(model_name)
88
+
89
+ # prepare the model input
90
+ prompt = "Give me a brief explanation of gravity in simple terms."
91
+ messages_think = [
92
+ {"role": "user", "content": prompt}
93
+ ]
94
+
95
+ text = tokenizer.apply_chat_template(
96
+ messages_think,
97
+ tokenize=False,
98
+ add_generation_prompt=True,
99
+ )
100
+
101
+ # Generate the output
102
+ response = generate(model, tokenizer, prompt=text, verbose=True, max_tokens=32768)
103
+ ```
104
+
105
+ >[!TIP]
106
+ > We recommend setting `temperature=0.8` and `top_p=0.9` in the sampling parameters.
107
+
108
+ ---
109
+
110
+ ## Evaluation
111
+
112
+ **Post-Training Multilingual Evaluation:** Performance of the Apertus-v1.1 models across multilingual benchmarks compared to models in similar size classes.
113
+
114
+ | *Model* | *Average* | MMLU | TruthfulQA | Arc | IF | LogiQA |
115
+ | :--- | :---: | :---: | :---: | :---: | :---: | :---: |
116
+ | **Apertus-v1.1-0.5B-Instruct** | 0.318 | 0.258 | 0.461 | 0.225 | 0.328 | 0.279 |
117
+ | **Apertus-v1.1-1.5B-Instruct** | 0.382 | 0.377 | 0.451 | 0.266 | 0.434 | 0.276 |
118
+ | **Apertus-v1.1-4B-Instruct** | 0.473 | 0.504 | 0.506 | 0.332 | 0.550 | 0.296 |
119
+ | **Apertus-8B-Instruct-2509** | 0.534 | 0.553 | 0.524 | 0.368 | 0.689 | 0.290 |
120
+ | EuroLLM-1.7B-Instruct | 0.291 | 0.260 | 0.433 | 0.250 | 0.222 | 0.269 |
121
+ | EuroLLM-9B-Instruct | 0.480 | 0.520 | 0.465 | 0.322 | 0.613 | 0.345 |
122
+ | gemma-3-270m-it | 0.289 | 0.242 | 0.465 | 0.215 | 0.236 | 0.205 |
123
+ | gemma-3-1b-it | 0.406 | 0.409 | 0.457 | 0.250 | 0.509 | 0.379 |
124
+ | gemma-3-4b-it | 0.497 | 0.547 | 0.492 | 0.316 | 0.635 | 0.411 |
125
+ | SmolLM2-1.7B-Instruct | 0.348 | 0.365 | 0.452 | 0.213 | 0.364 | 0.246 |
126
+ | SmolLM3-3B | 0.479 | 0.507 | 0.500 | 0.270 | 0.637 | 0.365 |
127
+ | Qwen3-0.6B | 0.401 | 0.377 | 0.464 | 0.222 | 0.541 | 0.353 |
128
+ | Qwen3-1.7B | 0.457 | 0.477 | 0.490 | 0.251 | 0.611 | 0.414 |
129
+ | Qwen3-4B | 0.521 | 0.581 | 0.497 | 0.274 | 0.733 | 0.500 |
130
+
131
+ While Apertus-v1.1 demonstrates competitive baseline multilingual chatting performance, it may lack in specific capabilities such as advanced math and complex instruction following.
132
+
133
+ ---
134
+
135
+ ## Training
136
+
137
+ ### Model Architecture
138
+
139
+ **Apertus-v1.1-0.5B**
140
+
141
+ * **Architecture Type:** Dense transformer decoder with grouped-query attention.
142
+ * **Layers:** 20.
143
+ * **Model Dimension:** 1024.
144
+ * **MLP Dimension:** 6144.
145
+ * **Heads (Q/KV):** 16/4.
146
+ * **Tied Embeddings:** Yes.
147
+ * **Activation Function:** xIELU.
148
+ * **Compute / Storage Size:** 0.4B/0.4B parameters.
149
+
150
+ ### Pre-Training Details
151
+
152
+ * **Training Tokens:** 1.7T.
153
+ * **Optimizer:** AdEMAMix with WSD schedule and weight decay.
154
+ * **Sequence Handling:** Documents packed into chunks of 4096 tokens with cross-document attention masked.
155
+ * **Total Compute:** 0.2E22 FLOPs.
156
+
157
+ ### Software & hardware
158
+
159
+ - **GPUs:** 64 GH200
160
+ - **Pre-Training Distillation Framework:** [Megatron-LM](https://github.com/swiss-ai/Megatron-LM-Distill)
161
+ - **Post-Training Framework:** [posttraining](https://github.com/swiss-ai/posttraining)
162
+ - **Quantization Suite:** [qat-suite](https://github.com/swiss-ai/qat-suite)
163
+
164
+ ### Open resources
165
+ All elements used in the training process are made openly available
166
+ - **Training data reconstruction scripts:** [github.com/swiss-ai/pretrain-data](https://github.com/swiss-ai/pretrain-data)
167
+
168
+ ---
169
+
170
+ ## Limitations
171
+
172
+ Apertus can produce text on a variety of topics, but the generated content may not always be factually accurate, logically consistent, or free from biases present in the training data. These models should be used as assistive tools rather than definitive sources of information. Users should always verify important information and critically evaluate any generated content.
173
+
174
+ ---
175
+
176
+ ## Legal Aspects
177
+
178
+ The Apertus-v1.1 fully reuses the data of the original Apertus release, meaning the original data summary is representative of this release as well.
179
+
180
+ #### EU AI Act Transparency Documentation and Code of Practice
181
+ - [Apertus_EU_Public_Summary.pdf](https://huggingface.co/swiss-ai/Apertus-70B-2509/blob/main/Apertus_EU_Public_Summary.pdf)
182
+ - [Apertus_EU_Code_of_Practice.pdf](https://huggingface.co/swiss-ai/Apertus-70B-2509/blob/main/Apertus_EU_Code_of_Practice.pdf)
183
+
184
+ #### Data Protection and Copyright Requests
185
+ For removal requests of personally identifiable information (PII) or of copyrighted content, please contact the respective dataset owners or us directly
186
+ - llm-privacy-requests@swiss-ai.org
187
+ - llm-copyright-requests@swiss-ai.org
188
+
189
+ #### Output Filter for PII
190
+ - Currently no output filter is provided.
191
+ - Please check this site regularly for an output filter that can be used on top of the Apertus LLM. The filter reflects data protection deletion requests which have been addressed to us as the developer of the Apertus LLM. It allows you to remove Personal Data contained in the model output. We strongly advise downloading and applying this output filter from this site every six months.
192
+
193
+ ## Contact
194
+ To contact us, please send an email to
195
+ llm-requests@swiss-ai.org
196
+
197
+ ## Citation
198
+ ```bash
199
+ @misc{panferov2026apertusllmfamilyexpansion,
200
+ title={Apertus LLM Family Expansion via Distillation and Quantization},
201
+ author={Andrei Panferov and Davit Melikidze and Martin Jaggi and Dan Alistarh},
202
+ year={2026},
203
+ eprint={2605.29128},
204
+ archivePrefix={arXiv},
205
+ primaryClass={cs.LG},
206
+ url={[https://arxiv.org/abs/2605.29128](https://arxiv.org/abs/2605.29128)},
207
+ }
208
+ ```