LLM programming workshop.
Details
Review programming fundamentals. Pytorch, HuggingFace apis, The popularity of LLMs has caused extensive copy and paste in open source projects such as vllm. We are going to cover some basic programming idioms needed for distilling models from big to smaller models. These skills are transferrable and are different than the classic RL exercises.
pre distillation exercises
You will need a colab account. We will review each problem and leave time for everyone to complete their solutions without the aid of a LLM.
This event is about repetition and practice.
- HF apis to tokenizer and model
- how to speed up model downloads
- basic idioms, batching, padding, attention masks
- logits and probability distributions with softmax
- minimizing KL divergence
- top-k and softening teacher distribution by raising T. Dark Knowledge
- token level knowledge distillation. (distillation event we will stop here)
- Sequence level distillation
- DAgger Ross 2011
- Off policy Distillation
- On policy Distillation Agarwal 2024
- Self Distilled Reasoning Zhao 2016
- Self Distillation Fine Tuning Shenfeld 2026
Generated by Codex.
[https://colab.research.google.com/drive/1EokTq_U-_JcPHtPTTjfVUcSjTW7dyDiB?usp=drive_link](lab)
Zoom link 10m before 630pm time on Thu.
