Skip to content

Fine-tune with Axolotl

Use swm to find the cheapest GPU, provision a pod, and run a fine-tuning job with Axolotl.

Terminal window
swm gpus -g a100 --sort price
Terminal window
swm pod create -p <cheapest-provider> -g "A100 80GB" -n finetune \
--lifecycle auto-down --idle-timeout 60 -y
Terminal window
swm setup install axolotl <provider>:<pod-id>
Terminal window
swm upload <provider>:<pod-id> ./config.yml /workspace/
swm upload <provider>:<pod-id> ./dataset/ /workspace/dataset/ -r
Terminal window
swm run <provider>:<pod-id> "cd /workspace && axolotl train config.yml"
Terminal window
swm pod down finetune

Your checkpoints are pushed to S3. Resume on a different GPU anytime.