# FAIRC/token-averaging-model2_8m_ctx2n Checkpoint dump from the **token averaging** research project. - **run name:** `model2_8m_ctx2n` - **results tree:** `results` ## Contents ### Loss logs - `loss_log.csv` ### Checkpoints - `checkpoints/final.pt` ## Loading a checkpoint ```python import torch from huggingface_hub import hf_hub_download path = hf_hub_download('FAIRC/token-averaging-model2_8m_ctx2n', 'checkpoints/final.pt') state = torch.load(path, map_location='cpu', weights_only=False) model.load_state_dict(state['model']) # your OLMAveraged / OLMTransformerBody print(state['step'], state['tokens_seen'], state['cumulative_flops']) ``` These are **not** Hugging Face `transformers` weights. Rebuild the architecture from `config.json` → `model_config` (or from `experiments/chinchilla/model_configs.py` in the source repo) and load the raw `state_dict`. ## Architecture ```json { "d_model": 128, "n_heads": 4, "n_layers": 6, "context_len": 1024, "averaging_k": 1, "tie_embeddings": true, "lr": 0.0004, "warmup_steps": 500, "target_tokens": 300000000, "n_params_approx": 7612544 } ```