Downloads · 30 days
0
AlxSp/nag-nanochat-d64
nag-nanochat-d64 is a text generation model from AlxSp. Use it when you need the model to write or continue text. It is set up for pytorch.
Raw PyTorch checkpoints from a controlled comparison between a 64-layer nanochat GPT baseline and a Norm-AGnostic (NAG) residual-stream model. The repository is private while the checkpoint descriptions and release de…
Downloads · 30 days
0
Access
Public
Updated Jul 14, 2026
Repo size
4.2 GB
Likes
0
Public
Click a slice to open those files.
.pt4.2 GB · 100%
From the Hugging Face model README
Raw PyTorch checkpoints from a controlled comparison between a 64-layer nanochat GPT baseline and a Norm-AGnostic (NAG) residual-stream model. The repository is private while the checkpoint descriptions and release details are reviewed.
These are research checkpoints, not transformers-native model packages.
Loading them requires the matching model definitions from
Alxsp/nag-nanochat, specifically
nanochat/gpt.py for the baseline and nanochat/nag_gpt.py for NAG.
| Directory | Description | Step | Approx. tokens | Validation BPB |
|---|---|---|---|---|
nag-d64-3e19-gatefix/ | Final NAG run with the gate-training fix | 9,425 | 9.883B | 0.758923 |
gpt-d64-3e19-baseline/ | Matched GPT baseline | 9,474 | 9.934B | 0.750289 |
nag-d64-3e19-collapsed/ | Failed NAG run retained for gate-collapse analysis | 9,425 | 9.883B | 0.785782 |
The collapsed checkpoint is included to make the failure analysis
reproducible. Only its final model_009425.pt and meta_009425.json are
published. The known-corrupt intermediate model_003500.pt was intentionally
excluded. Optimizer shards are excluded from every checkpoint.
3e19 FLOPsThe complete per-run configuration is stored beside each model in its
meta_*.json file.
The tokenizer/ directory contains the tokenizer artifacts used for these
runs:
tokenizer.pkltoken_bytes.pttokenizer.pkl is a Python pickle. Load it only from a trusted source and use
the matching nanochat tokenizer code.
Download the desired model and metadata with huggingface_hub, instantiate
the matching nanochat model class from meta["model_config"], and load the
checkpoint as a PyTorch state dictionary. Checkpoint keys may carry an
_orig_mod. prefix from compilation and should be stripped in the same way as
the nanochat checkpoint loader.
Example download:
from huggingface_hub import hf_hub_download
repo_id = "AlxSp/nag-nanochat-d64"
model_path = hf_hub_download(
repo_id,
"nag-d64-3e19-gatefix/model_009425.pt",
)
meta_path = hf_hub_download(
repo_id,
"nag-d64-3e19-gatefix/meta_009425.json",
)
These checkpoints are intended for architecture analysis and reproducibility, including residual-stream geometry, attention-sink, layer-gain, and gate collapse studies. They are base pretraining checkpoints and have not been instruction-tuned or safety-aligned. They should not be treated as production assistants. The collapsed checkpoint is a deliberately retained failed run.