Fine Tuning Code-Gen model on AMD GPU
Most fine-tuning tutorials assume an Nvidia GPU or a cloud service. This post fills two gaps left by the Hugging Face Smol course and the book Domain-Specific Small Language Models: running the fine-tuning on a consumer AMD GPU with ROCm, and automatically evaluating generated Manim code by restoring its layout and checking it with Python's ast module. It also gives a short history of why CUDA became the default for deep learning.