SAFEMARXAI Training
The model · SafeMarx XL

A plain transformer, 1.4 billion parameters.

The same design as our 103M yardstick, over thirteen times larger. It reads 2,048 tokens at a time and predicts the next one.

Width
2,048numbers carried for every token
Layers
30blocks stacked one on another
Attention
16 × 128query heads × head width; 4 key-value heads
MLP
5,472SwiGLU hidden width in each block
Vocabulary
32,768byte-level BPE tokens
Window
2,048tokens of context
Parameters
1,390,413,312counted from the built model
Head
Tiedthe output head shares the embedding table
The stack

One block, repeated 30 times

Each token's vector goes through 30 identical blocks. In each block, attention lets the token look back at the tokens before it, and the MLP transforms it on its own. A residual line carries the vector past both, and each adds its result back in.

RMSNorm · rotary positions · QK-norm · grouped-query attention · SwiGLU

2,048 tokens in embedding 32,768 × 2,048 RMSNorm · tied head next-token probabilities × 30 one block residual adds back RMSNorm attention 16 heads · 4 KV groups 10.5M weights + RMSNorm SwiGLU MLP 2,048 → 5,472 → 2,048 33.6M weights +
Where the parameters live

Most of the model is the MLPs

The 30 MLPs hold 72.5% of the weights. Attention holds 22.6%, and the shared embedding table, which also reads out the next token, holds 4.8%. Norm weights add 132,608 more.

MLP 1,008.6M · 72.5% attention 314.6M 0 1,390.4M embedding 67.1M · 4.8%
Size

Against our other models

Each square's area is its parameter count. Our all-SDM base and our transformer yardstick are about 100M each. XL is over thirteen times the yardstick.

SDM base 97.9M yardstick 103.0M SafeMarx XL 1,390.4M area ∝ parameters
On one DGX Spark

The first model training

The first model trains on one DGX Spark, which has 121 GB of memory shared by its CPU and GPU. The model's fixed state takes about 19.7 GB. The rest is working memory for training, which the first timing run will measure.

Weights, fp325.56 GB
Gradients5.56 GB
Muon momentum5.29 GB
AdamW state0.54 GB
bf16 weight copies2.78 GB
Fixed stateabout 19.7 GB