← Back to Pull requests

[PyTorch] Allow branch builds without related commits #9313

Open
unknown opened this pull request with 249 lines diff across 3 files
View on GitHub
unknown unknown commented on Oct 16, 2026 15:15 UTC
Author

Motivation

Custom PyTorch branches may not carry ROCm/pytorch's related_commits file, but developer builds should still be able to produce a torch wheel.

JIRA ID: AIPYTORCH-1524

Problem

The release-style workflows clone companion repositories before they can determine whether the selected PyTorch ref provides companion pins. This blocks branch validation and offers no explicit way to request a torch-only build.

Changes

  • Add build_pytorch_only inputs to the reusable and manually dispatched Linux and Windows workflows.

  • Clone PyTorch first, then force torch-only mode for dev builds whose checkout has no related_commits.

  • Preserve the requested mode for non-dev builds and for dev refs that provide companion pins.

  • Skip companion checkout, build, and torchvision splitting in torch-only mode while retaining torch package version reporting.

  • Preserve the Linux ASAN wheel variant's existing torch-only behavior.
  • Validation

  • Targeted pre-commit passed, including YAML and actionlint.

  • Eight focused wheel-variant and torch-only version-output tests passed.

  • Prior Linux and Windows runs confirmed automatic torch-only selection and skipped companion checkouts. Their later OpenBLAS failures came from stale ROCm/pytorch:main, whose finder does not honor OpenBLAS_LIB_NAME=rocm-openblas.

  • Linux build using pytorch/pytorch:main and ROCm 10.3.0a20261116: in progress.

  • Windows build using pytorch/pytorch:main and ROCm 10.3.0a20261116: in progress.
  • Submission Checklist

  • I reviewed the contributing guidelines.

  • Linux and Windows workflow behavior is covered.

  • The branch includes current main without conflicts.

  • End-to-end validation builds pass.
  • Diff: 249 lines (+186 / -63) across 3 files Reviewer: jithunnair-amd Review duration: 54490m
    All Vouch review confidence checks passed
    Residual risk 0.25 = Change Risk (0.46) × (1 − Review Confidence (0.45)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.46 · 249 lines diff across 3 files
    0.46
    Model 2 · Review Depth (DistilBERT)
    Depth Score: 0.02 · 1 substantive comment(s)
    0.02
    Model 3 · Review Timing & Attention
    Session adequacy: 100% · Reviewer familiarity: 35%
    44%
    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
    Shallow Review Depth shallow_review_depth
    0.344
    Diff Size diff_size
    0.330
    Real PR Conversation Timeline
    1 comments
    "Review active on #9313"
    general weight: 0.35
    Assignees
    Unassigned
    Labels
    risk: low confidence: 44.7% 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: 46.0% (MEDIUM) · Higher = larger blast radius
    46.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: 44.7% · Lower = rushed or shallow review
    44.7%
    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: 25.4% · Safe to merge
    25.4%
    Repository