KitsuVp commited on
Commit
35564b0
·
verified ·
1 Parent(s): 8685f92

Model save

Browse files
README.md CHANGED
@@ -1,535 +1,90 @@
1
  ---
2
- language: en
3
- license: apache-2.0
4
  tags:
5
- - causal-lm
6
- - research
7
- - bf16
8
- - attention
9
- - normalization
10
- - neollm
11
- datasets:
12
- - HuggingFaceFW/fineweb-edu
13
  ---
14
 
15
- # NeoLLM
16
-
17
- NeoLLM is a **85.16 M parameter** decoder-only language model trained from scratch on
18
- [FineWeb-Edu](https://huggingface.co/datasets/HuggingFaceFW/fineweb-edu) with
19
- **BF16** compute, completing training in approximately
20
- **~1h 16m** on **NVIDIA RTX PRO 6000 Blackwell Server Edition**.
21
- It integrates a collection of recently published attention and normalization techniques
22
- into a single architecture, with the goal of studying how they interact during
23
- pretraining. The model is actively being developed and the current checkpoint represents
24
- an intermediate training state.
25
-
26
- > **Author / contact:** [@Kyokopom](https://x.com/Kyokopom) on X
27
- > **Repository:** [KitsuVp/NeoLLM](https://huggingface.co/KitsuVp/NeoLLM)
28
-
29
- ---
30
-
31
- ## Architecture
32
-
33
- NeoLLM is a decoder-only transformer with the following configuration:
34
-
35
- | Parameter | Value |
36
- |---|---|
37
- | Hidden size | 512 |
38
- | Layers | 12 |
39
- | Attention heads | 8 |
40
- | KV heads (GQA) | 4 |
41
- | Head dim | 64 |
42
- | Attention layers | full: 4, ckda: 8 |
43
- | Intermediate size | 1536 |
44
- | Vocabulary | LiquidAI/LFM2.5-1.2B-Thinking tokenizer (64,402 tokens) |
45
- | Context length | 512 tokens |
46
- | Leviathan | enabled=True; d_seed=128, modes=8, knots=16 |
47
- | JTok / JTok-M | enabled=False / False; Torch continuous surfaces, experts=5, top_k=2 |
48
- | DAGFormer | enabled=False; {'predictor_dim': 256, 'predictor_layers': 2, 'predictor_heads': 4, 'local_dim': 128, 'input_source': 'tokens'} |
49
- | Linear Depth Memory | enabled=False; groups=8, key dimension=8; shared branch history when combined with SiameseNorm |
50
- | Virtual Head Attention | enabled=False; query/KV heads follow the configured geometry |
51
- | Copy-Paste LM | enabled=True; causal vocabulary/pointer mixture |
52
-
53
- ### Parameter breakdown
54
-
55
- | Parameter bucket | Count |
56
- |---|---|
57
- | **Total parameters** | 85.16M (85,156,584) |
58
- | **Embedding parameters** (tied) | 32.97M (32,973,824) |
59
- | **Non-embedding parameters** | 52.18M (52,182,760) |
60
- | **Effective trainable parameters** | 85.16M (85,156,584) |
61
-
62
- > Weight tying is **enabled**: the input embedding matrix and the language-model head
63
- > share the same parameters, so the effective trainable budget is
64
- > `total − embed = 52.18M`.
65
-
66
- ### Integrated techniques
67
-
68
- NeoLLM combines architecture modules, optional auxiliary objectives, and
69
- training-time optimizer/stability components from the following papers.
70
-
71
- **Embedding and token representation**
72
-
73
- - **Learnable Multipliers** ([arXiv:2601.04890](https://arxiv.org/abs/2601.04890)) — Adds
74
- per-row and per-column learnable scalar parameters to selected matrix layers and, when
75
- enabled, embeddings.
76
- - **Leviathan** ([arXiv:2601.22040](https://arxiv.org/abs/2601.22040)) — Optional
77
- continuous token embedding generator that can replace the discrete input lookup table.
78
- - **Leviathan-JTok / JTok-M** ([arXiv:2602.00800](https://arxiv.org/abs/2602.00800)) —
79
- Optional continuous adaptation of JTok over the shared Leviathan coordinate. JTok
80
- applies one normalized surface as a multiplicative MLP gate; JTok-M routes a
81
- Sigmoid+TopK mixture of continuous surfaces and adds the paper's depth-scaled
82
- residual. Runtime ``jtok_kernel_backend`` selects the PyTorch reference or the
83
- CCE Triton adapter; the JTok surfaces remain outside MXFP8 conversion.
84
- - **KHRONOS** ([arXiv:2505.13315](https://arxiv.org/abs/2505.13315)) — Kernel/basis
85
- reference used by the Leviathan continuous token generator implementation.
86
- - **Spelling Bee Embeddings** ([arXiv:2601.18030](https://arxiv.org/abs/2601.18030)) —
87
- Augments token embeddings with character-level spelling information.
88
- - **Token Embedding Manifold analysis** ([arXiv:2504.01002](https://arxiv.org/abs/2504.01002)) —
89
- Reference motivation for treating token embeddings as structured objects rather than
90
- unconstrained lookup rows.
91
-
92
- **Attention, positions, and output projection**
93
-
94
- - **Virtual Head Attention** ([arXiv:2610.17959](https://arxiv.org/abs/2610.17959)) — Optional
95
- group-specific query premix and low-rank head postmix. NeoLLM shares its gated query
96
- projection across corresponding head slots in KV groups and applies postmix after the gate; inference weights are
97
- not automatically folded into standard GQA projections.
98
- - **Copy-Paste LM** ([arXiv:2610.19247](https://arxiv.org/abs/2610.19247)) — Optional
99
- causal pointer and sink mixed with the vocabulary distribution. CUDA training
100
- uses CCE's sparse Copy-Paste kernels; inference returns dense mixed logits.
101
- - **FAN** ([arXiv:2502.21309](https://arxiv.org/abs/2502.21309)) — Fourier Analysis Networks.
102
- A portion of the projection channels are dedicated to periodic cosine/sine features.
103
- - **MEA** ([arXiv:2601.19611](https://arxiv.org/abs/2601.19611)) — Explicit Multi-head
104
- Attention. Adds small learnable interaction matrices between attention heads for K and V.
105
- - **LUCID** ([arXiv:2602.10410](https://arxiv.org/abs/2602.10410)) — Applies a learned
106
- lower-triangular preconditioner to V before attention, decorrelating value representations
107
- across positions.
108
- - **Affine-Scaled Attention** ([arXiv:2602.23057](https://arxiv.org/abs/2602.23057)) — Adds
109
- two learnable per-head scalars (α and β) to the softmax weights:
110
- `[α·softmax(QKᵀ) + β]·V`.
111
- - **XSA** ([arXiv:2603.09078](https://arxiv.org/abs/2603.09078)) — Exclusive Self Attention.
112
- After computing attention, removes the component of the output aligned with the token's
113
- own value vector.
114
- - **Directional Routing** ([arXiv:2603.14923](https://arxiv.org/abs/2603.14923)) — Each head
115
- learns K=4 directions in the output space; a learned router suppresses the attention output
116
- along each direction per input.
117
- - **Gated Attention** ([arXiv:2505.06708](https://arxiv.org/abs/2505.06708)) — A sigmoid gate
118
- is applied to the attention output before the output projection, introducing non-linearity
119
- and preventing attention sinks.
120
- - **Momentum Attention** ([arXiv:2411.03884](https://arxiv.org/abs/2411.03884)) — Modifies Q
121
- and K by subtracting a fraction of the previous position's Q and K values (causal
122
- first-difference).
123
- - **Interleaved Head Attention / IHA** ([arXiv:2602.21371](https://arxiv.org/abs/2602.21371)) —
124
- Builds pseudo-heads from learned cross-head mixtures to create multiple attention patterns
125
- per original head.
126
- - **REPO** ([arXiv:2512.14391](https://arxiv.org/abs/2512.14391)) — Context re-positioning
127
- module that learns contextual position coordinates above a configurable start layer.
128
- - **GRAPE** ([arXiv:2512.07805](https://arxiv.org/abs/2512.07805)) — Group representational
129
- position encoding used by the REPO-GRAPE positional path.
130
- - **GOAT priors** ([arXiv:2601.15380](https://arxiv.org/abs/2601.15380)) — Optional
131
- factorized attention log-prior channels inspired by trainable attention priors.
132
- - **Hadamard output projection** ([arXiv:2603.08343](https://arxiv.org/abs/2603.08343)) —
133
- Replaces dense attention output projection with a structured Hadamard transform plus
134
- lightweight scaling.
135
-
136
- **Normalization, residual flow, and MLP**
137
-
138
- - **SeeDNorm** ([arXiv:2510.22777](https://arxiv.org/abs/2510.22777)) — Applied to Q and K
139
- projections. Dynamically rescales normalization from the input's own statistics.
140
- - **LayerNorm Scaling / LNS** ([arXiv:2502.05795](https://arxiv.org/abs/2502.05795)) — Each
141
- layer's output is scaled by 1/√ℓ where ℓ is the layer index.
142
- - **GPAS** ([arXiv:2506.22049](https://arxiv.org/abs/2506.22049)) — Gradient-Preserving
143
- Activation Scaling for residual junctions.
144
- - **PolyNorm** ([arXiv:2602.04902](https://arxiv.org/abs/2602.04902)) — Replaces the standard
145
- MLP activation with normalized linear, quadratic, and cubic branches.
146
- - **SimpleGPT** ([arXiv:2602.01212](https://arxiv.org/abs/2602.01212)) — Second-order
147
- geometry-inspired normalization strategy applied inside MLP projections.
148
- - **StackMemory / STACKTRANS** ([NeurIPS 2025](https://openreview.net/forum?id=2bbDg587uh)) —
149
- Optional differentiable hidden-state stack between decoder layers.
150
- - **Attention Residuals / AttnRes** ([arXiv:2603.15031](https://arxiv.org/abs/2603.15031)) —
151
- Optional learned depth-wise aggregation over previous layer outputs or block summaries.
152
- - **LAUREL** ([arXiv:2411.07501](https://arxiv.org/abs/2411.07501)) — Optional learned
153
- augmented residual layer with residual-weight and low-rank variants.
154
-
155
- **Training objectives and training-time regularizers**
156
-
157
- - **Cut Cross Entropy** ([Apple repository](https://github.com/apple/ml-cross-entropy)) —
158
- Memory-efficient next-token loss that avoids materializing the full token-by-vocabulary
159
- logits tensor. NeoLLM remains compatible with the upstream package when the extensions
160
- below are disabled.
161
- - **MiLe Loss** ([arXiv:2310.19531](https://arxiv.org/abs/2310.19531)) — Optional detached,
162
- mean-normalized predictive-entropy weighting of token losses, implemented inside the
163
- extended CCE path.
164
- - **Output Embedding Centering / mu-loss**
165
- ([arXiv:2601.02031](https://arxiv.org/abs/2601.02031)) — Optional
166
- `lambda * ||mean(output_embeddings)||^2` regularizer for output-logit stability.
167
- - **MEAP** ([arXiv:2502.07490](https://arxiv.org/abs/2502.07490)) — Optional training-only
168
- input corruption that masks a fixed fraction of eligible tokens while preserving clean
169
- next-token labels, causal attention, and the inference path.
170
- - **TWEO** ([arXiv:2511.23225](https://arxiv.org/abs/2511.23225)) — Optional
171
- Transformers Without Extreme Outliers activation regularizer for FP8/low-bit-friendly
172
- training.
173
- - **NITP** ([arXiv:2605.24956](https://arxiv.org/abs/2605.24956)) — Optional Next Implicit
174
- Token Prediction auxiliary objective using shallow-layer implicit token targets and a
175
- cosine loss.
176
- - **NextLat** ([arXiv:2511.05963](https://arxiv.org/abs/2511.05963)) — Optional next-latent
177
- prediction objective using latent dynamics, Smooth L1 supervision, and frozen-head KL.
178
-
179
- ### Optional extended-CCE configuration
180
-
181
- | Feature | Enabled | Value |
182
- |---|---:|---:|
183
- | MiLe Loss | True | gamma=1.0 |
184
- | mu-loss | True | lambda=0.0001 |
185
- | MEAP | True | ratio=0.15 |
186
-
187
- Copy-Paste uses CCE sparse mixture statistics for CUDA training and computes mu-loss in Torch. MEAP and patch training also use the extended cut-cross-entropy package.
188
- [`Kitsunp/ml-cross-entropy`](https://github.com/Kitsunp/ml-cross-entropy) supplies the extended kernels.
189
- Copy-Paste exposes three compact
190
- scalars: unweighted NTP cross entropy, the MiLe reweighting delta, and the mu-loss penalty.
191
- Their sum reconstructs `ntp_loss` exactly. MEAP reports its eligible and selected counts from
192
- the masking kernel; the trainer logs the selected count and exact fraction. Copy-Paste diagnostics use sparse source-token candidates and CCE vocabulary reductions.
193
-
194
- **Optimizer and training stability**
195
-
196
- - **Adam-family optimizer mode** — Active variant: **AdEMAMix**.
197
- **AdEMAMix** ([arXiv:2409.03137](https://arxiv.org/abs/2409.03137)) contributes the optional
198
- beta3 slow-memory branch when `ADEMAMIX=True`. **DeltaMomentum**
199
- ([arXiv:2608.19491](https://arxiv.org/abs/2608.19491)) optionally replaces only the fast beta1
200
- first-moment update on hidden Linear weights when `DELTA=True`; beta2 remains Adam's
201
- ordinary squared-gradient EMA in every mode.
202
- - **BF16 stochastic rounding** ([arXiv:2502.20566](https://arxiv.org/abs/2502.20566)) —
203
- Optional master-free BF16 model update with stochastic rather than nearest rounding; the same
204
- write-back path is shared by AdamW, DeltaAdamW, AdEMAMix, and DeltaAdEMAMix.
205
- - **Cautious Weight Decay** ([arXiv:2510.12402](https://arxiv.org/abs/2510.12402)) —
206
- Sign-selective weight decay variant used by the custom optimizer logic.
207
- - **Correction of Decoupled Weight Decay** ([arXiv:2512.08217](https://arxiv.org/abs/2512.08217)) —
208
- Adapts decoupled weight decay during learning-rate decay.
209
- - **AdamHD** ([arXiv:2511.14721](https://arxiv.org/abs/2511.14721)) —
210
- Decoupled Huber decay regularization reference used by the optimizer.
211
- - **Gradient conditioning** — CAST active; history-adaptive spectral/norm policies by optimizer group; 15625 committed updates.
212
- References: [CAST](https://arxiv.org/abs/2610.19761),
213
- [GradientStabilizer](https://arxiv.org/abs/2502.17055).
214
- ---
215
-
216
- ## Training
217
-
218
- | Setting | Value |
219
- |---|---|
220
- | Dataset | FineWeb-Edu (sample-10BT) |
221
- | Tokens seen | ~0.51B (15,625 steps × batch 64 × length 512) |
222
- | Precision | BF16 model state (bfloat16: 85,151,608 elements, float32: 4,976 elements) + AdEMAMix FP32 master active; stochastic rounding disabled |
223
- | Optimizer | AdEMAMix |
224
- | Gradient transform | CAST active; history-adaptive spectral/norm policies by optimizer group; 15625 committed updates |
225
- | Learning rate | 1e-03 with 4,000-step linear warmup |
226
- | Weight decay | coefficients [0.005, 0.01, 0.1]; WD 5/6 groups; CWD 2; Huber 0; Correction 0 |
227
- | Training time | ~1h 16m |
228
- | Hardware | NVIDIA RTX PRO 6000 Blackwell Server Edition |
229
-
230
 
231
- ### Training curve — total objective
232
-
233
- Total includes MiLe when enabled, plus all active auxiliary objectives and regularizers. Without MiLe means model total minus its MiLe delta on the same forward; this is not a separate training run without MiLe.
234
-
235
- | Step | Train total | Val total | Train without MiLe | Val without MiLe |
236
- |---|---|---|---|---|
237
- | 1 | 12.2393 | — | 12.2393 | — |
238
- | 250 | 6.88302 | — | 6.76623 | — |
239
- | 500 | 6.28208 | — | 6.05233 | — |
240
- | 750 | 6.09169 | — | 5.81024 | — |
241
- | 1,000 | 5.95553 | — | 5.64815 | — |
242
- | 1,250 | 5.85707 | — | 5.52881 | — |
243
- | 1,500 | 5.78767 | — | 5.44275 | — |
244
- | 1,750 | 5.72421 | — | 5.36363 | — |
245
- | 2,000 | 5.66688 | — | 5.28807 | — |
246
- | 2,250 | 5.6304 | — | 5.23835 | — |
247
- | 2,500 | 5.59015 | — | 5.18874 | — |
248
- | 2,750 | 5.55188 | — | 5.14093 | — |
249
- | 3,000 | 5.52278 | — | 5.10668 | — |
250
- | 3,250 | 5.48935 | — | 5.06473 | — |
251
- | 3,500 | 5.46238 | — | 5.02971 | — |
252
- | 3,750 | 5.42994 | — | 4.99556 | — |
253
- | 4,000 | 5.39708 | — | 4.95734 | — |
254
- | 4,250 | 5.3737 | — | 4.92851 | — |
255
- | 4,500 | 5.34154 | — | 4.89231 | — |
256
- | 4,750 | 5.30818 | — | 4.85677 | — |
257
- | 5,000 | 5.27197 | 4.94658 | 4.81648 | 4.39808 |
258
- | 5,250 | 5.25073 | — | 4.79273 | — |
259
- | 5,500 | 5.22801 | — | 4.76635 | — |
260
- | 5,750 | 5.2013 | — | 4.73485 | — |
261
- | 6,000 | 5.17772 | — | 4.71179 | — |
262
- | 6,250 | 5.1557 | — | 4.68661 | — |
263
- | 6,500 | 5.13223 | — | 4.66261 | — |
264
- | 6,750 | 5.12411 | — | 4.65223 | — |
265
- | 7,000 | 5.10729 | — | 4.63524 | — |
266
- | 7,250 | 5.09586 | — | 4.61994 | — |
267
- | 7,500 | 5.09319 | — | 4.61544 | — |
268
- | 7,750 | 5.08033 | — | 4.60091 | — |
269
- | 8,000 | 5.06994 | — | 4.58878 | — |
270
- | 8,250 | 5.05936 | — | 4.57691 | — |
271
- | 8,500 | 5.05272 | — | 4.56924 | — |
272
- | 8,750 | 5.04817 | — | 4.56302 | — |
273
- | 9,000 | 5.03882 | — | 4.553 | — |
274
- | 9,250 | 5.02471 | — | 4.53751 | — |
275
- | 9,500 | 5.01757 | — | 4.52967 | — |
276
- | 9,750 | 5.0161 | — | 4.52751 | — |
277
- | 10,000 | 5.00201 | 4.66268 | 4.51095 | 4.07687 |
278
- | 10,250 | 4.99992 | — | 4.50838 | — |
279
- | 10,500 | 4.99448 | — | 4.50424 | — |
280
- | 10,750 | 4.98813 | — | 4.49315 | — |
281
- | 11,000 | 4.98329 | — | 4.49046 | — |
282
- | 11,250 | 4.97903 | — | 4.48508 | — |
283
- | 11,500 | 4.977 | — | 4.48022 | — |
284
- | 11,750 | 4.97146 | — | 4.47386 | — |
285
- | 12,000 | 4.96739 | — | 4.47126 | — |
286
- | 12,250 | 4.95356 | — | 4.456 | — |
287
- | 12,500 | 4.93715 | — | 4.43931 | — |
288
- | 12,750 | 4.93202 | — | 4.4295 | — |
289
- | 13,000 | 4.91212 | — | 4.41007 | — |
290
- | 13,250 | 4.90266 | — | 4.39762 | — |
291
- | 13,500 | 4.88296 | — | 4.37579 | — |
292
- | 13,750 | 4.88028 | — | 4.37232 | — |
293
- | 14,000 | 4.8569 | — | 4.34836 | — |
294
- | 14,250 | 4.84394 | — | 4.33516 | — |
295
- | 14,500 | 4.83275 | — | 4.32063 | — |
296
- | 14,750 | 4.81623 | — | 4.30016 | — |
297
- | 15,000 | 4.81323 | 4.46105 | 4.29857 | 3.84069 |
298
- | 15,250 | 4.79112 | — | 4.27398 | — |
299
- | 15,500 | 4.78218 | — | 4.26446 | — |
300
- | 15,625 | 4.76802 | 4.4288 | 4.24999 | 3.80615 |
301
-
302
- ### Cross-entropy with and without MiLe
303
-
304
- CE without MiLe is unweighted CE; CE with MiLe adds the reweighting delta. Both exclude mu and auxiliary terms. `ntp_loss` includes mu when enabled.
305
-
306
- | Step | Train CE without MiLe | Val CE without MiLe | Train CE with MiLe | Val CE with MiLe |
307
- |---|---|---|---|---|
308
- | 1 | 11.1761 | — | 11.1761 | — |
309
- | 250 | 6.60345 | — | 6.72025 | — |
310
- | 500 | 5.78525 | — | 6.015 | — |
311
- | 750 | 5.46313 | — | 5.74459 | — |
312
- | 1,000 | 5.2428 | — | 5.55019 | — |
313
- | 1,250 | 5.08125 | — | 5.40952 | — |
314
- | 1,500 | 4.96359 | — | 5.30851 | — |
315
- | 1,750 | 4.86658 | — | 5.22717 | — |
316
- | 2,000 | 4.78624 | — | 5.16505 | — |
317
- | 2,250 | 4.72949 | — | 5.12155 | — |
318
- | 2,500 | 4.67681 | — | 5.07823 | — |
319
- | 2,750 | 4.63032 | — | 5.04127 | — |
320
- | 3,000 | 4.5997 | — | 5.0158 | — |
321
- | 3,250 | 4.56388 | — | 4.9885 | — |
322
- | 3,500 | 4.5373 | — | 4.96998 | — |
323
- | 3,750 | 4.50879 | — | 4.94316 | — |
324
- | 4,000 | 4.48028 | — | 4.92002 | — |
325
- | 4,250 | 4.46117 | — | 4.90636 | — |
326
- | 4,500 | 4.43763 | — | 4.88685 | — |
327
- | 4,750 | 4.41125 | — | 4.86266 | — |
328
- | 5,000 | 4.38255 | 3.96062 | 4.83804 | 4.50912 |
329
- | 5,250 | 4.36756 | — | 4.82556 | — |
330
- | 5,500 | 4.35222 | — | 4.81388 | — |
331
- | 5,750 | 4.3303 | — | 4.79675 | — |
332
- | 6,000 | 4.31695 | — | 4.78288 | — |
333
- | 6,250 | 4.30181 | — | 4.77089 | — |
334
- | 6,500 | 4.28554 | — | 4.75515 | — |
335
- | 6,750 | 4.28003 | — | 4.75191 | — |
336
- | 7,000 | 4.263 | — | 4.73505 | — |
337
- | 7,250 | 4.24916 | — | 4.72508 | — |
338
- | 7,500 | 4.24743 | — | 4.72518 | — |
339
- | 7,750 | 4.23297 | — | 4.71238 | — |
340
- | 8,000 | 4.22065 | — | 4.70181 | — |
341
- | 8,250 | 4.20999 | — | 4.69244 | — |
342
- | 8,500 | 4.2045 | — | 4.68798 | — |
343
- | 8,750 | 4.20057 | — | 4.68571 | — |
344
- | 9,000 | 4.19243 | — | 4.67825 | — |
345
- | 9,250 | 4.17851 | — | 4.66571 | — |
346
- | 9,500 | 4.17077 | — | 4.65866 | — |
347
- | 9,750 | 4.16926 | — | 4.65786 | — |
348
- | 10,000 | 4.1535 | 3.72504 | 4.64456 | 4.31085 |
349
- | 10,250 | 4.1521 | — | 4.64364 | — |
350
- | 10,500 | 4.14947 | — | 4.63971 | — |
351
- | 10,750 | 4.13878 | — | 4.63375 | — |
352
- | 11,000 | 4.1362 | — | 4.62904 | — |
353
- | 11,250 | 4.13099 | — | 4.62494 | — |
354
- | 11,500 | 4.12619 | — | 4.62298 | — |
355
- | 11,750 | 4.11948 | — | 4.61708 | — |
356
- | 12,000 | 4.11846 | — | 4.6146 | — |
357
- | 12,250 | 4.10713 | — | 4.60469 | — |
358
- | 12,500 | 4.09319 | — | 4.59103 | — |
359
- | 12,750 | 4.08746 | — | 4.58998 | — |
360
- | 13,000 | 4.07193 | — | 4.57398 | — |
361
- | 13,250 | 4.06377 | — | 4.56881 | — |
362
- | 13,500 | 4.04746 | — | 4.55463 | — |
363
- | 13,750 | 4.04848 | — | 4.55644 | — |
364
- | 14,000 | 4.0298 | — | 4.53834 | — |
365
- | 14,250 | 4.02063 | — | 4.52941 | — |
366
- | 14,500 | 4.01125 | — | 4.52337 | — |
367
- | 14,750 | 3.99496 | — | 4.51103 | — |
368
- | 15,000 | 3.99734 | 3.55095 | 4.51201 | 4.17131 |
369
- | 15,250 | 3.9777 | — | 4.49485 | — |
370
- | 15,500 | 3.97214 | — | 4.48986 | — |
371
- | 15,625 | 3.96092 | 3.52629 | 4.47896 | 4.14893 |
372
-
373
- ### Observed loss components — weighted contributions
374
-
375
- Only contributions actually added to the objective are shown; raw values and subcomponents remain in training metrics. `regularization_loss` is the subtotal of mu, weighted TWeo, JTok-M and StackMemory entropy, excluding NITP/NextLat; do not add it again to those components. JTok-M auxiliary loss is training-only.
376
-
377
- | Step | Phase | mu | TWeo | NITP | Reg. subtotal |
378
- |---|---|---|---|---|---|
379
- | 1 | train | 3.29888e-10 | 0.0790618 | 0.984221 | 0.0790618 |
380
- | 250 | train | 5.39989e-06 | 0.0394614 | 0.123308 | 0.0394668 |
381
- | 500 | train | 1.20521e-05 | 0.0430895 | 0.223987 | 0.0431015 |
382
- | 750 | train | 1.85618e-05 | 0.0479892 | 0.299101 | 0.0480078 |
383
- | 1,000 | train | 2.6167e-05 | 0.0517069 | 0.353613 | 0.0517331 |
384
- | 1,250 | train | 3.38126e-05 | 0.0532909 | 0.394231 | 0.0533247 |
385
- | 1,500 | train | 4.02859e-05 | 0.0543804 | 0.424736 | 0.0544206 |
386
- | 1,750 | train | 4.56275e-05 | 0.0550637 | 0.441939 | 0.0551093 |
387
- | 2,000 | train | 5.06263e-05 | 0.0550316 | 0.446742 | 0.0550822 |
388
- | 2,250 | train | 5.56674e-05 | 0.0554012 | 0.453395 | 0.0554569 |
389
- | 2,500 | train | 6.09738e-05 | 0.0555992 | 0.456263 | 0.0556602 |
390
- | 2,750 | train | 6.65694e-05 | 0.0554048 | 0.45513 | 0.0554713 |
391
- | 3,000 | train | 7.25451e-05 | 0.0553293 | 0.451577 | 0.0554018 |
392
- | 3,250 | train | 7.96098e-05 | 0.0551838 | 0.445591 | 0.0552634 |
393
- | 3,500 | train | 8.89899e-05 | 0.05487 | 0.437448 | 0.054959 |
394
- | 3,750 | train | 9.97518e-05 | 0.0546885 | 0.431985 | 0.0547882 |
395
- | 4,000 | train | 0.000111358 | 0.0545092 | 0.422436 | 0.0546206 |
396
- | 4,250 | train | 0.000124328 | 0.054262 | 0.412955 | 0.0543863 |
397
- | 4,500 | train | 0.000138639 | 0.0536793 | 0.400867 | 0.0538179 |
398
- | 4,750 | train | 0.000154623 | 0.0533275 | 0.392041 | 0.0534822 |
399
- | 5,000 | train | 0.000171863 | 0.0528553 | 0.3809 | 0.0530271 |
400
- | 5,000 | validation | 0.000181109 | 0.0547794 | 0.3825 | 0.0549606 |
401
- | 5,250 | train | 0.000191084 | 0.0524443 | 0.372531 | 0.0526354 |
402
- | 5,500 | train | 0.000211243 | 0.0519292 | 0.361989 | 0.0521404 |
403
- | 5,750 | train | 0.000232205 | 0.051554 | 0.352758 | 0.0517862 |
404
- | 6,000 | train | 0.000253384 | 0.051016 | 0.343567 | 0.0512694 |
405
- | 6,250 | train | 0.000274171 | 0.0503983 | 0.334137 | 0.0506724 |
406
- | 6,500 | train | 0.00029574 | 0.0496567 | 0.327123 | 0.0499524 |
407
- | 6,750 | train | 0.000317892 | 0.0475534 | 0.324328 | 0.0478712 |
408
- | 7,000 | train | 0.000338867 | 0.0453335 | 0.326572 | 0.0456724 |
409
- | 7,250 | train | 0.000358956 | 0.0438945 | 0.326532 | 0.0442535 |
410
- | 7,500 | train | 0.000382047 | 0.0421869 | 0.325439 | 0.0425689 |
411
- | 7,750 | train | 0.000407455 | 0.0402397 | 0.327297 | 0.0406472 |
412
- | 8,000 | train | 0.00043461 | 0.0385858 | 0.329107 | 0.0390204 |
413
- | 8,250 | train | 0.000463001 | 0.0375047 | 0.328955 | 0.0379677 |
414
- | 8,500 | train | 0.000490365 | 0.0364848 | 0.327765 | 0.0369752 |
415
- | 8,750 | train | 0.000516383 | 0.0353447 | 0.326591 | 0.0358611 |
416
- | 9,000 | train | 0.000542133 | 0.0337564 | 0.326274 | 0.0342986 |
417
- | 9,250 | train | 0.000566441 | 0.0317896 | 0.326647 | 0.0323561 |
418
- | 9,500 | train | 0.00059156 | 0.0303629 | 0.327955 | 0.0309545 |
419
- | 9,750 | train | 0.000617054 | 0.029228 | 0.328403 | 0.029845 |
420
- | 10,000 | train | 0.000643937 | 0.0284535 | 0.328355 | 0.0290974 |
421
- | 10,000 | validation | 0.000657947 | 0.0260919 | 0.32508 | 0.0267498 |
422
- | 10,250 | train | 0.000672574 | 0.0275567 | 0.328052 | 0.0282292 |
423
- | 10,500 | train | 0.000700996 | 0.0261262 | 0.327946 | 0.0268272 |
424
- | 10,750 | train | 0.000729222 | 0.0246666 | 0.328978 | 0.0253959 |
425
- | 11,000 | train | 0.000758259 | 0.0238358 | 0.329663 | 0.024594 |
426
- | 11,250 | train | 0.00078619 | 0.023251 | 0.330051 | 0.0240371 |
427
- | 11,500 | train | 0.000810028 | 0.0228033 | 0.330415 | 0.0236133 |
428
- | 11,750 | train | 0.000833413 | 0.022431 | 0.331116 | 0.0232644 |
429
- | 12,000 | train | 0.000857221 | 0.0219812 | 0.329954 | 0.0228384 |
430
- | 12,250 | train | 0.000880499 | 0.0216112 | 0.326382 | 0.0224917 |
431
- | 12,500 | train | 0.000900966 | 0.0212388 | 0.323979 | 0.0221398 |
432
- | 12,750 | train | 0.000917664 | 0.0208061 | 0.320318 | 0.0217238 |
433
- | 13,000 | train | 0.000932831 | 0.0202259 | 0.316983 | 0.0211588 |
434
- | 13,250 | train | 0.000947482 | 0.0195796 | 0.313323 | 0.0205271 |
435
- | 13,500 | train | 0.000960871 | 0.0189848 | 0.308389 | 0.0199457 |
436
- | 13,750 | train | 0.000971789 | 0.0184665 | 0.304401 | 0.0194383 |
437
- | 14,000 | train | 0.000979354 | 0.0179787 | 0.299604 | 0.018958 |
438
- | 14,250 | train | 0.000985524 | 0.0175798 | 0.295964 | 0.0185653 |
439
- | 14,500 | train | 0.000989819 | 0.0172036 | 0.29119 | 0.0181934 |
440
- | 14,750 | train | 0.000993485 | 0.0168885 | 0.287321 | 0.0178819 |
441
- | 15,000 | train | 0.000996516 | 0.0166043 | 0.283622 | 0.0176008 |
442
- | 15,000 | validation | 0.000998087 | 0.0148187 | 0.273925 | 0.0158168 |
443
- | 15,250 | train | 0.000999422 | 0.0163346 | 0.278942 | 0.017334 |
444
- | 15,500 | train | 0.00100173 | 0.0161199 | 0.275206 | 0.0171217 |
445
- | 15,625 | train | 0.00100299 | 0.0159609 | 0.272097 | 0.0169639 |
446
- | 15,625 | validation | 0.00100333 | 0.0144039 | 0.264462 | 0.0154072 |
447
-
448
- Tables use exact logged steps; missing values are — without carrying values forward. Repeated evaluations at one step use the latest logged value. Components average batch scalars weighted by examples; CE/PPL token metrics retain their valid-target weighting. Weight decay/CWD act in the optimizer, outside these forward losses.
449
-
450
- ---
451
-
452
- ## Limitations
453
-
454
- - **Token budget** — ~1.5 B tokens seen; below estimated optimum. Knowledge-intensive tasks
455
- will improve with more training.
456
- - **Gradient spike at step 40k** — Reorganized the attention pattern in layer 9 that
457
- previously captured long-range token correlations. A checkpoint from ~step 38k is expected
458
- to have better aggregate benchmark scores.
459
- - **PolyNorm exclusivity** — The quadratic branch has become partially redundant with the
460
- linear branch. Will be corrected in the next training run.
461
- - **Base model only** — Not instruction-tuned or aligned; purely a next-token-prediction
462
- base model.
463
-
464
- ---
465
-
466
- ## References
467
-
468
- All papers whose techniques are integrated into NeoLLM's architecture,
469
- training objective, or training stack:
470
-
471
- | Area | Technique | Paper title | Reference |
472
- |---|---|---|---|
473
- | Embeddings | Learnable Multipliers | Freeing the Scale of Language Model Matrix Layers | [arXiv:2601.04890](https://arxiv.org/abs/2601.04890) |
474
- | Embeddings | Leviathan | A Separable Architecture for Continuous Token Representation in Language Models | [arXiv:2601.22040](https://arxiv.org/abs/2601.22040) |
475
- | Embeddings / residual modulation | JTok / JTok-M | JTok: On Token Embedding as another Axis of Scaling Law via Joint Token Self-modulation | [arXiv:2602.00800](https://arxiv.org/abs/2602.00800) |
476
- | Embeddings | KHRONOS | KHRONOS: a Kernel-Based Neural Architecture for Rapid, Resource-Efficient Scientific Computation | [arXiv:2505.13315](https://arxiv.org/abs/2505.13315) |
477
- | Embeddings | Spelling Bee | Spelling Bee Embeddings for Language Modeling | [arXiv:2601.18030](https://arxiv.org/abs/2601.18030) |
478
- | Embeddings | Token embedding analysis | Token Embeddings Violate the Manifold Hypothesis | [arXiv:2504.01002](https://arxiv.org/abs/2504.01002) |
479
- | Attention / positions | FAN | Fourier Analysis Networks | [arXiv:2502.21309](https://arxiv.org/abs/2502.21309) |
480
- | Attention / positions | MEA | Explicit Multi-head Attention for Inter-head Interaction in Large Language Models | [arXiv:2601.19611](https://arxiv.org/abs/2601.19611) |
481
- | Attention / positions | LUCID | Attention with Preconditioned Representations | [arXiv:2602.10410](https://arxiv.org/abs/2602.10410) |
482
- | Attention / positions | Affine-Scaled Attention | Affine-Scaled Attention: Towards Flexible and Stable Transformer Attention | [arXiv:2602.23057](https://arxiv.org/abs/2602.23057) |
483
- | Attention / positions | XSA | Exclusive Self Attention | [arXiv:2603.09078](https://arxiv.org/abs/2603.09078) |
484
- | Attention / positions | Directional Routing | Directional Routing in Transformers | [arXiv:2603.14923](https://arxiv.org/abs/2603.14923) |
485
- | Attention / positions | Gated Attention | Gated Attention for Large Language Models: Non-linearity, Sparsity, and Attention-Sink-Free | [arXiv:2505.06708](https://arxiv.org/abs/2505.06708) |
486
- | Attention / positions | Momentum Attention | Momentum Attention | [arXiv:2411.03884](https://arxiv.org/abs/2411.03884) |
487
- | Attention / positions | IHA | Interleaved Head Attention | [arXiv:2602.21371](https://arxiv.org/abs/2602.21371) |
488
- | Attention / positions | REPO | Language Models with Context Re-Positioning | [arXiv:2512.14391](https://arxiv.org/abs/2512.14391) |
489
- | Attention / positions | GRAPE | Group Representational Position Encoding | [arXiv:2512.07805](https://arxiv.org/abs/2512.07805) |
490
- | Attention / positions | GOAT priors | You Need Better Attention Priors | [arXiv:2601.15380](https://arxiv.org/abs/2601.15380) |
491
- | Attention / positions | Hadamard o_proj | Rethinking Attention Output Projection: Structured Hadamard Transforms for Efficient Transformers | [arXiv:2603.08343](https://arxiv.org/abs/2603.08343) |
492
- | Residual / normalization | SeeDNorm | Self-Rescaled Dynamic Normalization | [arXiv:2510.22777](https://arxiv.org/abs/2510.22777) |
493
- | Residual / normalization | LNS | The Curse of Depth in LLMs | [arXiv:2502.05795](https://arxiv.org/abs/2502.05795) |
494
- | Residual / normalization | GPAS | Gradient-Preserving Activation Scaling | [arXiv:2506.22049](https://arxiv.org/abs/2506.22049) |
495
- | Residual / normalization | PolyNorm | PolyNorm / PolyCom | [arXiv:2602.04902](https://arxiv.org/abs/2602.04902) |
496
- | Residual / normalization | SimpleGPT | SimpleGPT | [arXiv:2602.01212](https://arxiv.org/abs/2602.01212) |
497
- | Residual / normalization | StackMemory / STACKTRANS | Recursive Transformer: Boosting Reasoning Ability with State Stack | [NeurIPS 2025](https://openreview.net/forum?id=2bbDg587uh) |
498
- | Residual / normalization | Attention Residuals | Attention Residuals | [arXiv:2603.15031](https://arxiv.org/abs/2603.15031) |
499
- | Residual / normalization | Linear Depth Memory | Depth Memory | [arXiv:2610.18809](https://arxiv.org/abs/2610.18809) |
500
- | Residual / normalization | LAUREL | LAUREL: Learned Augmented Residual Layer | [arXiv:2411.07501](https://arxiv.org/abs/2411.07501) |
501
- | Objectives | TWEO | Transformers Without Extreme Outliers Enables FP8 Training And Quantization For Dummies | [arXiv:2511.23225](https://arxiv.org/abs/2511.23225) |
502
- | Objectives | NITP | Next Implicit Token Prediction for LLM Pre-training | [arXiv:2605.24956](https://arxiv.org/abs/2605.24956) |
503
- | Objectives | NextLat | Next-Latent Prediction Transformers Learn Compact World Models | [arXiv:2511.05963](https://arxiv.org/abs/2511.05963) |
504
- | Optimizer / training | AdEMAMix | The AdEMAMix Optimizer: Better, Faster, Older | [arXiv:2409.03137](https://arxiv.org/abs/2409.03137) |
505
- | Optimizer / training | DeltaMomentum | DeltaMomentum: A Key-Value based Anisotropic Momentum Update via Delta Rule | [arXiv:2608.19491](https://arxiv.org/abs/2608.19491) |
506
- | Optimizer / training | BF16 + SR | Stochastic Rounding for LLM Training: Theory and Practice | [arXiv:2502.20566](https://arxiv.org/abs/2502.20566) |
507
- | Optimizer / training | CWD | Cautious Weight Decay | [arXiv:2510.12402](https://arxiv.org/abs/2510.12402) |
508
- | Optimizer / training | WD correction | Correction of Decoupled Weight Decay | [arXiv:2512.08217](https://arxiv.org/abs/2512.08217) |
509
- | Optimizer / training | AdamHD | AdamHD: Decoupled Huber Decay Regularization for Language Model Pre-Training | [arXiv:2511.14721](https://arxiv.org/abs/2511.14721) |
510
- | Optimizer / training | GradientStabilizer | GradientStabilizer | [arXiv:2502.17055](https://arxiv.org/abs/2502.17055) |
511
-
512
- ---
513
-
514
- ## Citation
515
-
516
- ```bibtex
517
- @misc{neollm2026,
518
- title = {NeoLLM: A Research Language Model Integrating Recent Attention and Normalization Techniques},
519
- author = {KitsuVp},
520
- year = {2026},
521
- url = {https://huggingface.co/KitsuVp/NeoLLM}
522
- }
523
- ```
524
-
525
- ---
526
-
527
- ## Author
528
-
529
- [@Kyokopom](https://x.com/Kyokopom) on X
530
-
531
- ---
532
-
533
- ## License
534
 
535
- Apache 2.0
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  ---
2
+ library_name: transformers
 
3
  tags:
4
+ - generated_from_trainer
5
+ model-index:
6
+ - name: NeoLLM
7
+ results: []
 
 
 
 
8
  ---
9
 
10
+ <!-- This model card has been generated automatically according to the information the Trainer had access to. You
11
+ should probably proofread and complete it, then remove this comment. -->
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
12
 
13
+ # NeoLLM
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
14
 
15
+ This model is a fine-tuned version of [](https://huggingface.co/) on an unknown dataset.
16
+ It achieves the following results on the evaluation set:
17
+ - Loss: 4.2561
18
+ - Ce: 3.3672
19
+ - Valid Targets: 6492925.0
20
+ - Ppl: 28.9981
21
+ - Mile Loss: 4.0048
22
+ - Mile Ppl: 54.8609
23
+ - Top1 Accuracy: 0.3331
24
+ - Top3 Accuracy: 0.5262
25
+ - Topk Valid Targets: 6492925.0
26
+ - Copy Gate Mean: 0.2493
27
+ - Copy Sink Mean: 0.6475
28
+ - Copy Effective Gate Mean: 0.1292
29
+ - Copy Target Responsibility Mean: 0.1285
30
+ - Copy Target In Context Fraction: 0.4683
31
+ - Copy Valid Targets: 6492925.0
32
+ - Ntp Loss: 4.0074
33
+ - Ntp Ce Unweighted: 3.3691
34
+ - Mile Reweighting Delta: 0.6374
35
+ - Mu Loss: 0.0009
36
+ - Tweo Loss: 1.1237
37
+ - Nitp Loss: 0.2374
38
+ - Total Model Loss: 4.2561
39
+ - Tweo Weighted Loss: 0.0112
40
+ - Nitp Weighted Loss: 0.2374
41
+ - Auxiliary Loss: 0.2486
42
+ - Regularization Loss: 0.0121
43
+
44
+ ## Model description
45
+
46
+ More information needed
47
+
48
+ ## Intended uses & limitations
49
+
50
+ More information needed
51
+
52
+ ## Training and evaluation data
53
+
54
+ More information needed
55
+
56
+ ## Training procedure
57
+
58
+ ### Training hyperparameters
59
+
60
+ The following hyperparameters were used during training:
61
+ - learning_rate: 0.001
62
+ - train_batch_size: 64
63
+ - eval_batch_size: 64
64
+ - seed: 42
65
+ - optimizer: Use OptimizerNames.ADAMW_TORCH_FUSED with betas=(0.9,0.999) and epsilon=1e-08 and optimizer_args=No additional optimizer arguments
66
+ - lr_scheduler_type: linear
67
+ - num_epochs: 1
68
+
69
+ ### Training results
70
+
71
+ | Training Loss | Epoch | Step | Validation Loss | Ce | Valid Targets | Ppl | Mile Loss | Mile Ppl | Top1 Accuracy | Top3 Accuracy | Topk Valid Targets | Copy Gate Mean | Copy Sink Mean | Copy Effective Gate Mean | Copy Target Responsibility Mean | Copy Target In Context Fraction | Copy Valid Targets | Ntp Loss | Ntp Ce Unweighted | Mile Reweighting Delta | Mu Loss | Tweo Loss | Nitp Loss | Total Model Loss | Tweo Weighted Loss | Nitp Weighted Loss | Auxiliary Loss | Regularization Loss |
72
+ |:-------------:|:------:|:-----:|:---------------:|:------:|:-------------:|:-------:|:---------:|:--------:|:-------------:|:-------------:|:------------------:|:--------------:|:--------------:|:------------------------:|:-------------------------------:|:-------------------------------:|:------------------:|:--------:|:-----------------:|:----------------------:|:-------:|:---------:|:---------:|:----------------:|:------------------:|:------------------:|:--------------:|:-------------------:|
73
+ | 5.5623 | 0.1067 | 5000 | 5.1801 | 4.1124 | 6492925.0 | 61.0942 | 4.6145 | 100.9357 | 0.2555 | 0.4331 | 6492925.0 | 0.4289 | 0.6045 | 0.1774 | 0.1726 | 0.4683 | 6492925.0 | 4.6162 | 4.1142 | 0.5019 | 0.0001 | 5.7731 | 0.5061 | 5.1801 | 0.0577 | 0.5061 | 0.5639 | 0.0579 |
74
+ | 5.3378 | 0.2133 | 10000 | 4.9372 | 3.8415 | 6492925.0 | 46.5945 | 4.4041 | 81.7885 | 0.2809 | 0.4659 | 6492925.0 | 0.3898 | 0.6092 | 0.1820 | 0.1681 | 0.4683 | 6492925.0 | 4.4061 | 3.8434 | 0.5624 | 0.0003 | 5.6008 | 0.4751 | 4.9372 | 0.0560 | 0.4751 | 0.5311 | 0.0563 |
75
+ | 5.2091 | 0.32 | 15000 | 4.8023 | 3.7193 | 6492925.0 | 41.2356 | 4.3075 | 74.2516 | 0.2950 | 0.4817 | 6492925.0 | 0.3557 | 0.6205 | 0.1729 | 0.1589 | 0.4683 | 6492925.0 | 4.3095 | 3.7212 | 0.5879 | 0.0004 | 5.5570 | 0.4372 | 4.8023 | 0.0556 | 0.4372 | 0.4927 | 0.0559 |
76
+ | 5.1124 | 0.4267 | 20000 | 4.6961 | 3.6465 | 6492925.0 | 38.3394 | 4.2348 | 69.0473 | 0.3054 | 0.4907 | 6492925.0 | 0.2779 | 0.5930 | 0.1518 | 0.1459 | 0.4683 | 6492925.0 | 4.2369 | 3.6484 | 0.5881 | 0.0005 | 5.4277 | 0.4049 | 4.6961 | 0.0543 | 0.4049 | 0.4592 | 0.0547 |
77
+ | 5.0308 | 0.5333 | 25000 | 4.6198 | 3.6012 | 6492925.0 | 36.6410 | 4.2007 | 66.7353 | 0.3106 | 0.4965 | 6492925.0 | 0.2541 | 0.5205 | 0.1590 | 0.1472 | 0.4683 | 6492925.0 | 4.2030 | 3.6031 | 0.5994 | 0.0006 | 5.2658 | 0.3641 | 4.6198 | 0.0527 | 0.3641 | 0.4168 | 0.0532 |
78
+ | 4.9496 | 0.64 | 30000 | 4.5487 | 3.5655 | 6492925.0 | 35.3588 | 4.1748 | 65.0274 | 0.3157 | 0.5014 | 6492925.0 | 0.2394 | 0.5551 | 0.1447 | 0.1410 | 0.4683 | 6492925.0 | 4.1771 | 3.5674 | 0.6091 | 0.0007 | 4.8056 | 0.3235 | 4.5487 | 0.0481 | 0.3235 | 0.3715 | 0.0487 |
79
+ | 4.8848 | 0.7467 | 35000 | 4.4774 | 3.5379 | 6492925.0 | 34.3941 | 4.1577 | 63.9257 | 0.3192 | 0.5051 | 6492925.0 | 0.2520 | 0.6144 | 0.1372 | 0.1356 | 0.4683 | 6492925.0 | 4.1602 | 3.5398 | 0.6196 | 0.0008 | 2.9723 | 0.2875 | 4.4774 | 0.0297 | 0.2875 | 0.3172 | 0.0305 |
80
+ | 4.7861 | 0.8533 | 40000 | 4.3861 | 3.4698 | 6492925.0 | 32.1316 | 4.0944 | 60.0019 | 0.3254 | 0.5135 | 6492925.0 | 0.2486 | 0.6187 | 0.1348 | 0.1325 | 0.4683 | 6492925.0 | 4.0969 | 3.4717 | 0.6244 | 0.0009 | 1.8954 | 0.2702 | 4.3861 | 0.0190 | 0.2702 | 0.2891 | 0.0198 |
81
+ | 4.6977 | 0.96 | 45000 | 4.2920 | 3.3954 | 6492925.0 | 29.8273 | 4.0284 | 56.1695 | 0.3311 | 0.5226 | 6492925.0 | 0.2494 | 0.6346 | 0.1323 | 0.1301 | 0.4683 | 6492925.0 | 4.0310 | 3.3973 | 0.6328 | 0.0009 | 1.2369 | 0.2486 | 4.2920 | 0.0124 | 0.2486 | 0.2610 | 0.0133 |
82
+ | 4.6639 | 1.0 | 46875 | 4.2561 | 3.3672 | 6492925.0 | 28.9981 | 4.0048 | 54.8609 | 0.3331 | 0.5262 | 6492925.0 | 0.2493 | 0.6475 | 0.1292 | 0.1285 | 0.4683 | 6492925.0 | 4.0074 | 3.3691 | 0.6374 | 0.0009 | 1.1237 | 0.2374 | 4.2561 | 0.0112 | 0.2374 | 0.2486 | 0.0121 |
83
+
84
+
85
+ ### Framework versions
86
+
87
+ - Transformers 5.22.1
88
+ - Pytorch 2.14.1+cu130
89
+ - Datasets 4.8.5
90
+ - Tokenizers 0.23.3
config.json CHANGED
@@ -159,7 +159,7 @@
159
  "use_ldm": false,
160
  "use_learnable_multipliers": true,
161
  "use_liger_kernel": false,
162
- "use_linear_attention": true,
163
  "use_lns": true,
164
  "use_lucid_attention": false,
165
  "use_mea_attention": false,
 
159
  "use_ldm": false,
160
  "use_learnable_multipliers": true,
161
  "use_liger_kernel": false,
162
+ "use_linear_attention": false,
163
  "use_lns": true,
164
  "use_lucid_attention": false,
165
  "use_mea_attention": false,
configuration_neollm.py CHANGED
@@ -928,7 +928,7 @@ class NeoLLMConfig(PretrainedConfig):
928
  # ── CKDA / GDN2 linear attention ──────────────────────────────────
929
  # Keyword-only to preserve positional compatibility with old configs.
930
  *,
931
- use_linear_attention=True, # None: infer; False: disable; True: require linear layers
932
  linear_attention_type="ckda", # "none", "ckda", or "gdn2"
933
  linear_attention_full_attention_every=3, # 2 linear + 1 full with 12 layers
934
  linear_attention_layer_types=None, # Optional per-layer list overrides type and interval
 
928
  # ── CKDA / GDN2 linear attention ──────────────────────────────────
929
  # Keyword-only to preserve positional compatibility with old configs.
930
  *,
931
+ use_linear_attention=False, # None: infer; False: disable; True: require linear layers
932
  linear_attention_type="ckda", # "none", "ckda", or "gdn2"
933
  linear_attention_full_attention_every=3, # 2 linear + 1 full with 12 layers
934
  linear_attention_layer_types=None, # Optional per-layer list overrides type and interval
model.safetensors CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:8c666754188dbc3b57032085b8cde44eceec966214a52c866d7c9ff807bc8d62
3
- size 170370368
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:8c21aa515e6c863fb4ae32c3608afc7b05650bda690b0fa3c13f33db8d87402f
3
+ size 170287752
optimizer_precision.json CHANGED
@@ -8,9 +8,9 @@
8
  "delta_enabled": false,
9
  "delta_eta": 0.37,
10
  "fp32_master_active": true,
11
- "fp32_master_elements": 85156584,
12
- "fp32_master_groups": 7,
13
- "fp32_master_tensors": 394,
14
  "fp32_passthrough_elements": 0,
15
  "mode": "fp32_master",
16
  "mxfp8_active": false,
@@ -19,12 +19,12 @@
19
  "mxfp8_recipe": null,
20
  "native_precision_elements": 0,
21
  "optimizer_variant": "AdEMAMix",
22
- "ordinary_linear_layers": 154,
23
  "parameter_elements_by_dtype": {
24
- "bfloat16": 85151608,
25
- "float32": 4976
26
  },
27
- "parameter_storage_bytes": 170323120,
28
  "runtime_precision_mode": "BF16_FP32_MASTER",
29
  "stochastic_round_seed": 0
30
  }
 
8
  "delta_enabled": false,
9
  "delta_eta": 0.37,
10
  "fp32_master_active": true,
11
+ "fp32_master_elements": 85119928,
12
+ "fp32_master_groups": 6,
13
+ "fp32_master_tensors": 368,
14
  "fp32_passthrough_elements": 0,
15
  "mode": "fp32_master",
16
  "mxfp8_active": false,
 
19
  "mxfp8_recipe": null,
20
  "native_precision_elements": 0,
21
  "optimizer_variant": "AdEMAMix",
22
+ "ordinary_linear_layers": 129,
23
  "parameter_elements_by_dtype": {
24
+ "bfloat16": 85117752,
25
+ "float32": 2176
26
  },
27
+ "parameter_storage_bytes": 170244208,
28
  "runtime_precision_mode": "BF16_FP32_MASTER",
29
  "stochastic_round_seed": 0
30
  }
training_args.bin CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:d8d26c6d915832ed5d12bba1b04ef7f4b39734e52d81feeb52dfb1cfd14fb06b
3
  size 5329
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:eb3d63cad8d3e7af0bd887c38a0f0039db493615f9a1ab89dd3a4ac86ebae0de
3
  size 5329