Skip to content

Switch to Qwen3-32B with LoRA - #5

Open
kfallah wants to merge 3 commits into
mainfrom
qwen3-32b-lora
Open

Switch to Qwen3-32B with LoRA#5
kfallah wants to merge 3 commits into
mainfrom
qwen3-32b-lora

Conversation

@kfallah

@kfallah kfallah commented Mar 12, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • Switch from Qwen3-14B full fine-tuning to Qwen3-32B with LoRA (rank=32, alpha=64, all-linear)
  • LR increased to 5e-5 (standard for LoRA)
  • Added memory optimizations: gradient checkpointing, use_shm, param_offload, layered_summon, load_format=safetensors
  • Kept gpu_memory_utilization=0.85, tensor_parallel=2, sequence_parallel=2, batch_size=16

Key config changes

Setting Before After
Model Qwen/Qwen3-14B Qwen/Qwen3-32B
LoRA rank N/A (full FT) 32
LoRA alpha N/A 64
LR 1e-5 5e-5
load_format default safetensors
layered_summon off True
gradient_checkpointing off True

Test plan

  • Verify Qwen/Qwen3-32B is downloadable on remote
  • Verify training launches without OOM on 2x H100
  • Monitor first few steps for healthy entropy/pg_loss

🤖 Generated with Claude Code

- Model: Qwen3-14B -> Qwen3-32B with LoRA (rank=32, alpha=64, all-linear)
- Context: 64K -> 32K (native, no rope scaling needed)
- GPU util: 0.85 -> 0.95, param offload enabled
- Added layered_summon + safetensors load_format for LoRA vLLM sync
- LR: 1e-5 -> 3e-5 (higher for LoRA)
- Removed HF config patching and rope scaling overrides

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
kfallah and others added 2 commits March 15, 2026 17:52
- Set critic.enable: False to skip loading second 32B model
- Add use_shm: True for shared memory model loading
- Saves ~200GB CPU RAM that was causing Ray OOM

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
- max_num_seqs: 1 since we're bottlenecked by experiment env anyway
- RAY_memory_usage_threshold=0.99 to survive transient init peak
  (two FSDP workers each load full 32B model before sharding)

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