ML coding
Machine learning algorithms and model parts written from scratch in NumPy and PyTorch, as ML coding rounds ask.
Machine learning algorithms and model parts written from scratch in NumPy and PyTorch, as ML coding rounds ask.
2 write-ups
| Title |
|---|
| LoRA Low-rank adapters in PyTorch, from full fine-tuning to a LoRA linear layer to injecting, merging and saving adapters, with a rank experiment, exactness tests and the memory math. |
| Policy Gradients and GRPO Policy-gradient training for sequence models in PyTorch, from raw REINFORCE to a group-relative baseline to GRPO with ratio clipping and a KL penalty, plus the NaN and ratio bugs of the debugging variant. |