{
  "_comment": "Mistral-style variant of gpt-50m: sliding-window attention (256 tokens, every layer), GQA 2:1, QKV bias off. Same data/steps as gpt-50m so the only variable is the attention pattern. The fused scalar flash kernel skips out-of-window KV blocks, so attention cost scales with the window, not the context.",
  "model": {
    "name": "gpt-50m-mistral",
    "n_layers": 10,
    "d_model": 640,
    "n_heads": 10,
    "n_kv_heads": 5,
    "d_ff": 1728,
    "vocab_size": 4096,
    "context_length": 1024,
    "tied_embeddings": true,
    "use_rope": true,
    "rope_theta": 10000.0,
    "norm": "rmsnorm",
    "norm_eps": 1e-06,
    "activation": "swiglu",
    "dropout": 0.0,
    "sliding_window": 256
  },
  "train": {
    "lr": 0.0005,
    "min_lr_ratio": 0.1,
    "warmup_steps": 117,
    "max_steps": 1170,
    "beta1": 0.9,
    "beta2": 0.95,
    "eps": 1e-08,
    "weight_decay": 0.1,
    "grad_clip": 1.0,
    "batch_size": 8,
    "grad_accum_steps": 8,
    "precision": "f32",
    "checkpoint_every": 200,
    "eval_every": 100,
    "eval_batches": 20,
    "seed": 1337
  }
}
