← Back to Pull requests

Add GRPO fine-tuning example with README #83

Closed
unknown closed this pull request without merging on Jul 31, 2026 08:00 UTC
View on GitHub
unknown unknown commented on May 18, 2026 15:40 UTC
Author

Summary
- Add comprehensive README for GRPO (Group Relative Policy Optimization) fine-tuning, following the pattern established by existing SFT, OSFT, and LoRA examples
- Add GRPO to the parent fine-tuning examples overview
- Example notebook (grpo_lora-kubeflow-trainjob.ipynb) demonstrates single-GPU GRPO training via Kubeflow SDK and Training Hub's ART backend
- Interactive notebook (grpo_lora-interactive-notebook.ipynb) for step-by-step exploration of GRPO training locally in the workbench

What's included
- examples/fine-tuning/grpo/README.md — algorithm overview, hardware requirements, workbench setup guide, GRPO-specific considerations (dshm volume, gpu_memory_utilization)
- examples/fine-tuning/grpo/grpo_lora-kubeflow-trainjob.ipynb — example notebook: TrainJob submission, parameter configuration, dataset format documentation, metrics inspection, reward curve plotting
- examples/fine-tuning/grpo/grpo_lora-interactive-notebook.ipynb — interactive notebook: run GRPO training directly in the workbench for experimentation and debugging
- examples/fine-tuning/README.md — updated to list GRPO in the algorithm list and Distributed "Learn more" section

Dependencies
- Kubeflow SDK: LORA_GRPO algorithm support https://github.com/opendatahub-io/kubeflow-sdk/pull/111
- Training Hub: 0.8.1 release.
- Universal Training Image with openpipe-art and updated training-hub

TODO
- Update %pip install to point to midstream once the SDK PR is merged, then remove once the workbench (universal) image includes the updated SDK
- Validate notebook on fresh workbench with final image

Diff: 202 lines (+151 / -51) across 2 files Reviewer: briangallagher Review duration: 106099m
All Vouch review confidence checks passed
Residual risk 0.14 = Change Risk (0.36) × (1 − Review Confidence (0.60)). Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.36 · 202 lines diff across 2 files
0.36
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.318
Shallow Review Depth shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #83"
general weight: 0.35
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: 36.2% (MEDIUM) · Higher = larger blast radius
36.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: 14.3% · Safe to merge
14.3%