Patch GRPOTrainer reward_funcs default in art.unsloth.service too #137
All Vouch review confidence checks passed
Residual risk 0.29 = Change Risk (0.49) × (1 − Review Confidence (0.40)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.49 · 230 lines diff across 2 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.02 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 10%
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
Shallow Review Depth
shallow_review_depth
0.344
Diff Size
diff_size
0.326
No Reviewer Assigned
no_reviewer_assigned
0.120
Real PR Conversation Timeline
1 comments
"Review active on #137"
general
weight: 0.35
RobotSail
Summary
Extends the trl 1.8+
reward_funcsworkaround to cover art 0.5.17. art 0.5.18 instantiatesGRPOTrainerinart.unsloth.train, but art 0.5.17 instantiates it inart.unsloth.service(line 971). The existing monkeypatch only replaced thetrainmodule's class reference, so a functional art 0.5.17 combined with trl 1.8+ still crashed withValueError: No reward source provided. Now the patched class is installed into both modules (guarded byhasattr/ImportErrorso either layout works).Context
The AIPCC index's
openpipe_art-0.5.17wheel is currently empty (25KB, zero.pyfiles — build defect, being reported to AIPCC separately). Upstream 0.5.17 has bothart.local.backend.LocalBackendandTrainableModel.train(), i.e. the originalNo module named 'art.local'failure was the broken wheel, not an API difference. Once AIPCC rebuilds 0.5.17, this change makes training-hub work correctly with both art versions and trl 1.8.Verification (H100, AIPCC GA stack: vLLM 0.21.0+rhaiv.10, trl 1.8.0, unsloth 2026.6.9)
Exact branch commit tested, 3-iteration GRPO (
Qwen2.5-1.5B, Toucan tool-call):| art version | Result |
|---|---|
| upstream 0.5.17 (
model.trainpath,enforce_eager=True) | 3/3 iterations, rewards[0.297, 0.203, 0.375], 96 rollouts, clean exit || AIPCC 0.5.18 (
backend.trainpath) | 3/3 iterations, rewards[0.344, 0.203, 0.406], 96 rollouts, clean exit |<!-- This is an auto-generated comment: release notes by coderabbit.ai -->
Summary by CodeRabbit
Bug Fixes
Improved compatibility across ART versions by applying the default reward behavior consistently in supported training environments.
* Added graceful handling when optional training components are unavailable.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->