Kreatix K2 2B Reasoning
Kreatix K2 2B Reasoning (2,284,122,848 parameters) is Kreatix K2 450M Reasoning scaled up via exact function-preserving surgery — no training required, built on the same identity-initialized layer-cloning recipe that produced 450M from 300M:
- Depth 24 -> 40 layers: all 24 real layers kept in their exact original order, with 16
identity-initialized clones inserted between them (
DDDAx10); identity clones are exact no-ops at init and come alive in a fine-tune. - Width 1024 -> 2048: every hidden-dim matrix duplicated (columns in at 0.5 / rows out);
rms(dup(x)) == rms(x)keeps RMSNorm and all math exact. - MLP 2816 -> 5632: each SwiGLU neuron duplicated;
mlp.downcolumns duplicated at 0.5. - Untied head (family-style for 2B+):
lm_head = 0.5 * dup(embed cols). - Vision tower upgraded: 512 -> 1024 hidden, 8 -> 16 heads (head_dim 64 kept, so the 2D rotary grid is untouched), MLP 1408 -> 2816, depth 8 -> 16 with identity clones — ~230M ViT, exact function at init, ready to grow in fine-tuning.
- KreatixK2 identity: every chat gets the built-in system prompt from
kreatix/identity.py(unless the caller supplies their own), keeping the model calibrated to its KreatixLabs identity in English and Finnish. - Context: NoPE + fixed-state Gated DeltaNet extrapolate naturally;
attn_logn_base=8192enables the built-in logN query scaling beyond ~8k tokens.max_seq_lenstays 1,048,576.
At init the 2B reproduces the 450M/750M outputs up to floating-point reduction order (~1e-5 logits in fp32, verified on text and image inputs with identical greedy tokens); ~218M dormant parameters in the LM (plus ~22M in the ViT) are ready to be trained awake. Rough CPU (fp32, 8 threads) reference: ~5 tok/s prefill, ~0.6 tok/s decode — GPU serving (e.g. the B300s the K2 trainer targets) is the intended runtime.
Usage
pip install -r requirements.txt
python scripts/generate.py --model . --tokenizer tokenizer.json --prompt "who are you?" --device cpu
License
Apache 2.0