sot-phase1-wikitext103-dense_8l-seed42-tc017
Part of the Self-Organising Transformer research project: phase1, dataset wikitext103, condition dense_8l, seed 42.
Dense baseline with 8 layers in place of 12 (depth control).
Read this first
- This is a dense baseline, not the self-organising method. The gated (SOT) models in this project are compared against it.
- Project result so far: the gated model trails dense by 2-4% perplexity, and no result yet shows a cheaper model at equal quality (README).
Full context: RESEARCH_LOG.md, the 2026-10-01 entry.
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. Its zero-shot benchmark scores are close to chance.
- 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-phase1-wikitext103-dense_8l-seed42-tc017 --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-phase1-wikitext103-dense_8l-seed42-tc017")
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
evaluate.py perplexity: 100 val batches of 8 x 256 tokens.
Perplexity: 30.14
- loses to the matched dense baseline (
28.23) by6.8%
| Task | Metric | Value | Stderr |
|---|---|---|---|
| hellaswag | acc | 0.2618 | 0.0044 |
| hellaswag | acc_norm | 0.2620 | 0.0044 |
| arc_easy | acc | 0.3085 | 0.0095 |
| arc_easy | acc_norm | 0.3123 | 0.0095 |
| piqa | acc | 0.5223 | 0.0117 |
| piqa | acc_norm | 0.4864 | 0.0117 |
| winogrande | acc | 0.4925 | 0.0141 |
Training trajectory
- Final train loss:
3.5118at step 10000 - Final cost proxy (gate-weighted, not compute):
1.0000 - Final training-time val loss (random val batches):
3.5051(ppl33.29) at step 10000
Hyperparameters
| Hyperparameter | Value |
|---|---|
| model_type | dense |
| dataset | wikitext |
| dataset_config | wikitext-103-raw-v1 |
| seed | 42 |
| max_steps | 10000 |
| seq_len | 256 |
| batch_size | 16 |
| grad_accum | 8 |
| max_layers | 8 |
| d_model | 384 |
| max_heads | 6 |
| max_ffn_dim | 1536 |
| ffn_groups | 64 |
| target_cost | 0.14 |