Views
No views yet
model1_50mupdate_controlloss_log.csvcheckpoints/final.ptcheckpoints/step_00050000.ptcheckpoints/step_00100000.pt1import torch
2from huggingface_hub import hf_hub_download
3
4path = hf_hub_download('FAIRC/token-averaging-update_control-model1_50m', 'checkpoints/final.pt')
5state = torch.load(path, map_location='cpu', weights_only=False)
6model.load_state_dict(state['model']) # your OLMAveraged / OLMTransformerBody
7print(state['step'], state['tokens_seen'], state['cumulative_flops'])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.1{
2 "d_model": 512,
3 "n_heads": 8,
4 "n_layers": 8,
5 "context_len": 1024,
6 "averaging_k": 1,
7 "tie_embeddings": true,
8 "lr": 0.0002,
9 "warmup_steps": 2000,
10 "target_tokens": 1000000000,
11 "n_params_approx": 50897408
12}