Model save
Browse files- README.md +54 -292
- config.json +1 -1
- model.safetensors +2 -2
- optimizer_precision.json +5 -5
- training_args.bin +1 -1
README.md
CHANGED
|
@@ -1,312 +1,74 @@
|
|
| 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 **85.50 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 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 / False; Torch continuous surfaces, experts=5, top_k=2 |
|
| 47 |
-
|
| 48 |
-
### Parameter breakdown
|
| 49 |
-
|
| 50 |
-
| Parameter bucket | Count |
|
| 51 |
-
|---|---|
|
| 52 |
-
| **Total parameters** | 85.50M (85,500,216) |
|
| 53 |
-
| **Embedding parameters** (tied) | 32.97M (32,973,824) |
|
| 54 |
-
| **Non-embedding parameters** | 52.53M (52,526,392) |
|
| 55 |
-
| **Effective trainable parameters** | 85.50M (85,500,216) |
|
| 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 = 52.53M`.
|
| 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 |
-
|
| 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: 85,498,040 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 16m |
|
| 217 |
-
| Hardware | NVIDIA GeForce RTX 5090 |
|
| 218 |
|
| 219 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 220 |
|
| 221 |
-
|
| 222 |
-
|---|---|---|
|
| 223 |
-
| 5,000 | 5.667 | 5.209 |
|
| 224 |
-
| 10,000 | 5.408 | 4.939 |
|
| 225 |
-
| 15,000 | 5.241 | 4.761 |
|
| 226 |
-
| 15,625 | — | 4.736 |
|
| 227 |
|
| 228 |
-
|
| 229 |
|
| 230 |
-
##
|
| 231 |
|
| 232 |
-
|
| 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 |
-
|
| 245 |
|
| 246 |
-
|
| 247 |
-
training objective, or training stack:
|
| 248 |
|
| 249 |
-
|
| 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 |
-
##
|
| 292 |
|
| 293 |
-
|
| 294 |
-
|
| 295 |
-
|
| 296 |
-
|
| 297 |
-
|
| 298 |
-
|
| 299 |
-
}
|
| 300 |
-
```
|
| 301 |
|
| 302 |
-
---
|
| 303 |
-
|
| 304 |
-
## Author
|
| 305 |
-
|
| 306 |
-
[@Kyokopom](https://x.com/Kyokopom) on X
|
| 307 |
-
|
| 308 |
-
---
|
| 309 |
|
| 310 |
-
##
|
| 311 |
|
| 312 |
-
|
|
|
|
|
|
|
|
|
|
|
|
| 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: nan
|
| 18 |
+
- Ntp Loss: nan
|
| 19 |
+
- Ntp Ce Unweighted: nan
|
| 20 |
+
- Mile Reweighting Delta: nan
|
| 21 |
+
- Mu Loss: nan
|
| 22 |
+
- Tweo Loss: nan
|
| 23 |
+
- Nitp Loss: nan
|
| 24 |
+
- Total Model Loss: nan
|
| 25 |
+
- Meap Mask Embedding Rms: nan
|
| 26 |
+
- Meap Mask Embedding Max Abs: nan
|
| 27 |
+
- Gradient Stabilizer Target Global Norm: 0.0
|
| 28 |
+
- Gradient Stabilizer Mean Tensor Scale: nan
|
| 29 |
+
- Gradient Stabilizer Min Tensor Scale: nan
|
| 30 |
+
- Gradient Stabilizer Max Tensor Scale: nan
|
| 31 |
+
- Gradient Stabilizer Active Parameter Tensors: 0.0
|
| 32 |
+
- Gradient Stabilizer Skipped Parameter Tensors: 438.0
|
| 33 |
|
| 34 |
+
## Model description
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 35 |
|
| 36 |
+
More information needed
|
| 37 |
|
| 38 |
+
## Intended uses & limitations
|
| 39 |
|
| 40 |
+
More information needed
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 41 |
|
| 42 |
+
## Training and evaluation data
|
| 43 |
|
| 44 |
+
More information needed
|
| 45 |
|
| 46 |
+
## Training procedure
|
|
|
|
| 47 |
|
| 48 |
+
### Training hyperparameters
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 49 |
|
| 50 |
+
The following hyperparameters were used during training:
|
| 51 |
+
- learning_rate: 0.001
|
| 52 |
+
- train_batch_size: 64
|
| 53 |
+
- eval_batch_size: 64
|
| 54 |
+
- seed: 42
|
| 55 |
+
- optimizer: Use OptimizerNames.ADAMW_TORCH_FUSED with betas=(0.9,0.999) and epsilon=1e-08 and optimizer_args=No additional optimizer arguments
|
| 56 |
+
- lr_scheduler_type: linear
|
| 57 |
+
- num_epochs: 1
|
| 58 |
|
| 59 |
+
### Training results
|
| 60 |
|
| 61 |
+
| Training Loss | Epoch | Step | Validation Loss | Loss | Ce Unweighted | Reweighting Delta | Model Loss | Mask Embedding Rms | Mask Embedding Max Abs | Stabilizer Target Global Norm | Stabilizer Mean Tensor Scale | Stabilizer Min Tensor Scale | Stabilizer Max Tensor Scale | Stabilizer Active Parameter Tensors | Stabilizer Skipped Parameter Tensors |
|
| 62 |
+
|:-------------:|:-----:|:-----:|:---------------:|:------:|:-------------:|:-----------------:|:----------:|:------------------:|:----------------------:|:-----------------------------:|:----------------------------:|:---------------------------:|:---------------------------:|:-----------------------------------:|:------------------------------------:|
|
| 63 |
+
| 5.7027 | 0.32 | 5000 | 5.2950 | 0.5182 | 4.1078 | 0.6012 | 5.2286 | 0.0762 | 1.2656 | 20.4483 | 2013.0251 | 1.7891 | 57344.0 | 438.0 | 0.0 |
|
| 64 |
+
| 5.4114 | 0.64 | 10000 | 4.9752 | 0.4493 | 3.8195 | 0.6248 | 4.8948 | 0.1007 | 1.7578 | 20.6767 | 2923.1711 | 0.3359 | 66048.0 | 438.0 | 0.0 |
|
| 65 |
+
| 0.0 | 0.96 | 15000 | nan | nan | nan | nan | nan | nan | nan | 0.0 | nan | nan | nan | 0.0 | 438.0 |
|
| 66 |
+
| 0.0 | 1.0 | 15625 | nan | nan | nan | nan | nan | nan | nan | 0.0 | nan | nan | nan | 0.0 | 438.0 |
|
|
|
|
|
|
|
| 67 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 68 |
|
| 69 |
+
### Framework versions
|
| 70 |
|
| 71 |
+
- Transformers 5.19.0
|
| 72 |
+
- Pytorch 2.14.1+cu132
|
| 73 |
+
- Datasets 5.1.0
|
| 74 |
+
- Tokenizers 0.23.2
|
config.json
CHANGED
|
@@ -122,7 +122,7 @@
|
|
| 122 |
"use_hola_memory": false,
|
| 123 |
"use_iha": false,
|
| 124 |
"use_jtok": true,
|
| 125 |
-
"use_jtokm":
|
| 126 |
"use_laurel": false,
|
| 127 |
"use_laurel_lr": false,
|
| 128 |
"use_laurel_rw": false,
|
|
|
|
| 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,
|
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:94db922fe2b6f7adcd2ca0d5c019b446e2b5ec91d85751e7ecc1a2420e67742a
|
| 3 |
+
size 178393360
|
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": 7,
|
| 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": 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 |
"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 |
}
|
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:12e5354476de28d055fa0c169aa1a27f279f94ed639b8a33312c75dd7b3af401
|
| 3 |
size 5329
|