KitsuVp commited on
Commit
2c9bde9
·
verified ·
1 Parent(s): 9e91b5f

Model save

Browse files
README.md CHANGED
@@ -1,312 +1,78 @@
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 **89.17 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 28m** on **NVIDIA GeForce RTX 5090**.
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
- | Intermediate size | 1536 |
43
- | Vocabulary | LiquidAI/LFM2.5-1.2B-Thinking tokenizer (64,402 tokens) |
44
- | Context length | 512 tokens |
45
- | Leviathan | enabled=True; d_seed=128, modes=8, knots=16 |
46
- | JTok / JTok-M | enabled=True / True; Torch continuous surfaces, experts=5, top_k=2 |
47
-
48
- ### Parameter breakdown
49
-
50
- | Parameter bucket | Count |
51
- |---|---|
52
- | **Total parameters** | 89.17M (89,168,184) |
53
- | **Embedding parameters** (tied) | 32.97M (32,973,824) |
54
- | **Non-embedding parameters** | 56.19M (56,194,360) |
55
- | **Effective trainable parameters** | 89.17M (89,168,184) |
56
-
57
- > Weight tying is **enabled**: the input embedding matrix and the language-model head
58
- > share the same parameters, so the effective trainable budget is
59
- > `total − embed = 56.19M`.
60
-
61
- ### Integrated techniques
62
-
63
- NeoLLM combines architecture modules, optional auxiliary objectives, and
64
- training-time optimizer/stability components from the following papers.
65
 
66
- **Embedding and token representation**
67
-
68
- - **Learnable Multipliers** ([arXiv:2601.04890](https://arxiv.org/abs/2601.04890)) — Adds
69
- per-row and per-column learnable scalar parameters to selected matrix layers and, when
70
- enabled, embeddings.
71
- - **Leviathan** ([arXiv:2601.22040](https://arxiv.org/abs/2601.22040)) — Optional
72
- continuous token embedding generator that can replace the discrete input lookup table.
73
- - **Leviathan-JTok / JTok-M** ([arXiv:2602.00800](https://arxiv.org/abs/2602.00800)) —
74
- Optional continuous adaptation of JTok over the shared Leviathan coordinate. JTok
75
- applies one normalized surface as a multiplicative MLP gate; JTok-M routes a
76
- Sigmoid+TopK mixture of continuous surfaces and adds the paper's depth-scaled
77
- residual. Runtime ``jtok_kernel_backend`` selects the PyTorch reference or the
78
- CCE Triton adapter; the JTok surfaces remain outside MXFP8 conversion.
79
- - **KHRONOS** ([arXiv:2505.13315](https://arxiv.org/abs/2505.13315)) — Kernel/basis
80
- reference used by the Leviathan continuous token generator implementation.
81
- - **Spelling Bee Embeddings** ([arXiv:2601.18030](https://arxiv.org/abs/2601.18030)) —
82
- Augments token embeddings with character-level spelling information.
83
- - **Token Embedding Manifold analysis** ([arXiv:2504.01002](https://arxiv.org/abs/2504.01002)) —
84
- Reference motivation for treating token embeddings as structured objects rather than
85
- unconstrained lookup rows.
86
-
87
- **Attention, positions, and output projection**
88
-
89
- - **FAN** ([arXiv:2502.21309](https://arxiv.org/abs/2502.21309)) — Fourier Analysis Networks.
90
- A portion of the projection channels are dedicated to periodic cosine/sine features.
91
- - **MEA** ([arXiv:2601.19611](https://arxiv.org/abs/2601.19611)) — Explicit Multi-head
92
- Attention. Adds small learnable interaction matrices between attention heads for K and V.
93
- - **LUCID** ([arXiv:2602.10410](https://arxiv.org/abs/2602.10410)) — Applies a learned
94
- lower-triangular preconditioner to V before attention, decorrelating value representations
95
- across positions.
96
- - **Affine-Scaled Attention** ([arXiv:2602.23057](https://arxiv.org/abs/2602.23057)) — Adds
97
- two learnable per-head scalars (α and β) to the softmax weights:
98
- `[α·softmax(QKᵀ) + β]·V`.
99
- - **XSA** ([arXiv:2603.09078](https://arxiv.org/abs/2603.09078)) — Exclusive Self Attention.
100
- After computing attention, removes the component of the output aligned with the token's
101
- own value vector.
102
- - **Directional Routing** ([arXiv:2603.14923](https://arxiv.org/abs/2603.14923)) — Each head
103
- learns K=4 directions in the output space; a learned router suppresses the attention output
104
- along each direction per input.
105
- - **Gated Attention** ([arXiv:2505.06708](https://arxiv.org/abs/2505.06708)) — A sigmoid gate
106
- is applied to the attention output before the output projection, introducing non-linearity
107
- and preventing attention sinks.
108
- - **Momentum Attention** ([arXiv:2411.03884](https://arxiv.org/abs/2411.03884)) — Modifies Q
109
- and K by subtracting a fraction of the previous position's Q and K values (causal
110
- first-difference).
111
- - **Interleaved Head Attention / IHA** ([arXiv:2602.21371](https://arxiv.org/abs/2602.21371)) —
112
- Builds pseudo-heads from learned cross-head mixtures to create multiple attention patterns
113
- per original head.
114
- - **REPO** ([arXiv:2512.14391](https://arxiv.org/abs/2512.14391)) — Context re-positioning
115
- module that learns contextual position coordinates above a configurable start layer.
116
- - **GRAPE** ([arXiv:2512.07805](https://arxiv.org/abs/2512.07805)) — Group representational
117
- position encoding used by the REPO-GRAPE positional path.
118
- - **GOAT priors** ([arXiv:2601.15380](https://arxiv.org/abs/2601.15380)) — Optional
119
- factorized attention log-prior channels inspired by trainable attention priors.
120
- - **Hadamard output projection** ([arXiv:2603.08343](https://arxiv.org/abs/2603.08343)) —
121
- Replaces dense attention output projection with a structured Hadamard transform plus
122
- lightweight scaling.
123
-
124
- **Normalization, residual flow, and MLP**
125
-
126
- - **SeeDNorm** ([arXiv:2510.22777](https://arxiv.org/abs/2510.22777)) — Applied to Q and K
127
- projections. Dynamically rescales normalization from the input's own statistics.
128
- - **LayerNorm Scaling / LNS** ([arXiv:2502.05795](https://arxiv.org/abs/2502.05795)) — Each
129
- layer's output is scaled by 1/√ℓ where ℓ is the layer index.
130
- - **GPAS** ([arXiv:2506.22049](https://arxiv.org/abs/2506.22049)) — Gradient-Preserving
131
- Activation Scaling for residual junctions.
132
- - **PolyNorm** ([arXiv:2602.04902](https://arxiv.org/abs/2602.04902)) — Replaces the standard
133
- MLP activation with normalized linear, quadratic, and cubic branches.
134
- - **SimpleGPT** ([arXiv:2602.01212](https://arxiv.org/abs/2602.01212)) — Second-order
135
- geometry-inspired normalization strategy applied inside MLP projections.
136
- - **StackMemory / STACKTRANS** ([NeurIPS 2025](https://openreview.net/forum?id=2bbDg587uh)) —
137
- Optional differentiable hidden-state stack between decoder layers.
138
- - **Attention Residuals / AttnRes** ([arXiv:2603.15031](https://arxiv.org/abs/2603.15031)) —
139
- Optional learned depth-wise aggregation over previous layer outputs or block summaries.
140
- - **LAUREL** ([arXiv:2411.07501](https://arxiv.org/abs/2411.07501)) — Optional learned
141
- augmented residual layer with residual-weight and low-rank variants.
142
-
143
- **Training objectives and training-time regularizers**
144
-
145
- - **Cut Cross Entropy** ([Apple repository](https://github.com/apple/ml-cross-entropy)) —
146
- Memory-efficient next-token loss that avoids materializing the full token-by-vocabulary
147
- logits tensor. NeoLLM remains compatible with the upstream package when the extensions
148
- below are disabled.
149
- - **MiLe Loss** ([arXiv:2310.19531](https://arxiv.org/abs/2310.19531)) — Optional detached,
150
- mean-normalized predictive-entropy weighting of token losses, implemented inside the
151
- extended CCE path.
152
- - **Output Embedding Centering / mu-loss**
153
- ([arXiv:2601.02031](https://arxiv.org/abs/2601.02031)) — Optional
154
- `lambda * ||mean(output_embeddings)||^2` regularizer for output-logit stability.
155
- - **MEAP** ([arXiv:2502.07490](https://arxiv.org/abs/2502.07490)) — Optional training-only
156
- input corruption that masks a fixed fraction of eligible tokens while preserving clean
157
- next-token labels, causal attention, and the inference path.
158
- - **TWEO** ([arXiv:2511.23225](https://arxiv.org/abs/2511.23225)) — Optional
159
- Transformers Without Extreme Outliers activation regularizer for FP8/low-bit-friendly
160
- training.
161
- - **NITP** ([arXiv:2605.24956](https://arxiv.org/abs/2605.24956)) — Optional Next Implicit
162
- Token Prediction auxiliary objective using shallow-layer implicit token targets and a
163
- cosine loss.
164
- - **NextLat** ([arXiv:2511.05963](https://arxiv.org/abs/2511.05963)) — Optional next-latent
165
- prediction objective using latent dynamics, Smooth L1 supervision, and frozen-head KL.
166
-
167
- ### Optional extended-CCE configuration
168
-
169
- | Feature | Enabled | Value |
170
- |---|---:|---:|
171
- | MiLe Loss | True | gamma=1.0 |
172
- | mu-loss | True | lambda=0.0001 |
173
- | MEAP | True | ratio=0.15 |
174
-
175
- MiLe, mu-loss, and MEAP require the extended
176
- [`Kitsunp/ml-cross-entropy`](https://github.com/Kitsunp/ml-cross-entropy) package only when
177
- their corresponding flags are enabled. With all flags disabled, NeoLLM calls upstream CCE
178
- without extension-specific arguments. When any extension is active, CCE reports three compact
179
- scalars: unweighted NTP cross entropy, the MiLe reweighting delta, and the mu-loss penalty.
180
- Their sum reconstructs `ntp_loss` exactly. MEAP reports its eligible and selected counts from
181
- the masking kernel; the trainer logs the selected count and exact fraction. No diagnostic path
182
- materializes full-vocabulary logits or a token mask outside the kernels.
183
-
184
- **Optimizer and training stability**
185
-
186
- - **Adam-family optimizer mode** — Active variant: **AdEMAMix**.
187
- **AdEMAMix** ([arXiv:2409.03137](https://arxiv.org/abs/2409.03137)) contributes the optional
188
- beta3 slow-memory branch when `ADEMAMIX=True`. **DeltaMomentum**
189
- ([arXiv:2608.19491](https://arxiv.org/abs/2608.19491)) optionally replaces only the fast beta1
190
- first-moment update on hidden Linear weights when `DELTA=True`; beta2 remains Adam's
191
- ordinary squared-gradient EMA in every mode.
192
- - **BF16 stochastic rounding** ([arXiv:2502.20566](https://arxiv.org/abs/2502.20566)) —
193
- Optional master-free BF16 model update with stochastic rather than nearest rounding; the same
194
- write-back path is shared by AdamW, DeltaAdamW, AdEMAMix, and DeltaAdEMAMix.
195
- - **Cautious Weight Decay** ([arXiv:2510.12402](https://arxiv.org/abs/2510.12402)) —
196
- Sign-selective weight decay variant used by the custom optimizer logic.
197
- - **Correction of Decoupled Weight Decay** ([arXiv:2512.08217](https://arxiv.org/abs/2512.08217)) —
198
- Adapts decoupled weight decay during learning-rate decay.
199
- - **AdamHD** ([arXiv:2511.14721](https://arxiv.org/abs/2511.14721)) —
200
- Decoupled Huber decay regularization reference used by the optimizer.
201
- - **GradientStabilizer** ([arXiv:2502.17055](https://arxiv.org/abs/2502.17055)) —
202
- Active; repository per-parameter tensor norms; bias correction=True; no stabilizer warmup; EMA state stored in optimizer checkpoints.
203
- ---
204
-
205
- ## Training
206
-
207
- | Setting | Value |
208
- |---|---|
209
- | Dataset | FineWeb-Edu (sample-10BT) |
210
- | Tokens seen | ~0.51B (15,625 steps × batch 64 × length 512) |
211
- | Precision | BF16 model state (bfloat16: 89,166,008 elements, float32: 2,176 elements) + optimizer policy unavailable |
212
- | Optimizer | AdEMAMix |
213
- | Gradient transform | Active; repository per-parameter tensor norms; bias correction=True; no stabilizer warmup; EMA state stored in optimizer checkpoints |
214
- | Learning rate | 1e-03 with 4,000-step linear warmup |
215
- | Weight decay | coefficients [0.005, 0.01, 0.1]; WD 6/6 groups; CWD 3; Huber 0; Correction 0 |
216
- | Training time | ~1h 28m |
217
- | Hardware | NVIDIA GeForce RTX 5090 |
218
-
219
- ### Training curve
220
-
221
- | Step | Train Loss | Val Loss |
222
- |---|---|---|
223
- | 5,000 | 5.721 | 5.302 |
224
- | 10,000 | 5.452 | 5.006 |
225
- | 15,000 | 5.272 | 4.808 |
226
- | 15,625 | — | 4.786 |
227
-
228
- ---
229
-
230
- ## Limitations
231
-
232
- - **Token budget** — ~1.5 B tokens seen; below estimated optimum. Knowledge-intensive tasks
233
- will improve with more training.
234
- - **Gradient spike at step 40k** — Reorganized the attention pattern in layer 9 that
235
- previously captured long-range token correlations. A checkpoint from ~step 38k is expected
236
- to have better aggregate benchmark scores.
237
- - **PolyNorm exclusivity** — The quadratic branch has become partially redundant with the
238
- linear branch. Will be corrected in the next training run.
239
- - **Base model only** — Not instruction-tuned or aligned; purely a next-token-prediction
240
- base model.
241
-
242
- ---
243
-
244
- ## References
245
-
246
- All papers whose techniques are integrated into NeoLLM's architecture,
247
- training objective, or training stack:
248
-
249
- | Area | Technique | Paper title | Reference |
250
- |---|---|---|---|
251
- | Embeddings | Learnable Multipliers | Freeing the Scale of Language Model Matrix Layers | [arXiv:2601.04890](https://arxiv.org/abs/2601.04890) |
252
- | Embeddings | Leviathan | A Separable Architecture for Continuous Token Representation in Language Models | [arXiv:2601.22040](https://arxiv.org/abs/2601.22040) |
253
- | 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) |
254
- | Embeddings | KHRONOS | KHRONOS: a Kernel-Based Neural Architecture for Rapid, Resource-Efficient Scientific Computation | [arXiv:2505.13315](https://arxiv.org/abs/2505.13315) |
255
- | Embeddings | Spelling Bee | Spelling Bee Embeddings for Language Modeling | [arXiv:2601.18030](https://arxiv.org/abs/2601.18030) |
256
- | Embeddings | Token embedding analysis | Token Embeddings Violate the Manifold Hypothesis | [arXiv:2504.01002](https://arxiv.org/abs/2504.01002) |
257
- | Attention / positions | FAN | Fourier Analysis Networks | [arXiv:2502.21309](https://arxiv.org/abs/2502.21309) |
258
- | Attention / positions | MEA | Explicit Multi-head Attention for Inter-head Interaction in Large Language Models | [arXiv:2601.19611](https://arxiv.org/abs/2601.19611) |
259
- | Attention / positions | LUCID | Attention with Preconditioned Representations | [arXiv:2602.10410](https://arxiv.org/abs/2602.10410) |
260
- | Attention / positions | Affine-Scaled Attention | Affine-Scaled Attention: Towards Flexible and Stable Transformer Attention | [arXiv:2602.23057](https://arxiv.org/abs/2602.23057) |
261
- | Attention / positions | XSA | Exclusive Self Attention | [arXiv:2603.09078](https://arxiv.org/abs/2603.09078) |
262
- | Attention / positions | Directional Routing | Directional Routing in Transformers | [arXiv:2603.14923](https://arxiv.org/abs/2603.14923) |
263
- | 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) |
264
- | Attention / positions | Momentum Attention | Momentum Attention | [arXiv:2411.03884](https://arxiv.org/abs/2411.03884) |
265
- | Attention / positions | IHA | Interleaved Head Attention | [arXiv:2602.21371](https://arxiv.org/abs/2602.21371) |
266
- | Attention / positions | REPO | Language Models with Context Re-Positioning | [arXiv:2512.14391](https://arxiv.org/abs/2512.14391) |
267
- | Attention / positions | GRAPE | Group Representational Position Encoding | [arXiv:2512.07805](https://arxiv.org/abs/2512.07805) |
268
- | Attention / positions | GOAT priors | You Need Better Attention Priors | [arXiv:2601.15380](https://arxiv.org/abs/2601.15380) |
269
- | Attention / positions | Hadamard o_proj | Rethinking Attention Output Projection: Structured Hadamard Transforms for Efficient Transformers | [arXiv:2603.08343](https://arxiv.org/abs/2603.08343) |
270
- | Residual / normalization | SeeDNorm | Self-Rescaled Dynamic Normalization | [arXiv:2510.22777](https://arxiv.org/abs/2510.22777) |
271
- | Residual / normalization | LNS | The Curse of Depth in LLMs | [arXiv:2502.05795](https://arxiv.org/abs/2502.05795) |
272
- | Residual / normalization | GPAS | Gradient-Preserving Activation Scaling | [arXiv:2506.22049](https://arxiv.org/abs/2506.22049) |
273
- | Residual / normalization | PolyNorm | PolyNorm / PolyCom | [arXiv:2602.04902](https://arxiv.org/abs/2602.04902) |
274
- | Residual / normalization | SimpleGPT | SimpleGPT | [arXiv:2602.01212](https://arxiv.org/abs/2602.01212) |
275
- | Residual / normalization | StackMemory / STACKTRANS | Recursive Transformer: Boosting Reasoning Ability with State Stack | [NeurIPS 2025](https://openreview.net/forum?id=2bbDg587uh) |
276
- | Residual / normalization | Attention Residuals | Attention Residuals | [arXiv:2603.15031](https://arxiv.org/abs/2603.15031) |
277
- | Residual / normalization | LAUREL | LAUREL: Learned Augmented Residual Layer | [arXiv:2411.07501](https://arxiv.org/abs/2411.07501) |
278
- | Objectives | TWEO | Transformers Without Extreme Outliers Enables FP8 Training And Quantization For Dummies | [arXiv:2511.23225](https://arxiv.org/abs/2511.23225) |
279
- | Objectives | NITP | Next Implicit Token Prediction for LLM Pre-training | [arXiv:2605.24956](https://arxiv.org/abs/2605.24956) |
280
- | Objectives | NextLat | Next-Latent Prediction Transformers Learn Compact World Models | [arXiv:2511.05963](https://arxiv.org/abs/2511.05963) |
281
- | Optimizer / training | AdEMAMix | The AdEMAMix Optimizer: Better, Faster, Older | [arXiv:2409.03137](https://arxiv.org/abs/2409.03137) |
282
- | Optimizer / training | DeltaMomentum | DeltaMomentum: A Key-Value based Anisotropic Momentum Update via Delta Rule | [arXiv:2608.19491](https://arxiv.org/abs/2608.19491) |
283
- | Optimizer / training | BF16 + SR | Stochastic Rounding for LLM Training: Theory and Practice | [arXiv:2502.20566](https://arxiv.org/abs/2502.20566) |
284
- | Optimizer / training | CWD | Cautious Weight Decay | [arXiv:2510.12402](https://arxiv.org/abs/2510.12402) |
285
- | Optimizer / training | WD correction | Correction of Decoupled Weight Decay | [arXiv:2512.08217](https://arxiv.org/abs/2512.08217) |
286
- | Optimizer / training | AdamHD | AdamHD: Decoupled Huber Decay Regularization for Language Model Pre-Training | [arXiv:2511.14721](https://arxiv.org/abs/2511.14721) |
287
- | Optimizer / training | GradientStabilizer | GradientStabilizer | [arXiv:2502.17055](https://arxiv.org/abs/2502.17055) |
288
-
289
- ---
290
-
291
- ## Citation
292
-
293
- ```bibtex
294
- @misc{neollm2026,
295
- title = {NeoLLM: A Research Language Model Integrating Recent Attention and Normalization Techniques},
296
- author = {KitsuVp},
297
- year = {2026},
298
- url = {https://huggingface.co/KitsuVp/NeoLLM}
299
- }
300
- ```
301
-
302
- ---
303
-
304
- ## Author
305
-
306
- [@Kyokopom](https://x.com/Kyokopom) on X
307
-
308
- ---
309
-
310
- ## License
311
 
312
- 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.7246
18
+ - Ce: 3.6781
19
+ - Valid Targets: 2083162.0
20
+ - Ppl: 39.5722
21
+ - Mile Loss: 4.3050
22
+ - Mile Ppl: 74.0700
23
+ - Top1 Accuracy: 0.3333
24
+ - Top3 Accuracy: 0.4934
25
+ - Topk Valid Targets: 2083162.0
26
+ - Ntp Loss: 4.3064
27
+ - Ntp Ce Unweighted: 3.6786
28
+ - Mile Reweighting Delta: 0.6268
29
+ - Mu Loss: 0.0010
30
+ - Tweo Loss: 0.0521
31
+ - Nitp Loss: 0.4177
32
+ - Total Model Loss: 4.7246
33
+ - Tweo Weighted Loss: 0.0005
34
+ - Nitp Weighted Loss: 0.4177
35
+ - Auxiliary Loss: 0.4183
36
+ - Regularization Loss: 0.0015
37
+
38
+ ## Model description
39
+
40
+ More information needed
41
+
42
+ ## Intended uses & limitations
43
+
44
+ More information needed
45
+
46
+ ## Training and evaluation data
47
+
48
+ More information needed
49
+
50
+ ## Training procedure
51
+
52
+ ### Training hyperparameters
53
+
54
+ The following hyperparameters were used during training:
55
+ - learning_rate: 0.001
56
+ - train_batch_size: 64
57
+ - eval_batch_size: 64
58
+ - seed: 42
59
+ - optimizer: Use OptimizerNames.ADAMW_TORCH_FUSED with betas=(0.9,0.999) and epsilon=1e-08 and optimizer_args=No additional optimizer arguments
60
+ - lr_scheduler_type: linear
61
+ - num_epochs: 1
62
+
63
+ ### Training results
64
+
65
+ | Training Loss | Epoch | Step | Validation Loss | Ce | Valid Targets | Ppl | Mile Loss | Mile Ppl | Top1 Accuracy | Top3 Accuracy | Topk 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 |
66
+ |:-------------:|:-----:|:-----:|:---------------:|:------:|:-------------:|:-------:|:---------:|:--------:|:-------------:|:-------------:|:------------------:|:--------:|:-----------------:|:----------------------:|:-------:|:---------:|:---------:|:----------------:|:------------------:|:------------------:|:--------------:|:-------------------:|
67
+ | 5.6578 | 0.32 | 5000 | 5.2354 | 4.2068 | 2083162.0 | 67.1415 | 4.7663 | 117.4795 | 0.2826 | 0.4308 | 2083162.0 | 4.7669 | 4.2072 | 0.5594 | 0.0003 | 0.1404 | 0.4671 | 5.2354 | 0.0014 | 0.4671 | 0.4685 | 0.0017 |
68
+ | 5.3755 | 0.64 | 10000 | 4.9153 | 3.9128 | 2083162.0 | 50.0411 | 4.5054 | 90.5008 | 0.3101 | 0.4651 | 2083162.0 | 4.5065 | 3.9133 | 0.5925 | 0.0007 | 0.0969 | 0.4079 | 4.9153 | 0.0010 | 0.4079 | 0.4088 | 0.0017 |
69
+ | 5.2147 | 0.96 | 15000 | 4.7451 | 3.7053 | 2083162.0 | 40.6616 | 4.3234 | 75.4442 | 0.3306 | 0.4903 | 2083162.0 | 4.3248 | 3.7058 | 0.6180 | 0.0010 | 0.0559 | 0.4198 | 4.7451 | 0.0006 | 0.4198 | 0.4204 | 0.0015 |
70
+ | 5.1882 | 1.0 | 15625 | 4.7246 | 3.6781 | 2083162.0 | 39.5722 | 4.3050 | 74.0700 | 0.3333 | 0.4934 | 2083162.0 | 4.3064 | 3.6786 | 0.6268 | 0.0010 | 0.0521 | 0.4177 | 4.7246 | 0.0005 | 0.4177 | 0.4183 | 0.0015 |
71
+
72
+
73
+ ### Framework versions
74
+
75
+ - Transformers 5.20.2
76
+ - Pytorch 2.14.1+cu130
77
+ - Datasets 4.8.5
78
+ - Tokenizers 0.23.3
config.json CHANGED
@@ -13,6 +13,13 @@
13
  },
14
  "bos_token_id": 1,
15
  "cce_loss_impl": "cce_kahan_full_c",
 
 
 
 
 
 
 
16
  "directional_routing_k": 4,
17
  "directional_routing_temp": 3.0,
18
  "dropout_rate": 0.1,
@@ -100,12 +107,13 @@
100
  "siamese_attn_x_scale_init": 1.0,
101
  "siamese_depth_scaling": true,
102
  "siamese_normalized_input": true,
 
103
  "stack_d_model": 24,
104
  "stack_entropy_loss_weight": 0.001,
105
  "stack_memory_cache_size": 2048,
106
  "stack_slots": 16,
107
  "tie_word_embeddings": false,
108
- "transformers_version": "5.19.0",
109
  "tweo_eps": 1e-06,
110
  "tweo_loss_weight": 0.01,
111
  "tweo_power": 4.0,
@@ -113,6 +121,7 @@
113
  "use_affine_scaled_attention": false,
114
  "use_attn_res": false,
115
  "use_cache": false,
 
116
  "use_directional_routing": false,
117
  "use_embedding_input_norm": true,
118
  "use_embedding_multipliers": false,
@@ -121,8 +130,8 @@
121
  "use_hadamard_o_proj": true,
122
  "use_hola_memory": false,
123
  "use_iha": false,
124
- "use_jtok": true,
125
- "use_jtokm": true,
126
  "use_laurel": false,
127
  "use_laurel_lr": false,
128
  "use_laurel_rw": false,
@@ -138,6 +147,7 @@
138
  "use_nextlat": false,
139
  "use_nitp": true,
140
  "use_nitp_temporal": false,
 
141
  "use_repo": true,
142
  "use_repo_goat_prior": false,
143
  "use_repo_grape": true,
@@ -145,6 +155,7 @@
145
  "use_spelling_bee_embeddings": false,
146
  "use_stack_memory": false,
147
  "use_token_generator": true,
 
148
  "use_tweo": true,
149
  "use_xsa": true,
150
  "vocab_size": 64402,
 
13
  },
14
  "bos_token_id": 1,
15
  "cce_loss_impl": "cce_kahan_full_c",
16
+ "dagformer": {
17
+ "input_source": "tokens",
18
+ "local_dim": 128,
19
+ "predictor_dim": 256,
20
+ "predictor_heads": 4,
21
+ "predictor_layers": 2
22
+ },
23
  "directional_routing_k": 4,
24
  "directional_routing_temp": 3.0,
25
  "dropout_rate": 0.1,
 
107
  "siamese_attn_x_scale_init": 1.0,
108
  "siamese_depth_scaling": true,
109
  "siamese_normalized_input": true,
110
+ "siamesenorm_kernel_backend": "reference",
111
  "stack_d_model": 24,
112
  "stack_entropy_loss_weight": 0.001,
113
  "stack_memory_cache_size": 2048,
114
  "stack_slots": 16,
115
  "tie_word_embeddings": false,
116
+ "transformers_version": "5.20.2",
117
  "tweo_eps": 1e-06,
118
  "tweo_loss_weight": 0.01,
119
  "tweo_power": 4.0,
 
121
  "use_affine_scaled_attention": false,
122
  "use_attn_res": false,
123
  "use_cache": false,
124
+ "use_dagformer": false,
125
  "use_directional_routing": false,
126
  "use_embedding_input_norm": true,
127
  "use_embedding_multipliers": false,
 
130
  "use_hadamard_o_proj": true,
131
  "use_hola_memory": false,
132
  "use_iha": false,
133
+ "use_jtok": false,
134
+ "use_jtokm": false,
135
  "use_laurel": false,
136
  "use_laurel_lr": false,
137
  "use_laurel_rw": false,
 
147
  "use_nextlat": false,
148
  "use_nitp": true,
149
  "use_nitp_temporal": false,
150
+ "use_perplexity_metrics": true,
151
  "use_repo": true,
152
  "use_repo_goat_prior": false,
153
  "use_repo_grape": true,
 
155
  "use_spelling_bee_embeddings": false,
156
  "use_stack_memory": false,
157
  "use_token_generator": true,
158
+ "use_topk_metrics": true,
159
  "use_tweo": true,
160
  "use_xsa": true,
161
  "vocab_size": 64402,
generation_config.json CHANGED
@@ -7,5 +7,5 @@
7
  "output_attentions": false,
8
  "output_hidden_states": false,
9
  "pad_token_id": 0,
10
- "transformers_version": "5.19.0"
11
  }
 
7
  "output_attentions": false,
8
  "output_hidden_states": false,
9
  "pad_token_id": 0,
10
+ "transformers_version": "5.20.2"
11
  }
model.safetensors CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:7b8cd2f6ec1920648d7aa6306be0b0540bc733ea8ba4ca70b4282d5cadd2b0c9
3
- size 178393360
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b4910e940a8b4c99e5efeb5ac241d7c30d65f42dd964ddb11fb246e52ead76e3
3
+ size 169184776
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": 89168184,
12
- "fp32_master_groups": 7,
13
- "fp32_master_tensors": 438,
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": 136,
23
  "parameter_elements_by_dtype": {
24
- "bfloat16": 89166008,
25
  "float32": 2176
26
  },
27
- "parameter_storage_bytes": 178340720,
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": 84567992,
12
+ "fp32_master_groups": 6,
13
+ "fp32_master_tensors": 374,
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": 124,
23
  "parameter_elements_by_dtype": {
24
+ "bfloat16": 84565816,
25
  "float32": 2176
26
  },
27
+ "parameter_storage_bytes": 169140336,
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:49714f0c202e94d255e45ec649e3055f1a0ec0107b5d4b6d42e15da36f344726
3
  size 5329
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:43965fb73dc2d925bceee6982d939c9058b6c1831af2c457ff5265b2b6d3ba41
3
  size 5329