DynamicTune
An experimental project for transferring internal changes from a large language model into a smaller model's weights.
What does it do?
DynamicTune compares changes in the hidden states of a large teacher model and a small student model to find a direction for transfer. It aligns the models' representations locally despite their different dimensions, analyzes spectral entropy to select where to make changes, and applies constrained updates to MLP weights. The repository describes experiments transferring from Qwen3.5 4B to 0.8B and from GPT-2 XL to small, along with reproducible benchmark logs.
Key features
- Compare changes in teacher and student models' hidden states
- Locally align representations with different hidden dimensions
- Analyze spectral entropy to choose where to edit weights
- Apply constrained direct updates to MLP weights
- Experiments between Qwen3.5 and GPT-2 models and benchmark logs