← Back to Pull requests

Support larger models, full fine-tuning, and Qwen3.5 in verl backend #65

Closed
unknown closed this pull request without merging on May 04, 2026 19:37 UTC
View on GitHub
unknown unknown commented on May 04, 2026 17:27 UTC
Author

Summary

  • Full fine-tuning GRPO support: New grpo() convenience function for full-parameter training (verl backend only)

  • LoRA improvements for larger models (8B+): load_format=dummy default, configurable offload, larger weight sync buckets

  • Qwen3.5 (GatedDeltaNet) support: language_model_only, use_fused_kernels, tool_calls argument parsing fix

  • AGENTS.md: Comprehensive operational guide for disk management, larger models, Qwen3.5, and new incident reports
  • New: grpo() function

    Equivalent to lora_grpo(..., lora_r=0, backend="verl") with a cleaner API — no LoRA-specific parameters. Verl backend only, since full fine-tuning requires FSDP.

    from training_hub import grpo
    
    result = grpo(
        model_path="Qwen/Qwen3-8B",
        data_path="./training_data.jsonl",
        ckpt_output_dir="./grpo_output",
        n_gpus=8,
    )
    

    Code changes

    verl backend (lora_grpo_verl.py):

  • load_format default changed from safetensors to dummy (verl's own default — avoids double model load OOM)

  • update_weights_bucket_megabytes=3072 (embedding weight for 152K+ vocab exceeds default 2048MB bucket)

  • use_fused_kernels=True (enables FLA fused Triton kernels for GDN models — 10-50x speedup)

  • language_model_only passthrough for vLLM via Hydra + override

  • load_format, param_offload, optimizer_offload, layered_summon configurable via kwargs

  • LoRA conditionally applied only when lora_r > 0

  • tool_calls arguments parsed from JSON strings to dicts (Qwen3.5 template compatibility)
  • New files:

  • docs/algorithms/grpo.md — Algorithm guide with comparison to LoRA + GRPO

  • docs/api/functions/grpo.md — API reference
  • Updated files:

  • __init__.py — exports grpo

  • lora_grpo.py — grpo() function, algorithm registration

  • docs/_sidebar.md, docs/api/README.md, docs/README.md — navigation and support matrix
  • Validated configurations

    | Model | Method | GPUs | Step time | Final reward |
    |-------|--------|------|-----------|-------------|
    | Qwen3-8B | LoRA r=128 | 8x H100 | 4.1 min | 0.80 avg |
    | Qwen3-8B | Full FT (grpo()) | 8x H100 | 2.7 min | 0.80 peak (epoch 5) |
    | Qwen3.5-9B | LoRA r=128 | 8x H100 | 3.3 min | 0.85+ (in progress) |

    Test plan

  • Qwen3-8B LoRA: 8 epochs completed, avg reward 0.80

  • Qwen3-8B full fine-tuning: 8 epochs completed, peak 0.804

  • Qwen3.5-9B LoRA: running, 170+ steps, reward 0.85+

  • Qwen3-4B (original config): no regression — lora_r=128 still applies LoRA as before
  • 🤖 Generated with Claude Code

    <!-- This is an auto-generated comment: release notes by coderabbit.ai -->

    Summary by CodeRabbit

    Release Notes

    New Features
    Introduced grpo() convenience function for full-parameter fine-tuning with GRPO
    Enhanced tool-call argument handling in GRPO data processing
    Expanded verl backend configuration options (load format, bucket sizing, language model settings)

    Documentation
    Added comprehensive GRPO algorithm documentation and API reference
    * Updated navigation with new GRPO entries

    <!-- end of auto-generated comment: release notes by coderabbit.ai -->

    Diff: 398 lines (+298 / -100) across 4 files Reviewer: RobotSail Review duration: 129m
    All Vouch review confidence checks passed
    Residual risk 0.17 = Change Risk (0.43) × (1 − Review Confidence (0.60)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.43 · 398 lines diff across 4 files
    0.43
    Model 2 · Review Depth (DistilBERT)
    Depth Score: 0.17 · 1 substantive comment(s)
    0.17
    Model 3 · Review Timing & Attention
    Session adequacy: 100% · Reviewer familiarity: 35%
    60%
    Bedrock Claude 3 · Risk Narration
    (disconnected)
    Groq
    Groq Risk Narration
    AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
    Model 1 · Change Risk Attribution
    SHAP Weights
    Diff Size diff_size
    0.358
    Shallow Review Depth shallow_review_depth
    0.289
    Real PR Conversation Timeline
    1 comments
    "Review active on #65"
    general weight: 0.35
    Reviewers
    Assignees
    Unassigned
    Labels
    risk: low confidence: 60.5% reviewed
    Vouch Risk Breakdown
    AI-powered review risk analysis
    Change Risk
    Change Risk · Model 1 (XGBoost)
    Predicted defect probability (0.00–1.00) based on diff churn, modified sensitive files, and author risk history.
    Score: 43.2% (MEDIUM) · Higher = larger blast radius
    43.2%
    Review Confidence
    Review Confidence · Models 2 & 3
    Scrutiny score (0.00–1.00) combining DistilBERT semantic review depth with reviewer familiarity and session dwell time.
    Score: 60.5% · Lower = rushed or shallow review
    60.5%
    Residual Risk
    Residual Risk · Core Equation
    Residual = Change × (1 − Confidence)
    Unmitigated risk surviving review. ≥ 0.65 triggers an automated re-queue to protect production.
    Score: 17.1% · Safe to merge
    17.1%