sot-phase2-wikitext103-heuristic-seed42-tc768d013-v10-flopsnorm
Part of the Self-Organising Transformer research project: phase2, dataset wikitext103, condition heuristic, seed 42.
Phase 2: training starts with 33% of units alive; a controller gives birth to dormant units and kills weak ones every 250 steps.
Intended use and limitations
- Intended use: reproduce and inspect the results of the Self-Organising Transformer study.
- Not for: production or downstream use. This is a small research model trained for 10,000 steps on WikiText-103 only. It is not instruction-tuned or safety-tuned.
- It needs the project code and
transformers<5.0(see How to use).
How to use
The model class is defined in the project repository and is not registered with AutoModel, so the Hub widget and AutoModelForCausalLM do not work. Use the repository code (it needs transformers<5.0; 5.x corrupts the reload of this model):
git clone https://github.com/sbartlett97/self-organising-transformer
cd self-organising-transformer && pip install -r requirements.txt
python generate.py sbartlett97/sot-phase2-wikitext103-heuristic-seed42-tc768d013-v10-flopsnorm --prompt "The history of the city begins in"
from ablation_importance import resolve_checkpoint
from evaluate import load_model
from transformers import AutoTokenizer
path = resolve_checkpoint("sbartlett97/sot-phase2-wikitext103-heuristic-seed42-tc768d013-v10-flopsnorm")
model = load_model(str(path), None).eval()
tok = AutoTokenizer.from_pretrained(path)
logits = model(tok("The history of the city begins in", return_tensors="pt").input_ids)["logits"]
Performance
Not yet evaluated.
Final present structure
8 of 12 layers present: 0.423 of dense FLOPs/token, 0.430 of dense parameters (compute.py). The checkpoint itself still holds every unit.
| Layer | Heads (of 12) | FFN groups (of 128) |
|---|---|---|
| 0 | 6 | 63 |
| 1 | 4 | 57 |
| 2 | 5 | 54 |
| 3 | 5 | 40 |
| 4 | 2 | 46 |
| 5 | 3 | 30 |
| 6 | dead or dormant | — |
| 7 | dead or dormant | — |
| 8 | 5 | 46 |
| 9 | dead or dormant | — |
| 10 | 2 | 31 |
| 11 | dead or dormant | — |
Structural plasticity events
- Total births:
92 - Total deaths:
60 - Total structural events:
152
Training trajectory
- Final train loss:
3.3836at step 10000 - Final cost proxy (gate-weighted, not compute):
0.0341 - Final training-time val loss (random val batches):
3.4180(ppl30.51) at step 10000
Hyperparameters
| Hyperparameter | Value |
|---|---|
| model_type | sot |
| dataset | wikitext |
| dataset_config | wikitext-103-raw-v1 |
| seed | 42 |
| max_steps | 10000 |
| seq_len | 256 |
| batch_size | 16 |
| grad_accum | 8 |
| max_layers | 12 |
| d_model | 768 |
| max_heads | 12 |
| max_ffn_dim | 3072 |
| ffn_groups | 128 |
| target_cost | 0.13 |
| birth_mode | heuristic |
| seed_fraction | 0.33 |
| growth_interval | 250 |
| birth_limit | 4 |
| birth_limit_end | 1 |
| death_limit | 2 |
| minimum_age | 500 |
| death_criterion | importance |
| death_relative_margin | 0.6 |
| death_patience | 2 |
| birth_score_floor | 0.0 |
| birth_ramp_steps | 250 |
| death_ramp_steps | 250 |
| death_freeze_lr_fraction | 0.05 |
| birth_freeze_lr_fraction | 0.05 |