Fine-tune with Axolotl
Use swm to find the cheapest GPU, provision a pod, and run a fine-tuning job with Axolotl.
1. Find the cheapest A100
Section titled “1. Find the cheapest A100”swm gpus -g a100 --sort price2. Create a pod
Section titled “2. Create a pod”swm pod create -p <cheapest-provider> -g "A100 80GB" -n finetune \ --lifecycle auto-down --idle-timeout 60 -y3. Install Axolotl
Section titled “3. Install Axolotl”swm setup install axolotl <provider>:<pod-id>4. Upload your config and data
Section titled “4. Upload your config and data”swm upload <provider>:<pod-id> ./config.yml /workspace/swm upload <provider>:<pod-id> ./dataset/ /workspace/dataset/ -r5. Run training
Section titled “5. Run training”swm run <provider>:<pod-id> "cd /workspace && axolotl train config.yml"6. Save and terminate
Section titled “6. Save and terminate”swm pod down finetuneYour checkpoints are pushed to S3. Resume on a different GPU anytime.