← Back to Pull requests

Add guided examples for Ray with Training Hub #89

Closed
unknown closed this pull request without merging on Jul 14, 2026 09:10 UTC
View on GitHub
unknown unknown commented on Jun 11, 2026 11:02 UTC
Author

Summary

Adds guided examples for running SFT, OSFT, LoRA and GRPO fine-tuning on Ray using Training Hub and CodeFlare SDK on OpenShift AI.

New directories:

  • sft_ray/ — Single GPU SFT with model evaluation (table reasoning test)

  • osft_ray/ — Single GPU OSFT with JSON output and knowledge retention tests (demonstrating no catastrophic forgetting)

  • lora_ray/ — Single GPU and multi-GPU distributed LoRA with SQL generation tests

  • lora_grpo/ - multi-GPU distributed GRPO with verl backend
  • Each example includes:

  • README with prerequisites, hardware requirements, workbench setup walkthrough with screenshots

  • Notebook using RayJob + ManagedClusterConfig pattern with PVC-based storage

  • Post-training model evaluation section

  • Cleanup instructions
  • Also updates:

  • Parent fine-tuning/README.md with links to new Ray examples
  • Notes


  • Ray runtime image noted as Tested & Verified but not yet officially supported

  • Checkpoints written to PVC (RWX) so they persist after Ray cluster teardown
  • Test plan

  • Verify notebooks render correctly on GitHub

  • Run SFT Ray example end-to-end on cluster

  • Run OSFT Ray example end-to-end on cluster

  • Run LoRA single GPU example end-to-end on cluster

  • Run GRPO example end-to-end on cluster

  • Verify model evaluation sections work from workbench after training
  • Relates-to: RHOAIENG-65213

    Diff: 179 lines (+134 / -45) across 2 files Reviewer: briangallagher Review duration: 47408m
    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 · 179 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.311
    Shallow Review Depth shallow_review_depth
    0.289
    Real PR Conversation Timeline
    1 comments
    "Review active on #89"
    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: 35.5% (MEDIUM) · Higher = larger blast radius
    35.5%
    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% · Safe to merge
    14%