Fix ART backend compatibility with newer NVIDIA drivers #98
All Vouch review confidence checks passed
Residual risk 0.17 = Change Risk (0.44) × (1 − Review Confidence (0.60)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.44 · 263 lines diff across 3 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.17 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
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.334
Shallow Review Depth
shallow_review_depth
0.289
Ai Authored
ai_authored
0.050
Real PR Conversation Timeline
1 comments
"Review active on #98"
general
weight: 0.35
RobotSail
Summary
Two fixes for
lora_grpowith the ART backend that resolve crashes on nodes with newer NVIDIA drivers (580+/610+).Changes
1. Import unsloth before art in subprocess
The ART backend runs training in a spawned subprocess. That subprocess imports
art.unsloth.servicewhich importsfrom trl import GRPOTrainer, which in turn tries to importGuidedDecodingParamsfrom vLLM. This class doesn't exist in vLLM ≤0.21, causing anImportError.Unsloth patches
vllm.sampling_paramswith aGuidedDecodingParamsshim, but only if imported first. Addingimport unslothbeforeimport artin_subprocess_entryensures the patch is applied before trl tries the import.2. Expose
enforce_eagerparameterOn nodes with newer NVIDIA drivers, vLLM's torch.fx compilation pipeline crashes with:
This affects vLLM 0.19-0.23 with torch 2.10-2.11. Setting
enforce_eager=Truedisables torch.compile and CUDA graph capture in vLLM, bypassing the issue entirely.The parameter is exposed on
lora_grpo(),grpo(), and theLoRAGRPOAlgorithm.train()method.Test plan
lora_grpo(backend="art", enforce_eager=True)completes on node with driver 610enforce_eager=False(default) preserves existing behavior on compatible systems🤖 Generated with Claude Code
<!-- This is an auto-generated comment: release notes by coderabbit.ai -->
Summary by CodeRabbit
- Added
enforce_eagerconfiguration option to LoRA+GRPO training pipeline, enabling control over eager execution behavior during training- Improved subprocess initialization with enhanced compatibility handling
<!-- end of auto-generated comment: release notes by coderabbit.ai -->