← Back to Pull requests

Fix ART GRPO backend crash with vLLM V1 eager LoRA validation #62

Closed
unknown closed this pull request without merging on May 01, 2026 20:30 UTC
View on GitHub
unknown unknown commented on Apr 28, 2026 19:43 UTC
Author

Summary

  • Root cause: VLLM_USE_V1=0 env var was removed in vLLM ~0.12. ART 0.5.17 pins vLLM 0.17.0 which only has V1, so the env var was a no-op. vLLM V1 eagerly validates LoRA adapter paths on add_lora, but ART calls add_lora before training creates the first checkpoint — causing FileNotFoundError: adapter_config.json.

  • Fix: Create a seed LoRA checkpoint (zero-initialized lora_B = identity transform) at the expected ART checkpoint path before model.register(). Uses a meta-device model so no base model weight memory is allocated; only the small LoRA parameter tensors (~few MB) are materialised on CPU.

  • Remove the dead VLLM_USE_V1=0 env var setting with an explanatory comment.

  • Additional fixes found during testing:

  • - PEFT returns target_modules as a set which is not JSON-serializable — convert to sorted list before saving adapter_config.json
    - gpu_memory_utilization was only passed in init_args (Unsloth) but NOT in engine_args (vLLM), so vLLM defaulted to 0.9 and OOM'd when Unsloth already held GPU memory on the same device. Now passed in both.
    - engine_args was omitted entirely when max_lora_rank wasn't set (conditional dict unpacking), meaning no engine args were ever forwarded unless rank > 16. Now always passed.
  • AGENTS.md updated with operational practices, past incidents, testing guide, and validated reference config for the ART backend.
  • Validated locally

    All tested with openpipe-art==0.5.17, vllm==0.17.0, Qwen2.5-7B-Instruct on 1x H100:

  • Seed checkpoint creates valid adapter_config.json + adapter_model.safetensors with correct LoRA config and zero weights

  • End-to-end ART GRPO training completes with generic data + custom reward function

  • Results structure, metrics files, and checkpoint output verified
  • Test plan

  • Seed checkpoint creation verified (correct files, config, zero weights, resume skip)

  • End-to-end ART GRPO with generic data + keyword reward passes on H100

  • Verify on RHOAI universal image with the reporter's exact environment
  • 🤖 Generated with Claude Code

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

    Summary by CodeRabbit

    Bug Fixes
    Prevented loss or omission of adapter files during backend conversion and ensured GPU memory settings are reliably passed to runtime, improving stability of adapter-based model loading and training.
    Documentation
    Added an expanded GPU/process troubleshooting guide, an end-to-end testing checklist with concrete failure scenarios, and a validated example configuration for backend validation.
    <!-- end of auto-generated comment: release notes by coderabbit.ai -->

    Diff: 341 lines (+255 / -86) across 4 files Reviewer: RobotSail Review duration: 4366m
    All Vouch review confidence checks passed
    Residual risk 0.19 = Change Risk (0.47) × (1 − Review Confidence (0.60)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.47 · 341 lines diff across 4 files
    0.47
    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.349
    Shallow Review Depth shallow_review_depth
    0.289
    Ai Authored ai_authored
    0.050
    Real PR Conversation Timeline
    1 comments
    "Review active on #62"
    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: 47.3% (MEDIUM) · Higher = larger blast radius
    47.3%
    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: 18.7% · Safe to merge
    18.7%