Upload README.md with huggingface_hub
Browse files
README.md
ADDED
|
@@ -0,0 +1,108 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: apache-2.0
|
| 3 |
+
language:
|
| 4 |
+
- en
|
| 5 |
+
tags:
|
| 6 |
+
- baseline
|
| 7 |
+
- gqa
|
| 8 |
+
- swiglu
|
| 9 |
+
pipeline_tag: text-generation
|
| 10 |
+
---
|
| 11 |
+
|
| 12 |
+
# Goedel-Baseline-1B
|
| 13 |
+
|
| 14 |
+
Standard transformer baseline for comparison with [Goedel-mHC-1B](https://huggingface.co/GoedelMachines/chinchilla-1b-best).
|
| 15 |
+
|
| 16 |
+
This model exists as an ablation reference. It uses the same data, compute budget, and hyperparameters as Goedel-mHC-1B but replaces modified HyperConnections with standard pre-norm residual connections. See [Goedel-mHC-1B](https://huggingface.co/GoedelMachines/chinchilla-1b-best) for the primary model and full discussion.
|
| 17 |
+
|
| 18 |
+
## Architecture
|
| 19 |
+
|
| 20 |
+
| Component | Details |
|
| 21 |
+
|-----------|---------|
|
| 22 |
+
| Parameters | 1,185M |
|
| 23 |
+
| Dimensions | 2048 |
|
| 24 |
+
| Layers | 24 |
|
| 25 |
+
| Vocab size | 50304 |
|
| 26 |
+
| Attention | GQA — 16 heads, 4 KV heads, 128 head dim, QK-norm |
|
| 27 |
+
| FFN | SwiGLU, 2.667x expansion |
|
| 28 |
+
| Residual | Standard pre-norm (RMSNorm) |
|
| 29 |
+
| Optimizer | AdamW (LR 3e-4), cosine schedule, 500-step warmup |
|
| 30 |
+
|
| 31 |
+
## Training
|
| 32 |
+
|
| 33 |
+
- **Data:** 20B tokens of [FineWeb-Edu](https://huggingface.co/datasets/HuggingFaceFW/fineweb-edu), GPT-2 tokenizer
|
| 34 |
+
- **Hardware:** 8x H200 SXM on Vast.ai
|
| 35 |
+
- **Sequence length:** 4096
|
| 36 |
+
- **Effective batch:** 384 sequences (8 GPUs x 8 micro-batch x 6 grad accum = 1.57M tokens/step)
|
| 37 |
+
|
| 38 |
+
## Results
|
| 39 |
+
|
| 40 |
+
| Benchmark | Goedel-Baseline-1B (1,185M) | Goedel-mHC-1B (1,009M) |
|
| 41 |
+
|-----------|------------------------------|--------------------------|
|
| 42 |
+
| BPB (wikitext-2) | 1.130 | **1.087** |
|
| 43 |
+
| val_loss (FineWeb-Edu) | 2.686 | **2.645** |
|
| 44 |
+
| HellaSwag | 36.2% | **39.7%** |
|
| 45 |
+
| ARC-Easy | 52.8% | **57.8%** |
|
| 46 |
+
| ARC-Challenge | 23.9% | **24.3%** |
|
| 47 |
+
| WinoGrande | 53.1% | **54.9%** |
|
| 48 |
+
|
| 49 |
+
The mHC variant wins on all benchmarks with **15% fewer parameters**.
|
| 50 |
+
|
| 51 |
+
## Full Config
|
| 52 |
+
|
| 53 |
+
```yaml
|
| 54 |
+
model:
|
| 55 |
+
dim: 2048
|
| 56 |
+
n_layers: 24
|
| 57 |
+
vocab_size: 50304
|
| 58 |
+
|
| 59 |
+
attention:
|
| 60 |
+
type: gqa
|
| 61 |
+
num_heads: 16
|
| 62 |
+
num_kv_heads: 4
|
| 63 |
+
head_dim: 128
|
| 64 |
+
qk_norm: true
|
| 65 |
+
rope_theta: 10000
|
| 66 |
+
|
| 67 |
+
ffn:
|
| 68 |
+
type: swiglu
|
| 69 |
+
intermediate_mult: 2.667
|
| 70 |
+
|
| 71 |
+
residual:
|
| 72 |
+
type: prenorm
|
| 73 |
+
|
| 74 |
+
optim:
|
| 75 |
+
type: adamw
|
| 76 |
+
lr: 3.0e-4
|
| 77 |
+
scheduler: cosine
|
| 78 |
+
warmup_steps: 500
|
| 79 |
+
weight_decay: 0.1
|
| 80 |
+
max_grad_norm: 1.0
|
| 81 |
+
|
| 82 |
+
training:
|
| 83 |
+
tokens: 20_000_000_000
|
| 84 |
+
batch_size: 8
|
| 85 |
+
seq_len: 4096
|
| 86 |
+
grad_accum_steps: 6
|
| 87 |
+
liger: true
|
| 88 |
+
compile: true
|
| 89 |
+
compile_mode: max-autotune-no-cudagraphs
|
| 90 |
+
|
| 91 |
+
data:
|
| 92 |
+
shard_dir: data/fineweb_edu
|
| 93 |
+
```
|
| 94 |
+
|
| 95 |
+
## Limitations
|
| 96 |
+
|
| 97 |
+
- **Undertrained:** 20B tokens is well below chinchilla-optimal for 1.2B parameters.
|
| 98 |
+
- **English only:** Trained exclusively on English web text.
|
| 99 |
+
- **No instruction tuning:** Base model only; not suitable for chat or instruction-following without fine-tuning.
|
| 100 |
+
- **Custom codebase required:** Weights are saved as raw PyTorch state dicts and require this project's model code to load.
|
| 101 |
+
|
| 102 |
+
## Purpose
|
| 103 |
+
|
| 104 |
+
This model exists solely as an ablation reference to isolate the impact of modified HyperConnections. For the primary model, see [Goedel-mHC-1B](https://huggingface.co/GoedelMachines/chinchilla-1b-best).
|
| 105 |
+
|
| 106 |
+
## License
|
| 107 |
+
|
| 108 |
+
Apache 2.0
|