← Back to Pull requests

feat: Add Pipeline Examples for Speculative Decoding on RHOAI 3.6 #124

Closed
unknown closed this pull request without merging on Dec 01, 2026 21:07 UTC
View on GitHub
unknown unknown commented on Nov 02, 2026 16:33 UTC
Author

Summary

Adds guided documentation for the four speculator (Eagle3 draft model) training pipelines to the fine-tuning examples, under examples/fine-tuning/pipelines/rhoai-3.6/speculator/:

  • Root README — speculative decoding background, pipelines overview and mode selection, cluster requirements, setup stated as what must already be available (access confirmed with the administrator, RWX PVC, pipeline server, a Credentials table for kubernetes-credentials and hf-token, ClusterTrainingRuntimes, Model Registry and KServe with -rest route/scheme/port guidance) with links to the official documentation for standard tasks, run instructions (compile from source, import, create run, watch), served-endpoint testing via oc exec/oc port-forward, cleanup, and a troubleshooting table. The root carries the Contents table and navigation for the whole example.

  • Four mode guides — data-extraction, train-only, online, and offline — each with numbered sections and a Reference umbrella (full parameter reference, troubleshooting, source), a stage-by-stage run walkthrough, Qwen3-0.6B example parameter tables, and mode-specific guidance (PVC output verification, evaluation-metrics interpretation, external vLLM setup and the remote-mode reachability probe). Shared guidance appears once in the root README; each guide carries only its parameters and workflow.

  • 34 UI screenshots covering every Red Hat OpenShift AI interaction in the flow
  • Every mode was verified end-to-end on a live Red Hat OpenShift AI 3.6 cluster: data-extraction, train-only, offline and online runs completed, the trained draft was registered and served for train-only, offline and online modes. The guide states this up front — "This example is tested on Red Hat OpenShift AI 3.6" — and labels component version floors as the minimums declared by the pipeline source.

  • Users compile the pipeline YAMLs from the pipelines-components source rather than using pre-built YAMLs, so the guides always match upstream; the KFP SDK is pinned to the version verified end to end (kfp==2.16.1), because the compile-time version is baked into every task

  • Evaluation uses RedHatAI/speculator_benchmarks, which ships the HumanEval subset the evaluator requires

  • Example runs use reduced parameters (16 extraction samples, 10 eval samples) with defaults documented for full runs
  • Diff: 295 lines (+221 / -74) across 3 files Reviewer: hrathina Review duration: 42034m
    All Vouch review confidence checks passed
    Residual risk 0.16 = Change Risk (0.40) × (1 − Review Confidence (0.60)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.40 · 295 lines diff across 3 files
    0.40
    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.340
    Shallow Review Depth shallow_review_depth
    0.289
    Real PR Conversation Timeline
    1 comments
    "Review active on #124"
    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: 40.0% (MEDIUM) · Higher = larger blast radius
    40.0%
    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: 15.8% · Safe to merge
    15.8%