You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
5090 tower: install Unsloth + verify MoE LoRA training works #430
The 5090 tower (32GB VRAM, RTX 5090) has PEFT + transformers + bitsandbytes installed but NOT Unsloth. Unsloth is our preferred training framework (2x faster LoRA, memory efficient). Without it, fine-tuning is slower and uses more VRAM.
Additionally, the Qwen3.5-35B-A3B model is MoE (Mixture of Experts) which has specific LoRA training considerations.
MoE Training Challenges
Memory: All 35B params loaded during training (not just 3B active). At FP16 = ~70GB — won't fit in 32GB VRAM without quantization
Quantized training: Need QLoRA (4-bit base + LoRA adapters) — PEFT + bitsandbytes support this
Target layers: LoRA attaches to shared attention layers (q_proj, k_proj, v_proj, o_proj). Expert FFN layers are usually frozen.
Router gradients: The MoE gate/router may or may not need gradient updates during LoRA training
Unsloth MoE: Unsloth added Qwen3 MoE support — need to verify with this specific model
Steps
Install Unsloth on 5090 tower: pip install unsloth
Verify Unsloth loads Qwen3.5-35B-A3B with 4-bit quantization
Test LoRA training on a small dataset (10 examples, 1 epoch)
Measure VRAM usage during training (target: <30GB with QLoRA)
If Unsloth doesn't support MoE: fall back to PEFT directly
Wire successful training path into Academy pipeline
Note: For training, need the Safetensors version (not GGUF). May need to download Jackrong/Qwen3.5-35B-A3B-Claude-4.6-Opus-Reasoning-Distilled in Safetensors format.
MoE is ideal — experts are already specialized domains. Fine-tune PER EXPERT:
Code expert: coding traces from Academy + sentinel tool usage
Reasoning expert: chain-of-thought from complex tasks
General expert: leave as-is (Opus distillation already good)
Publish with domain suffix: -code-cont, -reason-cont, -cont (all)
Plasticity compaction opportunity: prune unused experts for deployment targets.
MacBook Air coding-only use case → drop non-code experts → smaller model, same coding quality.
This is the -code suffix Joel mentioned. MoE makes per-domain adapters natural — each expert IS a domain.
NOTE: Manual pip installs on the tower are how we got into installation nightmares before. Unsloth was installed ad hoc — already showing torchvision version mismatch warnings.
Training deps need to go through install.sh or a pinned requirements-training.txt. Filed for future: any tower dependency change should update the install script, not be done by hand. The install IS the product (#385).
Inference hitting a multimodal processor bug (tries to interpret chat template as image URL). Minor fix needed — skip the vision processor for text-only inputs.
Next: Fix inference, run a small training loop, then scale up to real Academy training data.
Training launched on 5090 — 10 Continuum tool-use examples, 3 epochs, Qwen3.5-4B VL + LoRA.
Note: This was done via raw SSH + Python script. Real training MUST go through jtag commands (genome/academy-session, grid/send for remote dispatch). The manual approach proved the model loads and trains, but production training should use the existing Academy pipeline on the tower via Grid commands. #377 tracks the full e2e Academy session.
Activity
joelteply commentedon Mar 25, 2026
MoE expert specialization strategy:
MoE is ideal — experts are already specialized domains. Fine-tune PER EXPERT:
Publish with domain suffix:
-code-cont,-reason-cont,-cont(all)Plasticity compaction opportunity: prune unused experts for deployment targets.
MacBook Air coding-only use case → drop non-code experts → smaller model, same coding quality.
This is the
-codesuffix Joel mentioned. MoE makes per-domain adapters natural — each expert IS a domain.joelteply commentedon Mar 25, 2026
NOTE: Manual pip installs on the tower are how we got into installation nightmares before. Unsloth was installed ad hoc — already showing torchvision version mismatch warnings.
Training deps need to go through install.sh or a pinned requirements-training.txt. Filed for future: any tower dependency change should update the install script, not be done by hand. The install IS the product (#385).
joelteply commentedon Mar 25, 2026
Qwen3.5-4B loaded successfully on 5090!
Inference hitting a multimodal processor bug (tries to interpret chat template as image URL). Minor fix needed — skip the vision processor for text-only inputs.
Next: Fix inference, run a small training loop, then scale up to real Academy training data.
joelteply commentedon Mar 25, 2026
SUCCESS! Qwen3.5-4B VL loaded + LoRA + inference working on 5090!
<think>reasoning tags before answeringKey fix: use
AutoProcessorwithtext=only, removepixel_valuesfrom inputs for text-only requests. Vision requests pass images normally.Ready for training. Next: create training dataset from Academy traces and start a real LoRA fine-tuning run.
joelteply commentedon Mar 25, 2026
Training launched on 5090 — 10 Continuum tool-use examples, 3 epochs, Qwen3.5-4B VL + LoRA.
Note: This was done via raw SSH + Python script. Real training MUST go through jtag commands (
genome/academy-session, grid/send for remote dispatch). The manual approach proved the model loads and trains, but production training should use the existing Academy pipeline on the tower via Grid commands. #377 tracks the full e2e Academy session.joelteply commentedon Mar 25, 2026
FIRST TRAINING RUN COMPLETE ON 5090!
Results:
Post-training inference doesn't produce clean tool XML yet (10 examples isn't enough). Need:
But the pipeline is PROVEN: load model → attach LoRA → train → save adapter → inference. The 5090 works. Next: scale up training data.
joelteply commentedon Mar 25, 2026
Verified this session:
feat(persona): the supervisor stays resident and HOSTS what persona/s…
docs(planning): ACTIVITIES-CATALOG — parameterized recipes design + f…
feat(spawn): the resident roster becomes RECIPE DATA — kill the hardc…