Skip to content

Fix qwen3-0.6b LoRA training example - #74

Open
rcano-baseten wants to merge 4 commits into
mainfrom
fix-qwen3-0.6b-lora-training
Open

Fix qwen3-0.6b LoRA training example#74
rcano-baseten wants to merge 4 commits into
mainfrom
fix-qwen3-0.6b-lora-training

Conversation

@rcano-baseten

Copy link
Copy Markdown
Collaborator

Summary

  • Replace broken axolotl Docker image with pytorch/pytorch:2.7.0-cuda12.8-cudnn9-runtime base image
  • Rewrite training script to use SFTTrainer from TRL + LoRA via PEFT instead of axolotl (the axolotl image's editable install at /workspace/axolotl gets overwritten by artifact copy)
  • Pin dependencies: trl==0.29.0, peft==0.18.1, datasets==4.6.0
  • Switch GPU from H100 to H200

Test plan

  • Ran training job wd14xmw on Baseten production — completed successfully in ~10s
  • 20/20 training steps, loss decreased from ~2.9 to ~2.2
  • Checkpoints synced (2.1MB LoRA weights)

🤖 Generated with Claude Code

rcano-baseten and others added 4 commits February 26, 2026 10:46
Each README links to Baseten signup, walks through `truss train init`,
`cd`, and `truss train push`, and notes when instance types (>H100:4
or any H200) require contacting Baseten for approval.

Also moves qwen3-235b-mswift files into a training/ subdirectory to
match the standard example structure expected by the SDK.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
truss train init flattens the training/ contents into the example
directory, so after cd the config.py is at the root level.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
…rs+peft+trl

The axolotl Docker image copies artifacts to /workspace/axolotl which
overwrites the editable axolotl install, breaking all axolotl imports.
Replaced with a pytorch base image using SFTTrainer from TRL with LoRA
via PEFT. Also switched GPU from H100 to H200 and pinned all
dependencies (trl==0.29.0, peft==0.18.1, datasets==4.6.0).

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant