Text Generation
Transformers
Safetensors
arcee
conversational
CollectionStudio bartowski commited on
Commit
c9d781a
·
0 Parent(s):

Duplicate from arcee-ai/AFM-4.5B

Browse files

Co-authored-by: Bartowski <bartowski@users.noreply.huggingface.co>

.gitattributes ADDED
@@ -0,0 +1,36 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ *.7z filter=lfs diff=lfs merge=lfs -text
2
+ *.arrow filter=lfs diff=lfs merge=lfs -text
3
+ *.bin filter=lfs diff=lfs merge=lfs -text
4
+ *.bz2 filter=lfs diff=lfs merge=lfs -text
5
+ *.ckpt filter=lfs diff=lfs merge=lfs -text
6
+ *.ftz filter=lfs diff=lfs merge=lfs -text
7
+ *.gz filter=lfs diff=lfs merge=lfs -text
8
+ *.h5 filter=lfs diff=lfs merge=lfs -text
9
+ *.joblib filter=lfs diff=lfs merge=lfs -text
10
+ *.lfs.* filter=lfs diff=lfs merge=lfs -text
11
+ *.mlmodel filter=lfs diff=lfs merge=lfs -text
12
+ *.model filter=lfs diff=lfs merge=lfs -text
13
+ *.msgpack filter=lfs diff=lfs merge=lfs -text
14
+ *.npy filter=lfs diff=lfs merge=lfs -text
15
+ *.npz filter=lfs diff=lfs merge=lfs -text
16
+ *.onnx filter=lfs diff=lfs merge=lfs -text
17
+ *.ot filter=lfs diff=lfs merge=lfs -text
18
+ *.parquet filter=lfs diff=lfs merge=lfs -text
19
+ *.pb filter=lfs diff=lfs merge=lfs -text
20
+ *.pickle filter=lfs diff=lfs merge=lfs -text
21
+ *.pkl filter=lfs diff=lfs merge=lfs -text
22
+ *.pt filter=lfs diff=lfs merge=lfs -text
23
+ *.pth filter=lfs diff=lfs merge=lfs -text
24
+ *.rar filter=lfs diff=lfs merge=lfs -text
25
+ *.safetensors filter=lfs diff=lfs merge=lfs -text
26
+ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
27
+ *.tar.* filter=lfs diff=lfs merge=lfs -text
28
+ *.tar filter=lfs diff=lfs merge=lfs -text
29
+ *.tflite filter=lfs diff=lfs merge=lfs -text
30
+ *.tgz filter=lfs diff=lfs merge=lfs -text
31
+ *.wasm filter=lfs diff=lfs merge=lfs -text
32
+ *.xz filter=lfs diff=lfs merge=lfs -text
33
+ *.zip filter=lfs diff=lfs merge=lfs -text
34
+ *.zst filter=lfs diff=lfs merge=lfs -text
35
+ *tfevents* filter=lfs diff=lfs merge=lfs -text
36
+ tokenizer.json filter=lfs diff=lfs merge=lfs -text
README.md ADDED
@@ -0,0 +1,172 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
+ extra_gated_prompt: Company name is optional, please put NA if you would prefer not to share it.
17
+ base_model:
18
+ - arcee-ai/AFM-4.5B-Base
19
+ ---
20
+
21
+ <div align="center">
22
+ <picture>
23
+ <img src="https://cdn-uploads.huggingface.co/production/uploads/6435718aaaef013d1aec3b8b/Lj9YVLIKKdImV_jID0A1g.png" width="25%" alt="Arcee AFM 4.5B">
24
+ </picture>
25
+ </div>
26
+
27
+
28
+ # AFM-4.5B
29
+
30
+ AFM-4.5B is a 4.5 billion parameter instruction-tuned model developed by Arcee.ai, designed for enterprise-grade performance across diverse deployment environments from cloud to edge. The base model was trained on a dataset of 8 trillion tokens, comprising 6.5 trillion tokens of general pretraining data followed by 1.5 trillion tokens of midtraining data with enhanced focus on mathematical reasoning and code generation. Following pretraining, the model underwent supervised fine-tuning on high-quality instruction datasets. The instruction-tuned model was further refined through reinforcement learning on verifiable rewards as well as for human preference. We use a modified version of [TorchTitan](https://arxiv.org/abs/2410.06511) for pretraining, [Axolotl](https://axolotl.ai) for supervised fine-tuning, and a modified version of [Verifiers](https://github.com/willccbb/verifiers) for reinforcement learning.
31
+
32
+ The development of AFM-4.5B prioritized data quality as a fundamental requirement for achieving robust model performance. We collaborated with DatologyAI, a company specializing in large-scale data curation. DatologyAI's curation pipeline integrates a suite of proprietary algorithms—model-based quality filtering, embedding-based curation, target distribution-matching, source mixing, and synthetic data. Their expertise enabled the creation of a curated dataset tailored to support strong real-world performance.
33
+
34
+ The model architecture follows a standard transformer decoder-only design based on Vaswani et al., incorporating several key modifications for enhanced performance and efficiency. Notable architectural features include grouped query attention for improved inference efficiency and ReLU^2 activation functions instead of SwiGLU to enable sparsification while maintaining or exceeding performance benchmarks.
35
+
36
+ The model available in this repo is the instruct model following supervised fine-tuning and reinforcement learning.
37
+
38
+ View our documentation here for more details: https://docs.arcee.ai/arcee-foundation-models/introduction-to-arcee-foundation-models
39
+
40
+ ***
41
+
42
+ <div align="center">
43
+ <picture>
44
+ <img src="https://cdn-uploads.huggingface.co/production/uploads/6435718aaaef013d1aec3b8b/sSVjGNHfrJKmQ6w8I18ek.png" style="background-color:ghostwhite;padding:5px;" width="17%" alt="Powered by Datology">
45
+ </picture>
46
+ </div>
47
+
48
+ ## Model Details
49
+
50
+ * **Model Architecture:** ArceeForCausalLM
51
+ * **Parameters:** 4.5B
52
+ * **Training Tokens:** 8T
53
+ * **License:** [Apache 2.0](https://huggingface.co/arcee-ai/AFM-4.5B#license)
54
+ * **Recommended settings:**
55
+ * temperature: 0.5
56
+ * top_k: 50
57
+ * top_p: 0.95
58
+ * repeat_penalty: 1.1
59
+
60
+ ***
61
+
62
+ ## Benchmarks
63
+
64
+ ![image/png](https://cdn-uploads.huggingface.co/production/uploads/6435718aaaef013d1aec3b8b/BdsWFc4pxiHlK2E0j9AfG.png)
65
+ *Qwen3 and SmolLM's reasoning approach causes their scores to vary wildly from suite to suite - but these are all scores on our internal harness with the same hyperparameters. Be sure to reference their reported scores. SmolLM just released its [bench](https://github.com/huggingface/smollm).
66
+
67
+ ## How to use with `transformers`
68
+
69
+ You can use the model directly with the `transformers` library.
70
+
71
+ We recommend a lower temperature, around 0.5, for optimal performance.
72
+
73
+ ```python
74
+ from transformers import AutoTokenizer, AutoModelForCausalLM
75
+ import torch
76
+
77
+ model_id = "arcee-ai/AFM-4.5B"
78
+ tokenizer = AutoTokenizer.from_pretrained(model_id)
79
+ model = AutoModelForCausalLM.from_pretrained(
80
+ model_id,
81
+ torch_dtype=torch.bfloat16,
82
+ device_map="auto"
83
+ )
84
+
85
+ messages = [
86
+ {"role": "user", "content": "Who are you?"},
87
+ ]
88
+
89
+ input_ids = tokenizer.apply_chat_template(
90
+ messages,
91
+ add_generation_prompt=True,
92
+ return_tensors="pt"
93
+ ).to(model.device)
94
+
95
+ outputs = model.generate(
96
+ input_ids,
97
+ max_new_tokens=256,
98
+ do_sample=True,
99
+ temperature=0.5,
100
+ top_k=50,
101
+ top_p=0.95
102
+ )
103
+
104
+ response = tokenizer.decode(outputs[0], skip_special_tokens=True)
105
+ print(response)
106
+ ```
107
+
108
+ ## How to use with `vllm`
109
+
110
+ Ensure you are on version `0.10.1` or newer
111
+
112
+ ```
113
+ pip install vllm>=0.10.1
114
+ ```
115
+
116
+ You can then serve the model natively
117
+
118
+ ```
119
+ vllm serve arcee-ai/AFM-4.5B
120
+ ```
121
+
122
+ ## How to use with Together API
123
+
124
+ You can access this model directly via the [Together Playground](https://api.together.xyz/playground/arcee-ai/AFM-4.5B).
125
+
126
+ ### Python (Official Together SDK)
127
+
128
+ ```python
129
+ from together import Together
130
+
131
+ client = Together()
132
+ response = client.chat.completions.create(
133
+ model="arcee-ai/AFM-4.5B",
134
+ messages=[
135
+ {
136
+ "role": "user",
137
+ "content": "What are some fun things to do in New York?"
138
+ }
139
+ ]
140
+ )
141
+ print(response.choices[0].message.content)
142
+ ```
143
+
144
+ ### cURL
145
+
146
+ ```bash
147
+ curl -X POST "https://api.together.xyz/v1/chat/completions" \
148
+ -H "Authorization: Bearer $TOGETHER_API_KEY" \
149
+ -H "Content-Type: application/json" \
150
+ -d '{
151
+ "model": "arcee-ai/AFM-4.5B",
152
+ "messages": [
153
+ {
154
+ "role": "user",
155
+ "content": "What are some fun things to do in New York?"
156
+ }
157
+ ]
158
+ }'
159
+ ```
160
+
161
+
162
+ ## Quantization support
163
+
164
+ Support for llama.cpp and Intel OpenVINO is available:
165
+
166
+ https://huggingface.co/arcee-ai/AFM-4.5B-GGUF
167
+
168
+ https://huggingface.co/arcee-ai/AFM-4.5B-ov
169
+
170
+ ## License
171
+
172
+ AFM-4.5B is released under the Apache-2.0 license.
config.json ADDED
@@ -0,0 +1,36 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "architectures": [
3
+ "ArceeForCausalLM"
4
+ ],
5
+ "attention_bias": false,
6
+ "attention_dropout": 0.0,
7
+ "bos_token_id": 128000,
8
+ "eos_token_id": 128003,
9
+ "head_dim": 128,
10
+ "hidden_act": "relu2",
11
+ "hidden_size": 2560,
12
+ "initializer_range": 0.02,
13
+ "intermediate_size": 18432,
14
+ "max_position_embeddings": 65536,
15
+ "mlp_bias": false,
16
+ "model_type": "arcee",
17
+ "num_attention_heads": 20,
18
+ "num_hidden_layers": 36,
19
+ "num_key_value_heads": 4,
20
+ "rms_norm_eps": 1e-05,
21
+ "rope_scaling": {
22
+ "beta_fast": 32.0,
23
+ "beta_slow": 1.0,
24
+ "factor": 20.0,
25
+ "mscale": 1.0,
26
+ "original_max_position_embeddings": 4096,
27
+ "rope_type": "yarn",
28
+ "type": "yarn"
29
+ },
30
+ "rope_theta": 10000.0,
31
+ "tie_word_embeddings": false,
32
+ "torch_dtype": "bfloat16",
33
+ "transformers_version": "4.53.3",
34
+ "use_cache": false,
35
+ "vocab_size": 128005
36
+ }
generation_config.json ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
 
1
+ {
2
+ "_from_model_config": true,
3
+ "bos_token_id": 128000,
4
+ "eos_token_id": 128003,
5
+ "transformers_version": "4.53.3",
6
+ "use_cache": false
7
+ }
model-00001-of-00002.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:57ef34a05def7d83a9fa33f11a44c842b99c4ab3fc72eab03403a15c0b6de445
3
+ size 4965245872
model-00002-of-00002.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:fcf0b354a1975416200837ff9401064fa72462bc57044741d36854658f5bc25e
3
+ size 4273167472
model.safetensors.index.json ADDED
@@ -0,0 +1,299 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "metadata": {
3
+ "total_parameters": 4619189760,
4
+ "total_size": 9238379520
5
+ },
6
+ "weight_map": {
7
+ "lm_head.weight": "model-00002-of-00002.safetensors",
8
+ "model.embed_tokens.weight": "model-00001-of-00002.safetensors",
9
+ "model.layers.0.input_layernorm.weight": "model-00001-of-00002.safetensors",
10
+ "model.layers.0.mlp.down_proj.weight": "model-00001-of-00002.safetensors",
11
+ "model.layers.0.mlp.up_proj.weight": "model-00001-of-00002.safetensors",
12
+ "model.layers.0.post_attention_layernorm.weight": "model-00001-of-00002.safetensors",
13
+ "model.layers.0.self_attn.k_proj.weight": "model-00001-of-00002.safetensors",
14
+ "model.layers.0.self_attn.o_proj.weight": "model-00001-of-00002.safetensors",
15
+ "model.layers.0.self_attn.q_proj.weight": "model-00001-of-00002.safetensors",
16
+ "model.layers.0.self_attn.v_proj.weight": "model-00001-of-00002.safetensors",
17
+ "model.layers.1.input_layernorm.weight": "model-00001-of-00002.safetensors",
18
+ "model.layers.1.mlp.down_proj.weight": "model-00001-of-00002.safetensors",
19
+ "model.layers.1.mlp.up_proj.weight": "model-00001-of-00002.safetensors",
20
+ "model.layers.1.post_attention_layernorm.weight": "model-00001-of-00002.safetensors",
21
+ "model.layers.1.self_attn.k_proj.weight": "model-00001-of-00002.safetensors",
22
+ "model.layers.1.self_attn.o_proj.weight": "model-00001-of-00002.safetensors",
23
+ "model.layers.1.self_attn.q_proj.weight": "model-00001-of-00002.safetensors",
24
+ "model.layers.1.self_attn.v_proj.weight": "model-00001-of-00002.safetensors",
25
+ "model.layers.10.input_layernorm.weight": "model-00001-of-00002.safetensors",
26
+ "model.layers.10.mlp.down_proj.weight": "model-00001-of-00002.safetensors",
27
+ "model.layers.10.mlp.up_proj.weight": "model-00001-of-00002.safetensors",
28
+ "model.layers.10.post_attention_layernorm.weight": "model-00001-of-00002.safetensors",
29
+ "model.layers.10.self_attn.k_proj.weight": "model-00001-of-00002.safetensors",
30
+ "model.layers.10.self_attn.o_proj.weight": "model-00001-of-00002.safetensors",
31
+ "model.layers.10.self_attn.q_proj.weight": "model-00001-of-00002.safetensors",
32
+ "model.layers.10.self_attn.v_proj.weight": "model-00001-of-00002.safetensors",
33
+ "model.layers.11.input_layernorm.weight": "model-00001-of-00002.safetensors",
34
+ "model.layers.11.mlp.down_proj.weight": "model-00001-of-00002.safetensors",
35
+ "model.layers.11.mlp.up_proj.weight": "model-00001-of-00002.safetensors",
36
+ "model.layers.11.post_attention_layernorm.weight": "model-00001-of-00002.safetensors",
37
+ "model.layers.11.self_attn.k_proj.weight": "model-00001-of-00002.safetensors",
38
+ "model.layers.11.self_attn.o_proj.weight": "model-00001-of-00002.safetensors",
39
+ "model.layers.11.self_attn.q_proj.weight": "model-00001-of-00002.safetensors",
40
+ "model.layers.11.self_attn.v_proj.weight": "model-00001-of-00002.safetensors",
41
+ "model.layers.12.input_layernorm.weight": "model-00001-of-00002.safetensors",
42
+ "model.layers.12.mlp.down_proj.weight": "model-00001-of-00002.safetensors",
43
+ "model.layers.12.mlp.up_proj.weight": "model-00001-of-00002.safetensors",
44
+ "model.layers.12.post_attention_layernorm.weight": "model-00001-of-00002.safetensors",
45
+ "model.layers.12.self_attn.k_proj.weight": "model-00001-of-00002.safetensors",
46
+ "model.layers.12.self_attn.o_proj.weight": "model-00001-of-00002.safetensors",
47
+ "model.layers.12.self_attn.q_proj.weight": "model-00001-of-00002.safetensors",
48
+ "model.layers.12.self_attn.v_proj.weight": "model-00001-of-00002.safetensors",
49
+ "model.layers.13.input_layernorm.weight": "model-00001-of-00002.safetensors",
50
+ "model.layers.13.mlp.down_proj.weight": "model-00001-of-00002.safetensors",
51
+ "model.layers.13.mlp.up_proj.weight": "model-00001-of-00002.safetensors",
52
+ "model.layers.13.post_attention_layernorm.weight": "model-00001-of-00002.safetensors",
53
+ "model.layers.13.self_attn.k_proj.weight": "model-00001-of-00002.safetensors",
54
+ "model.layers.13.self_attn.o_proj.weight": "model-00001-of-00002.safetensors",
55
+ "model.layers.13.self_attn.q_proj.weight": "model-00001-of-00002.safetensors",
56
+ "model.layers.13.self_attn.v_proj.weight": "model-00001-of-00002.safetensors",
57
+ "model.layers.14.input_layernorm.weight": "model-00001-of-00002.safetensors",
58
+ "model.layers.14.mlp.down_proj.weight": "model-00001-of-00002.safetensors",
59
+ "model.layers.14.mlp.up_proj.weight": "model-00001-of-00002.safetensors",
60
+ "model.layers.14.post_attention_layernorm.weight": "model-00001-of-00002.safetensors",
61
+ "model.layers.14.self_attn.k_proj.weight": "model-00001-of-00002.safetensors",
62
+ "model.layers.14.self_attn.o_proj.weight": "model-00001-of-00002.safetensors",
63
+ "model.layers.14.self_attn.q_proj.weight": "model-00001-of-00002.safetensors",
64
+ "model.layers.14.self_attn.v_proj.weight": "model-00001-of-00002.safetensors",
65
+ "model.layers.15.input_layernorm.weight": "model-00001-of-00002.safetensors",
66
+ "model.layers.15.mlp.down_proj.weight": "model-00001-of-00002.safetensors",
67
+ "model.layers.15.mlp.up_proj.weight": "model-00001-of-00002.safetensors",
68
+ "model.layers.15.post_attention_layernorm.weight": "model-00001-of-00002.safetensors",
69
+ "model.layers.15.self_attn.k_proj.weight": "model-00001-of-00002.safetensors",
70
+ "model.layers.15.self_attn.o_proj.weight": "model-00001-of-00002.safetensors",
71
+ "model.layers.15.self_attn.q_proj.weight": "model-00001-of-00002.safetensors",
72
+ "model.layers.15.self_attn.v_proj.weight": "model-00001-of-00002.safetensors",
73
+ "model.layers.16.input_layernorm.weight": "model-00001-of-00002.safetensors",
74
+ "model.layers.16.mlp.down_proj.weight": "model-00001-of-00002.safetensors",
75
+ "model.layers.16.mlp.up_proj.weight": "model-00001-of-00002.safetensors",
76
+ "model.layers.16.post_attention_layernorm.weight": "model-00001-of-00002.safetensors",
77
+ "model.layers.16.self_attn.k_proj.weight": "model-00001-of-00002.safetensors",
78
+ "model.layers.16.self_attn.o_proj.weight": "model-00001-of-00002.safetensors",
79
+ "model.layers.16.self_attn.q_proj.weight": "model-00001-of-00002.safetensors",
80
+ "model.layers.16.self_attn.v_proj.weight": "model-00001-of-00002.safetensors",
81
+ "model.layers.17.input_layernorm.weight": "model-00001-of-00002.safetensors",
82
+ "model.layers.17.mlp.down_proj.weight": "model-00001-of-00002.safetensors",
83
+ "model.layers.17.mlp.up_proj.weight": "model-00001-of-00002.safetensors",
84
+ "model.layers.17.post_attention_layernorm.weight": "model-00001-of-00002.safetensors",
85
+ "model.layers.17.self_attn.k_proj.weight": "model-00001-of-00002.safetensors",
86
+ "model.layers.17.self_attn.o_proj.weight": "model-00001-of-00002.safetensors",
87
+ "model.layers.17.self_attn.q_proj.weight": "model-00001-of-00002.safetensors",
88
+ "model.layers.17.self_attn.v_proj.weight": "model-00001-of-00002.safetensors",
89
+ "model.layers.18.input_layernorm.weight": "model-00001-of-00002.safetensors",
90
+ "model.layers.18.mlp.down_proj.weight": "model-00001-of-00002.safetensors",
91
+ "model.layers.18.mlp.up_proj.weight": "model-00001-of-00002.safetensors",
92
+ "model.layers.18.post_attention_layernorm.weight": "model-00001-of-00002.safetensors",
93
+ "model.layers.18.self_attn.k_proj.weight": "model-00001-of-00002.safetensors",
94
+ "model.layers.18.self_attn.o_proj.weight": "model-00001-of-00002.safetensors",
95
+ "model.layers.18.self_attn.q_proj.weight": "model-00001-of-00002.safetensors",
96
+ "model.layers.18.self_attn.v_proj.weight": "model-00001-of-00002.safetensors",
97
+ "model.layers.19.input_layernorm.weight": "model-00002-of-00002.safetensors",
98
+ "model.layers.19.mlp.down_proj.weight": "model-00002-of-00002.safetensors",
99
+ "model.layers.19.mlp.up_proj.weight": "model-00001-of-00002.safetensors",
100
+ "model.layers.19.post_attention_layernorm.weight": "model-00002-of-00002.safetensors",
101
+ "model.layers.19.self_attn.k_proj.weight": "model-00001-of-00002.safetensors",
102
+ "model.layers.19.self_attn.o_proj.weight": "model-00001-of-00002.safetensors",
103
+ "model.layers.19.self_attn.q_proj.weight": "model-00001-of-00002.safetensors",
104
+ "model.layers.19.self_attn.v_proj.weight": "model-00001-of-00002.safetensors",
105
+ "model.layers.2.input_layernorm.weight": "model-00001-of-00002.safetensors",
106
+ "model.layers.2.mlp.down_proj.weight": "model-00001-of-00002.safetensors",
107
+ "model.layers.2.mlp.up_proj.weight": "model-00001-of-00002.safetensors",
108
+ "model.layers.2.post_attention_layernorm.weight": "model-00001-of-00002.safetensors",
109
+ "model.layers.2.self_attn.k_proj.weight": "model-00001-of-00002.safetensors",
110
+ "model.layers.2.self_attn.o_proj.weight": "model-00001-of-00002.safetensors",
111
+ "model.layers.2.self_attn.q_proj.weight": "model-00001-of-00002.safetensors",
112
+ "model.layers.2.self_attn.v_proj.weight": "model-00001-of-00002.safetensors",
113
+ "model.layers.20.input_layernorm.weight": "model-00002-of-00002.safetensors",
114
+ "model.layers.20.mlp.down_proj.weight": "model-00002-of-00002.safetensors",
115
+ "model.layers.20.mlp.up_proj.weight": "model-00002-of-00002.safetensors",
116
+ "model.layers.20.post_attention_layernorm.weight": "model-00002-of-00002.safetensors",
117
+ "model.layers.20.self_attn.k_proj.weight": "model-00002-of-00002.safetensors",
118
+ "model.layers.20.self_attn.o_proj.weight": "model-00002-of-00002.safetensors",
119
+ "model.layers.20.self_attn.q_proj.weight": "model-00002-of-00002.safetensors",
120
+ "model.layers.20.self_attn.v_proj.weight": "model-00002-of-00002.safetensors",
121
+ "model.layers.21.input_layernorm.weight": "model-00002-of-00002.safetensors",
122
+ "model.layers.21.mlp.down_proj.weight": "model-00002-of-00002.safetensors",
123
+ "model.layers.21.mlp.up_proj.weight": "model-00002-of-00002.safetensors",
124
+ "model.layers.21.post_attention_layernorm.weight": "model-00002-of-00002.safetensors",
125
+ "model.layers.21.self_attn.k_proj.weight": "model-00002-of-00002.safetensors",
126
+ "model.layers.21.self_attn.o_proj.weight": "model-00002-of-00002.safetensors",
127
+ "model.layers.21.self_attn.q_proj.weight": "model-00002-of-00002.safetensors",
128
+ "model.layers.21.self_attn.v_proj.weight": "model-00002-of-00002.safetensors",
129
+ "model.layers.22.input_layernorm.weight": "model-00002-of-00002.safetensors",
130
+ "model.layers.22.mlp.down_proj.weight": "model-00002-of-00002.safetensors",
131
+ "model.layers.22.mlp.up_proj.weight": "model-00002-of-00002.safetensors",
132
+ "model.layers.22.post_attention_layernorm.weight": "model-00002-of-00002.safetensors",
133
+ "model.layers.22.self_attn.k_proj.weight": "model-00002-of-00002.safetensors",
134
+ "model.layers.22.self_attn.o_proj.weight": "model-00002-of-00002.safetensors",
135
+ "model.layers.22.self_attn.q_proj.weight": "model-00002-of-00002.safetensors",
136
+ "model.layers.22.self_attn.v_proj.weight": "model-00002-of-00002.safetensors",
137
+ "model.layers.23.input_layernorm.weight": "model-00002-of-00002.safetensors",
138
+ "model.layers.23.mlp.down_proj.weight": "model-00002-of-00002.safetensors",
139
+ "model.layers.23.mlp.up_proj.weight": "model-00002-of-00002.safetensors",
140
+ "model.layers.23.post_attention_layernorm.weight": "model-00002-of-00002.safetensors",
141
+ "model.layers.23.self_attn.k_proj.weight": "model-00002-of-00002.safetensors",
142
+ "model.layers.23.self_attn.o_proj.weight": "model-00002-of-00002.safetensors",
143
+ "model.layers.23.self_attn.q_proj.weight": "model-00002-of-00002.safetensors",
144
+ "model.layers.23.self_attn.v_proj.weight": "model-00002-of-00002.safetensors",
145
+ "model.layers.24.input_layernorm.weight": "model-00002-of-00002.safetensors",
146
+ "model.layers.24.mlp.down_proj.weight": "model-00002-of-00002.safetensors",
147
+ "model.layers.24.mlp.up_proj.weight": "model-00002-of-00002.safetensors",
148
+ "model.layers.24.post_attention_layernorm.weight": "model-00002-of-00002.safetensors",
149
+ "model.layers.24.self_attn.k_proj.weight": "model-00002-of-00002.safetensors",
150
+ "model.layers.24.self_attn.o_proj.weight": "model-00002-of-00002.safetensors",
151
+ "model.layers.24.self_attn.q_proj.weight": "model-00002-of-00002.safetensors",
152
+ "model.layers.24.self_attn.v_proj.weight": "model-00002-of-00002.safetensors",
153
+ "model.layers.25.input_layernorm.weight": "model-00002-of-00002.safetensors",
154
+ "model.layers.25.mlp.down_proj.weight": "model-00002-of-00002.safetensors",
155
+ "model.layers.25.mlp.up_proj.weight": "model-00002-of-00002.safetensors",
156
+ "model.layers.25.post_attention_layernorm.weight": "model-00002-of-00002.safetensors",
157
+ "model.layers.25.self_attn.k_proj.weight": "model-00002-of-00002.safetensors",
158
+ "model.layers.25.self_attn.o_proj.weight": "model-00002-of-00002.safetensors",
159
+ "model.layers.25.self_attn.q_proj.weight": "model-00002-of-00002.safetensors",
160
+ "model.layers.25.self_attn.v_proj.weight": "model-00002-of-00002.safetensors",
161
+ "model.layers.26.input_layernorm.weight": "model-00002-of-00002.safetensors",
162
+ "model.layers.26.mlp.down_proj.weight": "model-00002-of-00002.safetensors",
163
+ "model.layers.26.mlp.up_proj.weight": "model-00002-of-00002.safetensors",
164
+ "model.layers.26.post_attention_layernorm.weight": "model-00002-of-00002.safetensors",
165
+ "model.layers.26.self_attn.k_proj.weight": "model-00002-of-00002.safetensors",
166
+ "model.layers.26.self_attn.o_proj.weight": "model-00002-of-00002.safetensors",
167
+ "model.layers.26.self_attn.q_proj.weight": "model-00002-of-00002.safetensors",
168
+ "model.layers.26.self_attn.v_proj.weight": "model-00002-of-00002.safetensors",
169
+ "model.layers.27.input_layernorm.weight": "model-00002-of-00002.safetensors",
170
+ "model.layers.27.mlp.down_proj.weight": "model-00002-of-00002.safetensors",
171
+ "model.layers.27.mlp.up_proj.weight": "model-00002-of-00002.safetensors",
172
+ "model.layers.27.post_attention_layernorm.weight": "model-00002-of-00002.safetensors",
173
+ "model.layers.27.self_attn.k_proj.weight": "model-00002-of-00002.safetensors",
174
+ "model.layers.27.self_attn.o_proj.weight": "model-00002-of-00002.safetensors",
175
+ "model.layers.27.self_attn.q_proj.weight": "model-00002-of-00002.safetensors",
176
+ "model.layers.27.self_attn.v_proj.weight": "model-00002-of-00002.safetensors",
177
+ "model.layers.28.input_layernorm.weight": "model-00002-of-00002.safetensors",
178
+ "model.layers.28.mlp.down_proj.weight": "model-00002-of-00002.safetensors",
179
+ "model.layers.28.mlp.up_proj.weight": "model-00002-of-00002.safetensors",
180
+ "model.layers.28.post_attention_layernorm.weight": "model-00002-of-00002.safetensors",
181
+ "model.layers.28.self_attn.k_proj.weight": "model-00002-of-00002.safetensors",
182
+ "model.layers.28.self_attn.o_proj.weight": "model-00002-of-00002.safetensors",
183
+ "model.layers.28.self_attn.q_proj.weight": "model-00002-of-00002.safetensors",
184
+ "model.layers.28.self_attn.v_proj.weight": "model-00002-of-00002.safetensors",
185
+ "model.layers.29.input_layernorm.weight": "model-00002-of-00002.safetensors",
186
+ "model.layers.29.mlp.down_proj.weight": "model-00002-of-00002.safetensors",
187
+ "model.layers.29.mlp.up_proj.weight": "model-00002-of-00002.safetensors",
188
+ "model.layers.29.post_attention_layernorm.weight": "model-00002-of-00002.safetensors",
189
+ "model.layers.29.self_attn.k_proj.weight": "model-00002-of-00002.safetensors",
190
+ "model.layers.29.self_attn.o_proj.weight": "model-00002-of-00002.safetensors",
191
+ "model.layers.29.self_attn.q_proj.weight": "model-00002-of-00002.safetensors",
192
+ "model.layers.29.self_attn.v_proj.weight": "model-00002-of-00002.safetensors",
193
+ "model.layers.3.input_layernorm.weight": "model-00001-of-00002.safetensors",
194
+ "model.layers.3.mlp.down_proj.weight": "model-00001-of-00002.safetensors",
195
+ "model.layers.3.mlp.up_proj.weight": "model-00001-of-00002.safetensors",
196
+ "model.layers.3.post_attention_layernorm.weight": "model-00001-of-00002.safetensors",
197
+ "model.layers.3.self_attn.k_proj.weight": "model-00001-of-00002.safetensors",
198
+ "model.layers.3.self_attn.o_proj.weight": "model-00001-of-00002.safetensors",
199
+ "model.layers.3.self_attn.q_proj.weight": "model-00001-of-00002.safetensors",
200
+ "model.layers.3.self_attn.v_proj.weight": "model-00001-of-00002.safetensors",
201
+ "model.layers.30.input_layernorm.weight": "model-00002-of-00002.safetensors",
202
+ "model.layers.30.mlp.down_proj.weight": "model-00002-of-00002.safetensors",
203
+ "model.layers.30.mlp.up_proj.weight": "model-00002-of-00002.safetensors",
204
+ "model.layers.30.post_attention_layernorm.weight": "model-00002-of-00002.safetensors",
205
+ "model.layers.30.self_attn.k_proj.weight": "model-00002-of-00002.safetensors",
206
+ "model.layers.30.self_attn.o_proj.weight": "model-00002-of-00002.safetensors",
207
+ "model.layers.30.self_attn.q_proj.weight": "model-00002-of-00002.safetensors",
208
+ "model.layers.30.self_attn.v_proj.weight": "model-00002-of-00002.safetensors",
209
+ "model.layers.31.input_layernorm.weight": "model-00002-of-00002.safetensors",
210
+ "model.layers.31.mlp.down_proj.weight": "model-00002-of-00002.safetensors",
211
+ "model.layers.31.mlp.up_proj.weight": "model-00002-of-00002.safetensors",
212
+ "model.layers.31.post_attention_layernorm.weight": "model-00002-of-00002.safetensors",
213
+ "model.layers.31.self_attn.k_proj.weight": "model-00002-of-00002.safetensors",
214
+ "model.layers.31.self_attn.o_proj.weight": "model-00002-of-00002.safetensors",
215
+ "model.layers.31.self_attn.q_proj.weight": "model-00002-of-00002.safetensors",
216
+ "model.layers.31.self_attn.v_proj.weight": "model-00002-of-00002.safetensors",
217
+ "model.layers.32.input_layernorm.weight": "model-00002-of-00002.safetensors",
218
+ "model.layers.32.mlp.down_proj.weight": "model-00002-of-00002.safetensors",
219
+ "model.layers.32.mlp.up_proj.weight": "model-00002-of-00002.safetensors",
220
+ "model.layers.32.post_attention_layernorm.weight": "model-00002-of-00002.safetensors",
221
+ "model.layers.32.self_attn.k_proj.weight": "model-00002-of-00002.safetensors",
222
+ "model.layers.32.self_attn.o_proj.weight": "model-00002-of-00002.safetensors",
223
+ "model.layers.32.self_attn.q_proj.weight": "model-00002-of-00002.safetensors",
224
+ "model.layers.32.self_attn.v_proj.weight": "model-00002-of-00002.safetensors",
225
+ "model.layers.33.input_layernorm.weight": "model-00002-of-00002.safetensors",
226
+ "model.layers.33.mlp.down_proj.weight": "model-00002-of-00002.safetensors",
227
+ "model.layers.33.mlp.up_proj.weight": "model-00002-of-00002.safetensors",
228
+ "model.layers.33.post_attention_layernorm.weight": "model-00002-of-00002.safetensors",
229
+ "model.layers.33.self_attn.k_proj.weight": "model-00002-of-00002.safetensors",
230
+ "model.layers.33.self_attn.o_proj.weight": "model-00002-of-00002.safetensors",
231
+ "model.layers.33.self_attn.q_proj.weight": "model-00002-of-00002.safetensors",
232
+ "model.layers.33.self_attn.v_proj.weight": "model-00002-of-00002.safetensors",
233
+ "model.layers.34.input_layernorm.weight": "model-00002-of-00002.safetensors",
234
+ "model.layers.34.mlp.down_proj.weight": "model-00002-of-00002.safetensors",
235
+ "model.layers.34.mlp.up_proj.weight": "model-00002-of-00002.safetensors",
236
+ "model.layers.34.post_attention_layernorm.weight": "model-00002-of-00002.safetensors",
237
+ "model.layers.34.self_attn.k_proj.weight": "model-00002-of-00002.safetensors",
238
+ "model.layers.34.self_attn.o_proj.weight": "model-00002-of-00002.safetensors",
239
+ "model.layers.34.self_attn.q_proj.weight": "model-00002-of-00002.safetensors",
240
+ "model.layers.34.self_attn.v_proj.weight": "model-00002-of-00002.safetensors",
241
+ "model.layers.35.input_layernorm.weight": "model-00002-of-00002.safetensors",
242
+ "model.layers.35.mlp.down_proj.weight": "model-00002-of-00002.safetensors",
243
+ "model.layers.35.mlp.up_proj.weight": "model-00002-of-00002.safetensors",
244
+ "model.layers.35.post_attention_layernorm.weight": "model-00002-of-00002.safetensors",
245
+ "model.layers.35.self_attn.k_proj.weight": "model-00002-of-00002.safetensors",
246
+ "model.layers.35.self_attn.o_proj.weight": "model-00002-of-00002.safetensors",
247
+ "model.layers.35.self_attn.q_proj.weight": "model-00002-of-00002.safetensors",
248
+ "model.layers.35.self_attn.v_proj.weight": "model-00002-of-00002.safetensors",
249
+ "model.layers.4.input_layernorm.weight": "model-00001-of-00002.safetensors",
250
+ "model.layers.4.mlp.down_proj.weight": "model-00001-of-00002.safetensors",
251
+ "model.layers.4.mlp.up_proj.weight": "model-00001-of-00002.safetensors",
252
+ "model.layers.4.post_attention_layernorm.weight": "model-00001-of-00002.safetensors",
253
+ "model.layers.4.self_attn.k_proj.weight": "model-00001-of-00002.safetensors",
254
+ "model.layers.4.self_attn.o_proj.weight": "model-00001-of-00002.safetensors",
255
+ "model.layers.4.self_attn.q_proj.weight": "model-00001-of-00002.safetensors",
256
+ "model.layers.4.self_attn.v_proj.weight": "model-00001-of-00002.safetensors",
257
+ "model.layers.5.input_layernorm.weight": "model-00001-of-00002.safetensors",
258
+ "model.layers.5.mlp.down_proj.weight": "model-00001-of-00002.safetensors",
259
+ "model.layers.5.mlp.up_proj.weight": "model-00001-of-00002.safetensors",
260
+ "model.layers.5.post_attention_layernorm.weight": "model-00001-of-00002.safetensors",
261
+ "model.layers.5.self_attn.k_proj.weight": "model-00001-of-00002.safetensors",
262
+ "model.layers.5.self_attn.o_proj.weight": "model-00001-of-00002.safetensors",
263
+ "model.layers.5.self_attn.q_proj.weight": "model-00001-of-00002.safetensors",
264
+ "model.layers.5.self_attn.v_proj.weight": "model-00001-of-00002.safetensors",
265
+ "model.layers.6.input_layernorm.weight": "model-00001-of-00002.safetensors",
266
+ "model.layers.6.mlp.down_proj.weight": "model-00001-of-00002.safetensors",
267
+ "model.layers.6.mlp.up_proj.weight": "model-00001-of-00002.safetensors",
268
+ "model.layers.6.post_attention_layernorm.weight": "model-00001-of-00002.safetensors",
269
+ "model.layers.6.self_attn.k_proj.weight": "model-00001-of-00002.safetensors",
270
+ "model.layers.6.self_attn.o_proj.weight": "model-00001-of-00002.safetensors",
271
+ "model.layers.6.self_attn.q_proj.weight": "model-00001-of-00002.safetensors",
272
+ "model.layers.6.self_attn.v_proj.weight": "model-00001-of-00002.safetensors",
273
+ "model.layers.7.input_layernorm.weight": "model-00001-of-00002.safetensors",
274
+ "model.layers.7.mlp.down_proj.weight": "model-00001-of-00002.safetensors",
275
+ "model.layers.7.mlp.up_proj.weight": "model-00001-of-00002.safetensors",
276
+ "model.layers.7.post_attention_layernorm.weight": "model-00001-of-00002.safetensors",
277
+ "model.layers.7.self_attn.k_proj.weight": "model-00001-of-00002.safetensors",
278
+ "model.layers.7.self_attn.o_proj.weight": "model-00001-of-00002.safetensors",
279
+ "model.layers.7.self_attn.q_proj.weight": "model-00001-of-00002.safetensors",
280
+ "model.layers.7.self_attn.v_proj.weight": "model-00001-of-00002.safetensors",
281
+ "model.layers.8.input_layernorm.weight": "model-00001-of-00002.safetensors",
282
+ "model.layers.8.mlp.down_proj.weight": "model-00001-of-00002.safetensors",
283
+ "model.layers.8.mlp.up_proj.weight": "model-00001-of-00002.safetensors",
284
+ "model.layers.8.post_attention_layernorm.weight": "model-00001-of-00002.safetensors",
285
+ "model.layers.8.self_attn.k_proj.weight": "model-00001-of-00002.safetensors",
286
+ "model.layers.8.self_attn.o_proj.weight": "model-00001-of-00002.safetensors",
287
+ "model.layers.8.self_attn.q_proj.weight": "model-00001-of-00002.safetensors",
288
+ "model.layers.8.self_attn.v_proj.weight": "model-00001-of-00002.safetensors",
289
+ "model.layers.9.input_layernorm.weight": "model-00001-of-00002.safetensors",
290
+ "model.layers.9.mlp.down_proj.weight": "model-00001-of-00002.safetensors",
291
+ "model.layers.9.mlp.up_proj.weight": "model-00001-of-00002.safetensors",
292
+ "model.layers.9.post_attention_layernorm.weight": "model-00001-of-00002.safetensors",
293
+ "model.layers.9.self_attn.k_proj.weight": "model-00001-of-00002.safetensors",
294
+ "model.layers.9.self_attn.o_proj.weight": "model-00001-of-00002.safetensors",
295
+ "model.layers.9.self_attn.q_proj.weight": "model-00001-of-00002.safetensors",
296
+ "model.layers.9.self_attn.v_proj.weight": "model-00001-of-00002.safetensors",
297
+ "model.norm.weight": "model-00002-of-00002.safetensors"
298
+ }
299
+ }
special_tokens_map.json ADDED
@@ -0,0 +1,23 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "bos_token": {
3
+ "content": "<|begin_of_text|>",
4
+ "lstrip": false,
5
+ "normalized": false,
6
+ "rstrip": false,
7
+ "single_word": false
8
+ },
9
+ "eos_token": {
10
+ "content": "<|im_end|>",
11
+ "lstrip": false,
12
+ "normalized": false,
13
+ "rstrip": false,
14
+ "single_word": false
15
+ },
16
+ "pad_token": {
17
+ "content": "<|finetune_right_pad_id|>",
18
+ "lstrip": false,
19
+ "normalized": false,
20
+ "rstrip": false,
21
+ "single_word": false
22
+ }
23
+ }
tokenizer.json ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:d48708c6021027e8fc6d5342e1498111d8e87aae8903319d3ead1fbdfc4a9125
3
+ size 17158115
tokenizer_config.json ADDED
@@ -0,0 +1,56 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "added_tokens_decoder": {
3
+ "128000": {
4
+ "content": "<|begin_of_text|>",
5
+ "lstrip": false,
6
+ "normalized": false,
7
+ "rstrip": false,
8
+ "single_word": false,
9
+ "special": true
10
+ },
11
+ "128001": {
12
+ "content": "<|end_of_text|>",
13
+ "lstrip": false,
14
+ "normalized": false,
15
+ "rstrip": false,
16
+ "single_word": false,
17
+ "special": true
18
+ },
19
+ "128002": {
20
+ "content": "<|im_start|>",
21
+ "lstrip": false,
22
+ "normalized": false,
23
+ "rstrip": false,
24
+ "single_word": false,
25
+ "special": true
26
+ },
27
+ "128003": {
28
+ "content": "<|im_end|>",
29
+ "lstrip": false,
30
+ "normalized": false,
31
+ "rstrip": false,
32
+ "single_word": false,
33
+ "special": true
34
+ },
35
+ "128004": {
36
+ "content": "<|finetune_right_pad_id|>",
37
+ "lstrip": false,
38
+ "normalized": false,
39
+ "rstrip": false,
40
+ "single_word": false,
41
+ "special": true
42
+ }
43
+ },
44
+ "bos_token": "<|begin_of_text|>",
45
+ "chat_template": "{%- if messages[0]['role'] == 'system' %}\n {{- '<|im_start|>system\\n' + messages[0]['content'] + '<|im_end|>\\n' }}\n{%- else %}\n {{- '<|im_start|>system\\nThe assistant is AFM-4.5B, trained by Arcee AI, with 4.5 billion parameters. AFM is a deeply thoughtful, helpful assistant. The assistant is having a conversation with the user. The assistant\\'s responses are calm, intelligent, and personable, always aiming to truly understand the user\\'s intent. AFM thinks aloud, step by step, when solving problems or forming explanations, much like a careful, reflective thinker would. The assistant helps with sincerity and depth. If a topic invites introspection, curiosity, or broader insight, the assistant allows space for reflection — be open to nuance and complexity. The assistant is not robotic or overly formal; it speaks like a wise, thoughtful companion who cares about clarity and the human experience. If a topic is uncertain or depends on subjective interpretation, AFM explains the possibilities thoughtfully.<|im_end|>\\n' }}\n{%- endif %}\n{%- for message in messages %}\n {%- if not (message.role == 'system' and loop.first) %}\n {{- '<|im_start|>' + message.role + '\\n' + message.content + '<|im_end|>\\n' }}\n {%- endif %}\n{%- endfor %}\n{%- if messages[-1]['role'] != 'assistant' %}\n {{- '<|im_start|>assistant\\n' }}\n{%- endif %}",
46
+ "clean_up_tokenization_spaces": true,
47
+ "eos_token": "<|im_end|>",
48
+ "extra_special_tokens": {},
49
+ "model_input_names": [
50
+ "input_ids",
51
+ "attention_mask"
52
+ ],
53
+ "model_max_length": 65536,
54
+ "pad_token": "<|finetune_right_pad_id|>",
55
+ "tokenizer_class": "PreTrainedTokenizerFast"
56
+ }