← Back to Pull requests

docs(cookbook-site): render hardware facets consistently on recipe cards #369

Closed
unknown closed this pull request without merging on Nov 26, 2026 08:36 UTC
View on GitHub
unknown unknown commented on Nov 26, 2026 07:53 UTC
Author

Two recipe cards look wrong on the published site, for two related reasons.

GLM-5.3 FP8 - the badge collapses 2 nodes, 8x S5000 per node to
16x S5000, but the card footnote printed the raw facet, so the same card said
both 16x S5000 and 2 nodes, 8x S5000 per node.

DiffusionGemma-26B-A4B-it - its At a glance table put a whole sentence in
Hardware and had no Tensor parallelism row, so the card showed
1x S5000 (TP1), MUSA 5.2.0, driver 5.2.0-server as a badge, leaked the inline
markdown as literal backticks in the footnote, and left data-tp empty, which
also hid it from the TP filter.

Changes:

  • tools/cookbook-site/build_site.py: one hardware_label() helper now feeds the

  • badge, the footnote and the data-gpus facet. It strips inline markdown first and
    collapses only an exact N nodes, Mx UNIT per node layout, so a value such as
    2 nodes, 16x S5000 total is never multiplied into 32 GPUs.
  • docs/cookbook/diffusiongemma/diffusiongemma-26b-a4b-it.md: Hardware becomes

  • 1x S5000, Tensor parallelism | TP1 is added, and the "recipe value" caveat
    moves into prose.

    Result, verified by a local build against the published cards: exactly two cards
    change, the other 36 are byte-identical, and no data-gpus value moves.

    | Card | footnote before | after |
    |---|---|---|
    | GLM-5.3 FP8 | 2 nodes, 8x S5000 per node · TP8 · 16,384 tokens | 16x S5000 · TP8 · 16,384 tokens |
    | DiffusionGemma | 1x S5000 (TP1), MUSA 5.2.0, driver 5.2.0-server · 8,192 tokens (recipe value; the canvas is 256) | 1x S5000 · TP1 · 8,192 tokens |

    Diff: 198 lines (+148 / -50) across 2 files Reviewer: yeahdongcn Review duration: 43m
    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 · 198 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.317
    Shallow Review Depth shallow_review_depth
    0.289
    Real PR Conversation Timeline
    1 comments
    "Review active on #369"
    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: 36.1% (MEDIUM) · Higher = larger blast radius
    36.1%
    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%