Skip to content
View original post on X: Lucas Beyer (bl16)
Published

Alapan Chaudhuri shows how model weights reveal fine-tuning histories

AILucas Beyer highlights Alapan Chaudhuri’s examples of recovering fine-tuning details from model weights, including token exposure, learning-rate schedules, and training steps. The examples identify discrepancies in Pythia-1B’s model card and show that OLMo 2 and Qwen2.5 instruct tuning left some tokens untouched.
Lucas Beyer (bl16)Verified on X
@giffmana
View on X

This is pretty fun if you like detective work. Though he doesn't make it clear, this is for the fine-tuning step if you have the starting weights.

Conceivably it could be combined with @willdepue trick to find the random init of pretrains, and then applied to pretraining too, but i think that after many steps, most of these would be too washed out to be able to say much.

Alapan Chaudhuri@alapanchaudhuri
I am not sure how openly known this is but: you can read much of a model's training history straight from its weights. Like what? 1. which tokens were in the data 2. the LR schedule 3. the number of steps 4. and if you have the data: the step most documents were used in, the shuffle seed, the context window, the number of passes Some possibly less known facts that are verifiable this way (?): 1. In OLMo 2's first instruct release, 20,341 embedding rows that should have trained never moved, among them the token that closes every chat-turn marker. @allen_ai later found the tokenizer mismatch and retrained. The weights had it all along (👀@natolambert). 2. Pythia-1B was pre-trained at a peak learning rate of 2.5e-4, not the 3.0e-4 on its model card. Its training config agrees with the weights. 3. Pythia's learning rate sat flat for its last 28,000 steps: a cosine aimed at zero and clipped at a tenth of the peak. That is not the scheduler in today's gpt-neox. 4. Qwen2.5's instruct tuning touched exactly 4 of its 22 control tokens, the same four at 7B, 14B, 32B and 72B. The end-of-text, vision and fill-in-the-middle tokens show no trace of it. Pythia-1B model card (says 3.0e-4): https://huggingface.co/EleutherAI/pythia-1b Its training config (says 0.00025): https://github.com/EleutherAI/pythia/blob/main/models/1B/pythia-1b.yml Today's gpt-neox scheduler: https://github.com/EleutherAI/gpt-neox/blob/main/megatron/learning_rates.py OLMo 2 SFT card, with AI2's note on the retrain: https://huggingface.co/allenai/OLMo-2-1124-7B-SFT OLMo 2 training data: https://huggingface.co/datasets/allenai/tulu-3-sft-olmo-2-mixture Qwen2.5 base and Instruct: https://huggingface.co/Qwen/Qwen2.5-7B https://huggingface.co/Qwen/Qwen2.5-7B-Instruct [1/2]
View quoted post on X
Source details

Lucas Beyer (bl16) · x.comPublished · added here

Original title: This is pretty fun if you like detective work. Though he doesn't make it clear, this is for the fine-tuning step if you have the starting...