Views
No views yet
| Parameters | 1,077,021,598 |
| Architecture | d=22, n_embd=1408, n_head=22 |
| Attention | standard multi-head self-attn with RoPE, GQA, QK-norm |
| MLP | GELU (standard) |
| Value embeddings | yes (Gemma-4 style, alternating layers) |
| Final smooth loss | 2.82 (C4) |
| Tokens | 21.5B (Chinchilla 20×) |
| LR | 0.01, warmup-cosine |
| Hardware | TPU v6e-8, FSDP + remat |
| Model | Params | MLP | Loss |
|---|---|---|---|
| GELU 1.08B (this) | 1.08B | GELU | 2.82 |
| YatNMN pn+α 1.08B | 1.08B | YatNMN-Softplus (pn + learnable α) | 2.83 |
| YatNMN sb+ca 1.08B | 1.08B | YatNMN-Softplus (sb + constant α=1) | 2.83 |
| YatNMN full 482M ⭐️ | 482M | YatNMN attn + MLP, no VE | 2.57 |
1from transformers import AutoModelForCausalLM, AutoTokenizer
2
3model = AutoModelForCausalLM.from_pretrained(
4 "mlnomad/gelu-d22-chinchilla-1B-pytorch",
5 trust_remote_code=True,
6)
7tokenizer = AutoTokenizer.from_pretrained("mistralai/Mistral-7B-v0.1")
8
9ids = tokenizer("The meaning of life is", return_tensors="pt").input_ids
10out = model.generate(ids, max_new_tokens=50, do_sample=True, temperature=0.8, top_p=0.9)
11print(tokenizer.decode(out[0], skip_special_tokens=True))mlnomad/gelu-d22-chinchilla-1B (Flax/Orbax)