Model save
Browse files- README.md +78 -529
- config.json +4 -4
- model.safetensors +2 -2
- optimizer_precision.json +5 -5
- training_args.bin +1 -1
README.md
CHANGED
|
@@ -1,535 +1,84 @@
|
|
| 1 |
---
|
| 2 |
-
|
| 3 |
-
license: apache-2.0
|
| 4 |
tags:
|
| 5 |
-
-
|
| 6 |
-
-
|
| 7 |
-
-
|
| 8 |
-
|
| 9 |
-
- normalization
|
| 10 |
-
- neollm
|
| 11 |
-
datasets:
|
| 12 |
-
- HuggingFaceFW/fineweb-edu
|
| 13 |
---
|
| 14 |
|
| 15 |
-
|
| 16 |
-
|
| 17 |
-
NeoLLM is a **84.57 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 05m** 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 |
-
| 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=False / False; Torch continuous surfaces, experts=5, top_k=2 |
|
| 47 |
-
| DAGFormer | enabled=False; {'predictor_dim': 256, 'predictor_layers': 2, 'predictor_heads': 4, 'local_dim': 128, 'input_source': 'tokens'} |
|
| 48 |
-
| Linear Depth Memory | enabled=False; groups=8, key dimension=8; shared branch history when combined with SiameseNorm |
|
| 49 |
-
| Virtual Head Attention | enabled=False; query/KV heads follow the configured geometry |
|
| 50 |
-
| Copy-Paste LM | enabled=False; causal vocabulary/pointer mixture |
|
| 51 |
-
|
| 52 |
-
### Parameter breakdown
|
| 53 |
-
|
| 54 |
-
| Parameter bucket | Count |
|
| 55 |
-
|---|---|
|
| 56 |
-
| **Total parameters** | 84.57M (84,567,992) |
|
| 57 |
-
| **Embedding parameters** (tied) | 32.97M (32,973,824) |
|
| 58 |
-
| **Non-embedding parameters** | 51.59M (51,594,168) |
|
| 59 |
-
| **Effective trainable parameters** | 84.57M (84,567,992) |
|
| 60 |
-
|
| 61 |
-
> Weight tying is **enabled**: the input embedding matrix and the language-model head
|
| 62 |
-
> share the same parameters, so the effective trainable budget is
|
| 63 |
-
> `total − embed = 51.59M`.
|
| 64 |
-
|
| 65 |
-
### Integrated techniques
|
| 66 |
-
|
| 67 |
-
NeoLLM combines architecture modules, optional auxiliary objectives, and
|
| 68 |
-
training-time optimizer/stability components from the following papers.
|
| 69 |
-
|
| 70 |
-
**Embedding and token representation**
|
| 71 |
-
|
| 72 |
-
- **Learnable Multipliers** ([arXiv:2601.04890](https://arxiv.org/abs/2601.04890)) — Adds
|
| 73 |
-
per-row and per-column learnable scalar parameters to selected matrix layers and, when
|
| 74 |
-
enabled, embeddings.
|
| 75 |
-
- **Leviathan** ([arXiv:2601.22040](https://arxiv.org/abs/2601.22040)) — Optional
|
| 76 |
-
continuous token embedding generator that can replace the discrete input lookup table.
|
| 77 |
-
- **Leviathan-JTok / JTok-M** ([arXiv:2602.00800](https://arxiv.org/abs/2602.00800)) —
|
| 78 |
-
Optional continuous adaptation of JTok over the shared Leviathan coordinate. JTok
|
| 79 |
-
applies one normalized surface as a multiplicative MLP gate; JTok-M routes a
|
| 80 |
-
Sigmoid+TopK mixture of continuous surfaces and adds the paper's depth-scaled
|
| 81 |
-
residual. Runtime ``jtok_kernel_backend`` selects the PyTorch reference or the
|
| 82 |
-
CCE Triton adapter; the JTok surfaces remain outside MXFP8 conversion.
|
| 83 |
-
- **KHRONOS** ([arXiv:2505.13315](https://arxiv.org/abs/2505.13315)) — Kernel/basis
|
| 84 |
-
reference used by the Leviathan continuous token generator implementation.
|
| 85 |
-
- **Spelling Bee Embeddings** ([arXiv:2601.18030](https://arxiv.org/abs/2601.18030)) —
|
| 86 |
-
Augments token embeddings with character-level spelling information.
|
| 87 |
-
- **Token Embedding Manifold analysis** ([arXiv:2504.01002](https://arxiv.org/abs/2504.01002)) —
|
| 88 |
-
Reference motivation for treating token embeddings as structured objects rather than
|
| 89 |
-
unconstrained lookup rows.
|
| 90 |
-
|
| 91 |
-
**Attention, positions, and output projection**
|
| 92 |
-
|
| 93 |
-
- **Virtual Head Attention** ([arXiv:2610.17959](https://arxiv.org/abs/2610.17959)) — Optional
|
| 94 |
-
group-specific query premix and low-rank head postmix. NeoLLM shares its gated query
|
| 95 |
-
projection across corresponding head slots in KV groups and applies postmix after the gate; inference weights are
|
| 96 |
-
not automatically folded into standard GQA projections.
|
| 97 |
-
- **Copy-Paste LM** ([arXiv:2610.19247](https://arxiv.org/abs/2610.19247)) — Optional
|
| 98 |
-
causal pointer and sink mixed with the vocabulary distribution. CUDA training
|
| 99 |
-
uses CCE's sparse Copy-Paste kernels; inference returns dense mixed logits.
|
| 100 |
-
- **FAN** ([arXiv:2502.21309](https://arxiv.org/abs/2502.21309)) — Fourier Analysis Networks.
|
| 101 |
-
A portion of the projection channels are dedicated to periodic cosine/sine features.
|
| 102 |
-
- **MEA** ([arXiv:2601.19611](https://arxiv.org/abs/2601.19611)) — Explicit Multi-head
|
| 103 |
-
Attention. Adds small learnable interaction matrices between attention heads for K and V.
|
| 104 |
-
- **LUCID** ([arXiv:2602.10410](https://arxiv.org/abs/2602.10410)) — Applies a learned
|
| 105 |
-
lower-triangular preconditioner to V before attention, decorrelating value representations
|
| 106 |
-
across positions.
|
| 107 |
-
- **Affine-Scaled Attention** ([arXiv:2602.23057](https://arxiv.org/abs/2602.23057)) — Adds
|
| 108 |
-
two learnable per-head scalars (α and β) to the softmax weights:
|
| 109 |
-
`[α·softmax(QKᵀ) + β]·V`.
|
| 110 |
-
- **XSA** ([arXiv:2603.09078](https://arxiv.org/abs/2603.09078)) — Exclusive Self Attention.
|
| 111 |
-
After computing attention, removes the component of the output aligned with the token's
|
| 112 |
-
own value vector.
|
| 113 |
-
- **Directional Routing** ([arXiv:2603.14923](https://arxiv.org/abs/2603.14923)) — Each head
|
| 114 |
-
learns K=4 directions in the output space; a learned router suppresses the attention output
|
| 115 |
-
along each direction per input.
|
| 116 |
-
- **Gated Attention** ([arXiv:2505.06708](https://arxiv.org/abs/2505.06708)) — A sigmoid gate
|
| 117 |
-
is applied to the attention output before the output projection, introducing non-linearity
|
| 118 |
-
and preventing attention sinks.
|
| 119 |
-
- **Momentum Attention** ([arXiv:2411.03884](https://arxiv.org/abs/2411.03884)) — Modifies Q
|
| 120 |
-
and K by subtracting a fraction of the previous position's Q and K values (causal
|
| 121 |
-
first-difference).
|
| 122 |
-
- **Interleaved Head Attention / IHA** ([arXiv:2602.21371](https://arxiv.org/abs/2602.21371)) —
|
| 123 |
-
Builds pseudo-heads from learned cross-head mixtures to create multiple attention patterns
|
| 124 |
-
per original head.
|
| 125 |
-
- **REPO** ([arXiv:2512.14391](https://arxiv.org/abs/2512.14391)) — Context re-positioning
|
| 126 |
-
module that learns contextual position coordinates above a configurable start layer.
|
| 127 |
-
- **GRAPE** ([arXiv:2512.07805](https://arxiv.org/abs/2512.07805)) — Group representational
|
| 128 |
-
position encoding used by the REPO-GRAPE positional path.
|
| 129 |
-
- **GOAT priors** ([arXiv:2601.15380](https://arxiv.org/abs/2601.15380)) — Optional
|
| 130 |
-
factorized attention log-prior channels inspired by trainable attention priors.
|
| 131 |
-
- **Hadamard output projection** ([arXiv:2603.08343](https://arxiv.org/abs/2603.08343)) —
|
| 132 |
-
Replaces dense attention output projection with a structured Hadamard transform plus
|
| 133 |
-
lightweight scaling.
|
| 134 |
-
|
| 135 |
-
**Normalization, residual flow, and MLP**
|
| 136 |
-
|
| 137 |
-
- **SeeDNorm** ([arXiv:2510.22777](https://arxiv.org/abs/2510.22777)) — Applied to Q and K
|
| 138 |
-
projections. Dynamically rescales normalization from the input's own statistics.
|
| 139 |
-
- **LayerNorm Scaling / LNS** ([arXiv:2502.05795](https://arxiv.org/abs/2502.05795)) — Each
|
| 140 |
-
layer's output is scaled by 1/√ℓ where ℓ is the layer index.
|
| 141 |
-
- **GPAS** ([arXiv:2506.22049](https://arxiv.org/abs/2506.22049)) — Gradient-Preserving
|
| 142 |
-
Activation Scaling for residual junctions.
|
| 143 |
-
- **PolyNorm** ([arXiv:2602.04902](https://arxiv.org/abs/2602.04902)) — Replaces the standard
|
| 144 |
-
MLP activation with normalized linear, quadratic, and cubic branches.
|
| 145 |
-
- **SimpleGPT** ([arXiv:2602.01212](https://arxiv.org/abs/2602.01212)) — Second-order
|
| 146 |
-
geometry-inspired normalization strategy applied inside MLP projections.
|
| 147 |
-
- **StackMemory / STACKTRANS** ([NeurIPS 2025](https://openreview.net/forum?id=2bbDg587uh)) —
|
| 148 |
-
Optional differentiable hidden-state stack between decoder layers.
|
| 149 |
-
- **Attention Residuals / AttnRes** ([arXiv:2603.15031](https://arxiv.org/abs/2603.15031)) —
|
| 150 |
-
Optional learned depth-wise aggregation over previous layer outputs or block summaries.
|
| 151 |
-
- **LAUREL** ([arXiv:2411.07501](https://arxiv.org/abs/2411.07501)) — Optional learned
|
| 152 |
-
augmented residual layer with residual-weight and low-rank variants.
|
| 153 |
-
|
| 154 |
-
**Training objectives and training-time regularizers**
|
| 155 |
-
|
| 156 |
-
- **Cut Cross Entropy** ([Apple repository](https://github.com/apple/ml-cross-entropy)) —
|
| 157 |
-
Memory-efficient next-token loss that avoids materializing the full token-by-vocabulary
|
| 158 |
-
logits tensor. NeoLLM remains compatible with the upstream package when the extensions
|
| 159 |
-
below are disabled.
|
| 160 |
-
- **MiLe Loss** ([arXiv:2310.19531](https://arxiv.org/abs/2310.19531)) — Optional detached,
|
| 161 |
-
mean-normalized predictive-entropy weighting of token losses, implemented inside the
|
| 162 |
-
extended CCE path.
|
| 163 |
-
- **Output Embedding Centering / mu-loss**
|
| 164 |
-
([arXiv:2601.02031](https://arxiv.org/abs/2601.02031)) — Optional
|
| 165 |
-
`lambda * ||mean(output_embeddings)||^2` regularizer for output-logit stability.
|
| 166 |
-
- **MEAP** ([arXiv:2502.07490](https://arxiv.org/abs/2502.07490)) — Optional training-only
|
| 167 |
-
input corruption that masks a fixed fraction of eligible tokens while preserving clean
|
| 168 |
-
next-token labels, causal attention, and the inference path.
|
| 169 |
-
- **TWEO** ([arXiv:2511.23225](https://arxiv.org/abs/2511.23225)) — Optional
|
| 170 |
-
Transformers Without Extreme Outliers activation regularizer for FP8/low-bit-friendly
|
| 171 |
-
training.
|
| 172 |
-
- **NITP** ([arXiv:2605.24956](https://arxiv.org/abs/2605.24956)) — Optional Next Implicit
|
| 173 |
-
Token Prediction auxiliary objective using shallow-layer implicit token targets and a
|
| 174 |
-
cosine loss.
|
| 175 |
-
- **NextLat** ([arXiv:2511.05963](https://arxiv.org/abs/2511.05963)) — Optional next-latent
|
| 176 |
-
prediction objective using latent dynamics, Smooth L1 supervision, and frozen-head KL.
|
| 177 |
-
|
| 178 |
-
### Optional extended-CCE configuration
|
| 179 |
-
|
| 180 |
-
| Feature | Enabled | Value |
|
| 181 |
-
|---|---:|---:|
|
| 182 |
-
| MiLe Loss | True | gamma=1.0 |
|
| 183 |
-
| mu-loss | True | lambda=0.0001 |
|
| 184 |
-
| MEAP | True | ratio=0.15 |
|
| 185 |
-
|
| 186 |
-
MiLe, mu-loss, and MEAP require the extended cut-cross-entropy package when their corresponding flags are enabled. With all three disabled, NeoLLM calls upstream CCE without extension-specific arguments.
|
| 187 |
-
[`Kitsunp/ml-cross-entropy`](https://github.com/Kitsunp/ml-cross-entropy) supplies the extended kernels.
|
| 188 |
-
When any extension is active, CCE reports three compact
|
| 189 |
-
scalars: unweighted NTP cross entropy, the MiLe reweighting delta, and the mu-loss penalty.
|
| 190 |
-
Their sum reconstructs `ntp_loss` exactly. MEAP reports its eligible and selected counts from
|
| 191 |
-
the masking kernel; the trainer logs the selected count and exact fraction. No diagnostic path materializes full-vocabulary logits or a token mask outside the kernels.
|
| 192 |
-
|
| 193 |
-
**Optimizer and training stability**
|
| 194 |
-
|
| 195 |
-
- **Adam-family optimizer mode** — Active variant: **AdEMAMix**.
|
| 196 |
-
**AdEMAMix** ([arXiv:2409.03137](https://arxiv.org/abs/2409.03137)) contributes the optional
|
| 197 |
-
beta3 slow-memory branch when `ADEMAMIX=True`. **DeltaMomentum**
|
| 198 |
-
([arXiv:2608.19491](https://arxiv.org/abs/2608.19491)) optionally replaces only the fast beta1
|
| 199 |
-
first-moment update on hidden Linear weights when `DELTA=True`; beta2 remains Adam's
|
| 200 |
-
ordinary squared-gradient EMA in every mode.
|
| 201 |
-
- **BF16 stochastic rounding** ([arXiv:2502.20566](https://arxiv.org/abs/2502.20566)) —
|
| 202 |
-
Optional master-free BF16 model update with stochastic rather than nearest rounding; the same
|
| 203 |
-
write-back path is shared by AdamW, DeltaAdamW, AdEMAMix, and DeltaAdEMAMix.
|
| 204 |
-
- **Cautious Weight Decay** ([arXiv:2510.12402](https://arxiv.org/abs/2510.12402)) —
|
| 205 |
-
Sign-selective weight decay variant used by the custom optimizer logic.
|
| 206 |
-
- **Correction of Decoupled Weight Decay** ([arXiv:2512.08217](https://arxiv.org/abs/2512.08217)) —
|
| 207 |
-
Adapts decoupled weight decay during learning-rate decay.
|
| 208 |
-
- **AdamHD** ([arXiv:2511.14721](https://arxiv.org/abs/2511.14721)) —
|
| 209 |
-
Decoupled Huber decay regularization reference used by the optimizer.
|
| 210 |
-
- **Gradient conditioning** — CAST active; history-adaptive spectral/norm policies by optimizer group; 5208 committed updates.
|
| 211 |
-
References: [CAST](https://arxiv.org/abs/2610.19761),
|
| 212 |
-
[GradientStabilizer](https://arxiv.org/abs/2502.17055).
|
| 213 |
-
---
|
| 214 |
-
|
| 215 |
-
## Training
|
| 216 |
-
|
| 217 |
-
| Setting | Value |
|
| 218 |
-
|---|---|
|
| 219 |
-
| Dataset | FineWeb-Edu (sample-10BT) |
|
| 220 |
-
| Tokens seen | ~0.51B (15,625 steps × batch 64 × length 512) |
|
| 221 |
-
| Precision | BF16 model state (bfloat16: 84,565,816 elements, float32: 2,176 elements) + AdEMAMix FP32 master active; stochastic rounding disabled |
|
| 222 |
-
| Optimizer | AdEMAMix |
|
| 223 |
-
| Gradient transform | CAST active; history-adaptive spectral/norm policies by optimizer group; 5208 committed updates |
|
| 224 |
-
| Learning rate | 1e-03 with 4,000-step linear warmup |
|
| 225 |
-
| Patch transition | Reset optimizer/conditioner at step 10,417; per-phase LR warmup; restarted AdEMAMix warmup fitted to each phase |
|
| 226 |
-
| Weight decay | coefficients [0.005, 0.01, 0.1]; WD 5/5 groups; CWD 2; Huber 0; Correction 0 |
|
| 227 |
-
| Training time | ~1h 05m |
|
| 228 |
-
| Hardware | NVIDIA RTX PRO 6000 Blackwell Server Edition |
|
| 229 |
-
|
| 230 |
|
| 231 |
-
#
|
| 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.1389 | — | 12.1389 | — |
|
| 238 |
-
| 250 | 7.98201 | — | 7.97185 | — |
|
| 239 |
-
| 500 | 7.81187 | — | 7.79567 | — |
|
| 240 |
-
| 750 | 7.68458 | — | 7.66603 | — |
|
| 241 |
-
| 1,000 | 7.60568 | — | 7.58512 | — |
|
| 242 |
-
| 1,250 | 7.55586 | — | 7.5336 | — |
|
| 243 |
-
| 1,500 | 7.52279 | — | 7.4985 | — |
|
| 244 |
-
| 1,750 | 7.49397 | — | 7.46859 | — |
|
| 245 |
-
| 2,000 | 7.46912 | — | 7.442 | — |
|
| 246 |
-
| 2,250 | 7.45625 | — | 7.42709 | — |
|
| 247 |
-
| 2,500 | 7.4223 | — | 7.39181 | — |
|
| 248 |
-
| 2,750 | 7.40078 | — | 7.3695 | — |
|
| 249 |
-
| 3,000 | 7.38591 | — | 7.35374 | — |
|
| 250 |
-
| 3,250 | 7.36801 | — | 7.33416 | — |
|
| 251 |
-
| 3,500 | 7.35368 | — | 7.3189 | — |
|
| 252 |
-
| 3,750 | 7.33075 | — | 7.29491 | — |
|
| 253 |
-
| 4,000 | 7.31505 | — | 7.27878 | — |
|
| 254 |
-
| 4,250 | 7.29996 | — | 7.26238 | — |
|
| 255 |
-
| 4,500 | 7.285 | — | 7.24703 | — |
|
| 256 |
-
| 4,750 | 7.2642 | — | 7.22509 | — |
|
| 257 |
-
| 5,000 | 7.23908 | 7.37795 | 7.19911 | 7.32346 |
|
| 258 |
-
| 5,250 | 7.22418 | — | 7.18371 | — |
|
| 259 |
-
| 5,500 | 7.21138 | — | 7.16986 | — |
|
| 260 |
-
| 5,750 | 7.19068 | — | 7.1479 | — |
|
| 261 |
-
| 6,000 | 7.17464 | — | 7.13095 | — |
|
| 262 |
-
| 6,250 | 7.16397 | — | 7.12018 | — |
|
| 263 |
-
| 6,500 | 7.14833 | — | 7.10474 | — |
|
| 264 |
-
| 6,750 | 7.14106 | — | 7.09624 | — |
|
| 265 |
-
| 7,000 | 7.12509 | — | 7.07998 | — |
|
| 266 |
-
| 7,250 | 7.12046 | — | 7.07473 | ��� |
|
| 267 |
-
| 7,500 | 7.11547 | — | 7.06928 | — |
|
| 268 |
-
| 7,750 | 7.10348 | — | 7.05701 | — |
|
| 269 |
-
| 8,000 | 7.09825 | — | 7.05018 | — |
|
| 270 |
-
| 8,250 | 7.08208 | — | 7.03349 | — |
|
| 271 |
-
| 8,500 | 7.07402 | — | 7.02515 | — |
|
| 272 |
-
| 8,750 | 7.06957 | — | 7.01997 | — |
|
| 273 |
-
| 9,000 | 7.05336 | — | 7.00369 | — |
|
| 274 |
-
| 9,250 | 7.03475 | — | 6.98337 | — |
|
| 275 |
-
| 9,500 | 7.02346 | — | 6.97189 | — |
|
| 276 |
-
| 9,750 | 7.0177 | — | 6.9663 | — |
|
| 277 |
-
| 10,000 | 6.99797 | 7.18215 | 6.94473 | 7.10898 |
|
| 278 |
-
| 10,250 | 6.9905 | — | 6.93698 | — |
|
| 279 |
-
| 10,500 | 6.843 | — | 6.74639 | — |
|
| 280 |
-
| 10,750 | 5.99854 | — | 5.71293 | — |
|
| 281 |
-
| 11,000 | 5.84056 | — | 5.51851 | — |
|
| 282 |
-
| 11,250 | 5.76222 | — | 5.4185 | — |
|
| 283 |
-
| 11,500 | 5.70637 | — | 5.34297 | — |
|
| 284 |
-
| 11,750 | 5.65901 | — | 5.28121 | — |
|
| 285 |
-
| 12,000 | 5.6265 | — | 5.23588 | — |
|
| 286 |
-
| 12,250 | 5.59507 | — | 5.19298 | — |
|
| 287 |
-
| 12,500 | 5.55902 | — | 5.14764 | — |
|
| 288 |
-
| 12,750 | 5.54703 | — | 5.12462 | — |
|
| 289 |
-
| 13,000 | 5.51924 | — | 5.09024 | — |
|
| 290 |
-
| 13,250 | 5.504 | — | 5.06769 | — |
|
| 291 |
-
| 13,500 | 5.4858 | — | 5.04223 | — |
|
| 292 |
-
| 13,750 | 5.48291 | — | 5.03625 | — |
|
| 293 |
-
| 14,000 | 5.46335 | — | 5.01327 | — |
|
| 294 |
-
| 14,250 | 5.45402 | — | 5.00111 | — |
|
| 295 |
-
| 14,500 | 5.4451 | — | 4.98759 | — |
|
| 296 |
-
| 14,750 | 5.42588 | — | 4.96101 | — |
|
| 297 |
-
| 15,000 | 5.41424 | 5.03226 | 4.9464 | 4.46093 |
|
| 298 |
-
| 15,250 | 5.38022 | — | 4.90862 | — |
|
| 299 |
-
| 15,500 | 5.35956 | — | 4.88272 | — |
|
| 300 |
-
| 15,625 | 5.33575 | 4.97132 | 4.85713 | 4.38465 |
|
| 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.1797 | — | 11.1797 | — |
|
| 309 |
-
| 250 | 7.70108 | — | 7.71124 | — |
|
| 310 |
-
| 500 | 7.37505 | — | 7.39125 | — |
|
| 311 |
-
| 750 | 7.23219 | — | 7.25074 | — |
|
| 312 |
-
| 1,000 | 7.14555 | — | 7.16612 | — |
|
| 313 |
-
| 1,250 | 7.08309 | — | 7.10535 | — |
|
| 314 |
-
| 1,500 | 7.03722 | — | 7.0615 | — |
|
| 315 |
-
| 1,750 | 6.9924 | — | 7.01777 | — |
|
| 316 |
-
| 2,000 | 6.95729 | — | 6.98441 | — |
|
| 317 |
-
| 2,250 | 6.93361 | — | 6.96278 | — |
|
| 318 |
-
| 2,500 | 6.89767 | — | 6.92817 | — |
|
| 319 |
-
| 2,750 | 6.87287 | — | 6.90415 | — |
|
| 320 |
-
| 3,000 | 6.85143 | — | 6.8836 | — |
|
| 321 |
-
| 3,250 | 6.82904 | — | 6.8629 | — |
|
| 322 |
-
| 3,500 | 6.81154 | — | 6.84631 | — |
|
| 323 |
-
| 3,750 | 6.7845 | — | 6.82033 | — |
|
| 324 |
-
| 4,000 | 6.7686 | — | 6.80487 | — |
|
| 325 |
-
| 4,250 | 6.75048 | — | 6.78806 | — |
|
| 326 |
-
| 4,500 | 6.73372 | — | 6.7717 | — |
|
| 327 |
-
| 4,750 | 6.7133 | — | 6.7524 | — |
|
| 328 |
-
| 5,000 | 6.68841 | 6.6384 | 6.72839 | 6.69289 |
|
| 329 |
-
| 5,250 | 6.67467 | — | 6.71514 | — |
|
| 330 |
-
| 5,500 | 6.66282 | — | 6.70434 | — |
|
| 331 |
-
| 5,750 | 6.64317 | — | 6.68594 | — |
|
| 332 |
-
| 6,000 | 6.63009 | — | 6.67378 | — |
|
| 333 |
-
| 6,250 | 6.62017 | — | 6.66396 | — |
|
| 334 |
-
| 6,500 | 6.60509 | — | 6.64868 | — |
|
| 335 |
-
| 6,750 | 6.59749 | — | 6.64231 | — |
|
| 336 |
-
| 7,000 | 6.58083 | — | 6.62593 | — |
|
| 337 |
-
| 7,250 | 6.5746 | — | 6.62033 | — |
|
| 338 |
-
| 7,500 | 6.56903 | — | 6.61522 | — |
|
| 339 |
-
| 7,750 | 6.55685 | — | 6.60332 | — |
|
| 340 |
-
| 8,000 | 6.54717 | — | 6.59525 | — |
|
| 341 |
-
| 8,250 | 6.53205 | — | 6.58064 | — |
|
| 342 |
-
| 8,500 | 6.52331 | — | 6.57218 | — |
|
| 343 |
-
| 8,750 | 6.5171 | — | 6.5667 | — |
|
| 344 |
-
| 9,000 | 6.50062 | — | 6.55029 | — |
|
| 345 |
-
| 9,250 | 6.48063 | — | 6.53201 | — |
|
| 346 |
-
| 9,500 | 6.46869 | — | 6.52026 | — |
|
| 347 |
-
| 9,750 | 6.46465 | — | 6.51605 | — |
|
| 348 |
-
| 10,000 | 6.44384 | 6.4122 | 6.49709 | 6.48536 |
|
| 349 |
-
| 10,250 | 6.43573 | — | 6.48926 | — |
|
| 350 |
-
| 10,500 | 6.21725 | — | 6.31387 | — |
|
| 351 |
-
| 10,750 | 5.25332 | — | 5.53894 | — |
|
| 352 |
-
| 11,000 | 5.07612 | — | 5.39817 | — |
|
| 353 |
-
| 11,250 | 4.97318 | — | 5.31689 | — |
|
| 354 |
-
| 11,500 | 4.89312 | — | 5.25652 | — |
|
| 355 |
-
| 11,750 | 4.82637 | — | 5.20417 | — |
|
| 356 |
-
| 12,000 | 4.77527 | — | 5.16589 | — |
|
| 357 |
-
| 12,250 | 4.72859 | — | 5.13068 | — |
|
| 358 |
-
| 12,500 | 4.67986 | — | 5.09124 | — |
|
| 359 |
-
| 12,750 | 4.65348 | — | 5.07588 | — |
|
| 360 |
-
| 13,000 | 4.61638 | — | 5.04537 | — |
|
| 361 |
-
| 13,250 | 4.59109 | — | 5.02739 | — |
|
| 362 |
-
| 13,500 | 4.5643 | — | 5.00787 | — |
|
| 363 |
-
| 13,750 | 4.55635 | — | 5.00301 | — |
|
| 364 |
-
| 14,000 | 4.5327 | — | 4.98277 | — |
|
| 365 |
-
| 14,250 | 4.51994 | — | 4.97285 | — |
|
| 366 |
-
| 14,500 | 4.50645 | — | 4.96395 | — |
|
| 367 |
-
| 14,750 | 4.48103 | — | 4.9459 | — |
|
| 368 |
-
| 15,000 | 4.46639 | 4.0033 | 4.93423 | 4.57464 |
|
| 369 |
-
| 15,250 | 4.43047 | — | 4.90207 | — |
|
| 370 |
-
| 15,500 | 4.40561 | — | 4.88245 | — |
|
| 371 |
-
| 15,625 | 4.38098 | 3.93488 | 4.85961 | 4.52155 |
|
| 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.18928e-10 | 8.85302e-07 | 0.959145 | 8.8562e-07 |
|
| 380 |
-
| 250 | train | 5.77321e-06 | 0.00087901 | 0.269885 | 0.000884783 |
|
| 381 |
-
| 500 | train | 1.43175e-05 | 0.000500945 | 0.420108 | 0.000515263 |
|
| 382 |
-
| 750 | train | 2.48131e-05 | 0.000619018 | 0.433192 | 0.000643831 |
|
| 383 |
-
| 1,000 | train | 3.74588e-05 | 0.000851164 | 0.438676 | 0.000888622 |
|
| 384 |
-
| 1,250 | train | 5.11827e-05 | 0.00112427 | 0.449326 | 0.00117545 |
|
| 385 |
-
| 1,500 | train | 6.47691e-05 | 0.00153667 | 0.459677 | 0.00160144 |
|
| 386 |
-
| 1,750 | train | 7.67406e-05 | 0.00191231 | 0.474208 | 0.00198905 |
|
| 387 |
-
| 2,000 | train | 8.72836e-05 | 0.0021987 | 0.482433 | 0.00228598 |
|
| 388 |
-
| 2,250 | train | 9.8353e-05 | 0.00237857 | 0.491002 | 0.00247692 |
|
| 389 |
-
| 2,500 | train | 0.000110801 | 0.0025349 | 0.491486 | 0.0026457 |
|
| 390 |
-
| 2,750 | train | 0.000124411 | 0.00264942 | 0.493857 | 0.00277383 |
|
| 391 |
-
| 3,000 | train | 0.000139189 | 0.00260965 | 0.499559 | 0.00274885 |
|
| 392 |
-
| 3,250 | train | 0.000156565 | 0.00285461 | 0.502105 | 0.00301117 |
|
| 393 |
-
| 3,500 | train | 0.000175885 | 0.00258826 | 0.504605 | 0.00276415 |
|
| 394 |
-
| 3,750 | train | 0.000197083 | 0.0024854 | 0.507733 | 0.00268249 |
|
| 395 |
-
| 4,000 | train | 0.000219011 | 0.00235012 | 0.507615 | 0.00256913 |
|
| 396 |
-
| 4,250 | train | 0.000245202 | 0.00226336 | 0.509393 | 0.00250856 |
|
| 397 |
-
| 4,500 | train | 0.000274499 | 0.00235763 | 0.510672 | 0.00263213 |
|
| 398 |
-
| 4,750 | train | 0.000307991 | 0.00194718 | 0.509539 | 0.00225517 |
|
| 399 |
-
| 5,000 | train | 0.000345114 | 0.00177116 | 0.508583 | 0.00211627 |
|
| 400 |
-
| 5,000 | validation | 0.000365396 | 0.00882081 | 0.675876 | 0.0091862 |
|
| 401 |
-
| 5,250 | train | 0.000386967 | 0.0016488 | 0.506997 | 0.00203576 |
|
| 402 |
-
| 5,500 | train | 0.000430528 | 0.00147078 | 0.505146 | 0.00190131 |
|
| 403 |
-
| 5,750 | train | 0.00047628 | 0.00137825 | 0.502882 | 0.00185453 |
|
| 404 |
-
| 6,000 | train | 0.000526616 | 0.00132051 | 0.499018 | 0.00184713 |
|
| 405 |
-
| 6,250 | train | 0.000575462 | 0.00124181 | 0.498193 | 0.00181728 |
|
| 406 |
-
| 6,500 | train | 0.000623088 | 0.00115507 | 0.497874 | 0.00177816 |
|
| 407 |
-
| 6,750 | train | 0.000668097 | 0.0011365 | 0.496952 | 0.0018046 |
|
| 408 |
-
| 7,000 | train | 0.000705407 | 0.00112174 | 0.497326 | 0.00182715 |
|
| 409 |
-
| 7,250 | train | 0.000734961 | 0.00108176 | 0.498316 | 0.00181672 |
|
| 410 |
-
| 7,500 | train | 0.000765161 | 0.00106831 | 0.498418 | 0.00183347 |
|
| 411 |
-
| 7,750 | train | 0.000799848 | 0.00101314 | 0.498347 | 0.00181299 |
|
| 412 |
-
| 8,000 | train | 0.000837485 | 0.00350294 | 0.498661 | 0.00434042 |
|
| 413 |
-
| 8,250 | train | 0.00087259 | 0.000966043 | 0.499607 | 0.00183863 |
|
| 414 |
-
| 8,500 | train | 0.000900815 | 0.000879673 | 0.500062 | 0.00178049 |
|
| 415 |
-
| 8,750 | train | 0.000921038 | 0.000843696 | 0.501104 | 0.00176473 |
|
| 416 |
-
| 9,000 | train | 0.000937911 | 0.000811567 | 0.501322 | 0.00174948 |
|
| 417 |
-
| 9,250 | train | 0.000951546 | 0.000733545 | 0.501052 | 0.00168509 |
|
| 418 |
-
| 9,500 | train | 0.00096614 | 0.00067595 | 0.501561 | 0.00164209 |
|
| 419 |
-
| 9,750 | train | 0.000979469 | 0.000626824 | 0.500042 | 0.00160629 |
|
| 420 |
-
| 10,000 | train | 0.000989486 | 0.000584204 | 0.499306 | 0.00157369 |
|
| 421 |
-
| 10,000 | validation | 0.000992938 | 0.00224879 | 0.693543 | 0.00324173 |
|
| 422 |
-
| 10,250 | train | 0.000994433 | 0.000535531 | 0.499715 | 0.00152996 |
|
| 423 |
-
| 10,500 | train | 0.000998153 | 0.000950822 | 0.527189 | 0.00194898 |
|
| 424 |
-
| 10,750 | train | 0.00100991 | 0.000895329 | 0.457701 | 0.00190524 |
|
| 425 |
-
| 11,000 | train | 0.00100598 | 0.000529556 | 0.440856 | 0.00153554 |
|
| 426 |
-
| 11,250 | train | 0.000994464 | 0.000420516 | 0.443913 | 0.00141498 |
|
| 427 |
-
| 11,500 | train | 0.000980495 | 0.000373817 | 0.448493 | 0.00135431 |
|
| 428 |
-
| 11,750 | train | 0.00096843 | 0.000338886 | 0.453531 | 0.00130732 |
|
| 429 |
-
| 12,000 | train | 0.000955185 | 0.000313992 | 0.459346 | 0.00126918 |
|
| 430 |
-
| 12,250 | train | 0.000938976 | 0.00029757 | 0.463152 | 0.00123655 |
|
| 431 |
-
| 12,500 | train | 0.000923241 | 0.00029515 | 0.466564 | 0.00121839 |
|
| 432 |
-
| 12,750 | train | 0.000910699 | 0.00029568 | 0.469939 | 0.00120638 |
|
| 433 |
-
| 13,000 | train | 0.000901795 | 0.000289766 | 0.472676 | 0.00119156 |
|
| 434 |
-
| 13,250 | train | 0.000895763 | 0.000289525 | 0.475419 | 0.00118529 |
|
| 435 |
-
| 13,500 | train | 0.000890323 | 0.000296688 | 0.476742 | 0.00118701 |
|
| 436 |
-
| 13,750 | train | 0.000883409 | 0.000321699 | 0.478695 | 0.00120511 |
|
| 437 |
-
| 14,000 | train | 0.000875354 | 0.000351263 | 0.479347 | 0.00122662 |
|
| 438 |
-
| 14,250 | train | 0.000868868 | 0.000385058 | 0.479916 | 0.00125393 |
|
| 439 |
-
| 14,500 | train | 0.000864959 | 0.000425899 | 0.479851 | 0.00129086 |
|
| 440 |
-
| 14,750 | train | 0.000864657 | 0.0004665 | 0.478648 | 0.00133116 |
|
| 441 |
-
| 15,000 | train | 0.000866869 | 0.000491292 | 0.478646 | 0.00135816 |
|
| 442 |
-
| 15,000 | validation | 0.000868212 | 0.000531857 | 0.456224 | 0.00140007 |
|
| 443 |
-
| 15,250 | train | 0.000870422 | 0.000489456 | 0.476793 | 0.00135988 |
|
| 444 |
-
| 15,500 | train | 0.000874222 | 0.000472985 | 0.475759 | 0.00134721 |
|
| 445 |
-
| 15,625 | train | 0.000876855 | 0.000457783 | 0.474811 | 0.00133464 |
|
| 446 |
-
| 15,625 | validation | 0.000877582 | 0.000495893 | 0.448396 | 0.00137348 |
|
| 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 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 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. -->
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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-tuned version of [](https://huggingface.co/) on an unknown dataset.
|
| 16 |
+
It achieves the following results on the evaluation set:
|
| 17 |
+
- Loss: 4.7779
|
| 18 |
+
- Ce: 3.8108
|
| 19 |
+
- Valid Targets: 2083162.0
|
| 20 |
+
- Ppl: 45.1865
|
| 21 |
+
- Mile Loss: 4.3798
|
| 22 |
+
- Mile Ppl: 79.8214
|
| 23 |
+
- Top1 Accuracy: 0.2906
|
| 24 |
+
- Top3 Accuracy: 0.4693
|
| 25 |
+
- Topk Valid Targets: 2083162.0
|
| 26 |
+
- Copy Gate Mean: 0.2952
|
| 27 |
+
- Copy Sink Mean: 0.6072
|
| 28 |
+
- Copy Effective Gate Mean: 0.1513
|
| 29 |
+
- Copy Target Responsibility Mean: 0.1461
|
| 30 |
+
- Copy Target In Context Fraction: 0.4607
|
| 31 |
+
- Copy Valid Targets: 2083162.0
|
| 32 |
+
- Ntp Loss: 4.3813
|
| 33 |
+
- Ntp Ce Unweighted: 3.8113
|
| 34 |
+
- Mile Reweighting Delta: 0.5689
|
| 35 |
+
- Mu Loss: 0.0011
|
| 36 |
+
- Tweo Loss: 0.0420
|
| 37 |
+
- Nitp Loss: 0.3962
|
| 38 |
+
- Total Model Loss: 4.7779
|
| 39 |
+
- Tweo Weighted Loss: 0.0004
|
| 40 |
+
- Nitp Weighted Loss: 0.3962
|
| 41 |
+
- Auxiliary Loss: 0.3966
|
| 42 |
+
- Regularization Loss: 0.0015
|
| 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 |
+
| 6.8795 | 0.32 | 5000 | 6.9756 | 6.3471 | 2083162.0 | 570.8485 | 6.4034 | 603.8834 | 0.0797 | 0.1682 | 2083162.0 | 0.2414 | 0.3041 | 0.1671 | 0.1859 | 0.4607 | 2083162.0 | 6.4039 | 6.3472 | 0.0563 | 0.0004 | 0.4454 | 0.5673 | 6.9756 | 0.0045 | 0.5673 | 0.5717 | 0.0048 |
|
| 74 |
+
| 6.6857 | 0.64 | 10000 | 6.8105 | 6.1533 | 2083162.0 | 470.2733 | 6.2220 | 503.6890 | 0.0894 | 0.1861 | 2083162.0 | 0.3464 | 0.3755 | 0.2194 | 0.1968 | 0.4607 | 2083162.0 | 6.2233 | 6.1535 | 0.0687 | 0.0011 | 0.1092 | 0.5861 | 6.8105 | 0.0011 | 0.5861 | 0.5872 | 0.0022 |
|
| 75 |
+
| 5.2017 | 0.96 | 15000 | 4.8294 | 3.8717 | 2083162.0 | 48.0239 | 4.4302 | 83.9504 | 0.2838 | 0.4616 | 2083162.0 | 0.2732 | 0.5657 | 0.1539 | 0.1480 | 0.4607 | 2083162.0 | 4.4317 | 3.8722 | 0.5585 | 0.0010 | 0.0424 | 0.3972 | 4.8294 | 0.0004 | 0.3972 | 0.3977 | 0.0015 |
|
| 76 |
+
| 5.1573 | 1.0 | 15625 | 4.7779 | 3.8108 | 2083162.0 | 45.1865 | 4.3798 | 79.8214 | 0.2906 | 0.4693 | 2083162.0 | 0.2952 | 0.6072 | 0.1513 | 0.1461 | 0.4607 | 2083162.0 | 4.3813 | 3.8113 | 0.5689 | 0.0011 | 0.0420 | 0.3962 | 4.7779 | 0.0004 | 0.3962 | 0.3966 | 0.0015 |
|
| 77 |
+
|
| 78 |
+
|
| 79 |
+
### Framework versions
|
| 80 |
+
|
| 81 |
+
- Transformers 5.22.1
|
| 82 |
+
- Pytorch 2.14.1+cu130
|
| 83 |
+
- Datasets 4.8.5
|
| 84 |
+
- Tokenizers 0.23.3
|
config.json
CHANGED
|
@@ -13,7 +13,7 @@
|
|
| 13 |
},
|
| 14 |
"bos_token_id": 1,
|
| 15 |
"cce_loss_impl": "cce_kahan_full_c",
|
| 16 |
-
"copy_paste_lexical_keys":
|
| 17 |
"dagformer": {
|
| 18 |
"input_source": "tokens",
|
| 19 |
"local_dim": 128,
|
|
@@ -66,11 +66,11 @@
|
|
| 66 |
"mea_component_key_value_heads": 4,
|
| 67 |
"mea_groupnorm_eps": 1e-06,
|
| 68 |
"meap_exclude_last": true,
|
| 69 |
-
"meap_exclude_mask_from_copy":
|
| 70 |
"meap_implementation": "triton",
|
| 71 |
"meap_mask_ratio": 0.15,
|
| 72 |
"meap_mask_token_id": 16,
|
| 73 |
-
"meap_protect_structural_tokens":
|
| 74 |
"meap_seed": 42,
|
| 75 |
"mile_loss_gamma": 1.0,
|
| 76 |
"model_type": "neollm",
|
|
@@ -132,7 +132,7 @@
|
|
| 132 |
"use_affine_scaled_attention": false,
|
| 133 |
"use_attn_res": false,
|
| 134 |
"use_cache": false,
|
| 135 |
-
"use_copy_paste":
|
| 136 |
"use_dagformer": false,
|
| 137 |
"use_directional_routing": false,
|
| 138 |
"use_embedding_input_norm": true,
|
|
|
|
| 13 |
},
|
| 14 |
"bos_token_id": 1,
|
| 15 |
"cce_loss_impl": "cce_kahan_full_c",
|
| 16 |
+
"copy_paste_lexical_keys": true,
|
| 17 |
"dagformer": {
|
| 18 |
"input_source": "tokens",
|
| 19 |
"local_dim": 128,
|
|
|
|
| 66 |
"mea_component_key_value_heads": 4,
|
| 67 |
"mea_groupnorm_eps": 1e-06,
|
| 68 |
"meap_exclude_last": true,
|
| 69 |
+
"meap_exclude_mask_from_copy": true,
|
| 70 |
"meap_implementation": "triton",
|
| 71 |
"meap_mask_ratio": 0.15,
|
| 72 |
"meap_mask_token_id": 16,
|
| 73 |
+
"meap_protect_structural_tokens": true,
|
| 74 |
"meap_seed": 42,
|
| 75 |
"mile_loss_gamma": 1.0,
|
| 76 |
"model_type": "neollm",
|
|
|
|
| 132 |
"use_affine_scaled_attention": false,
|
| 133 |
"use_attn_res": false,
|
| 134 |
"use_cache": false,
|
| 135 |
+
"use_copy_paste": true,
|
| 136 |
"use_dagformer": false,
|
| 137 |
"use_directional_routing": false,
|
| 138 |
"use_embedding_input_norm": true,
|
model.safetensors
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
-
size
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:18b4379a1bb2232108523c44bbe3fd1e0d0364007b5b0add476c8fc2fc372dd6
|
| 3 |
+
size 170301520
|
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":
|
| 12 |
"fp32_master_groups": 6,
|
| 13 |
-
"fp32_master_tensors":
|
| 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":
|
| 23 |
"parameter_elements_by_dtype": {
|
| 24 |
-
"bfloat16":
|
| 25 |
"float32": 2176
|
| 26 |
},
|
| 27 |
-
"parameter_storage_bytes":
|
| 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": 85126072,
|
| 12 |
"fp32_master_groups": 6,
|
| 13 |
+
"fp32_master_tensors": 380,
|
| 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": 85123896,
|
| 25 |
"float32": 2176
|
| 26 |
},
|
| 27 |
+
"parameter_storage_bytes": 170256496,
|
| 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:
|
| 3 |
size 5329
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:2fad754c9d42e63a29da766ca7180104fb456d34656654dfd3e5995ee0e698a0
|
| 3 |
size 5329
|