← Back to Pull requests

Define B/D/F upfront in the roofline matmul section #127

Open
Future-Outlier opened this pull request with 8 lines diff across 1 files
View on GitHub
Future-Outlier Future-Outlier commented on Jul 11, 2026 05:07 UTC
Author

Summary


Define B, D, F once at the top of the Matrix multiplication
section — one short sentence each — so the reader knows each dimension
right away:

  • B is the batch size — the number of tokens (not sequences).

  • D is the model dimension d_model (the embedding size).

  • F is the MLP hidden dimension d_ff.
  • The key point is that the batch size B counts tokens, not sequences.
    Since it's now defined once upfront, the rest of the section keeps the
    familiar term "batch size B" and drops the repeated "(not sequences)"
    asides — which reads more cleanly than renaming B to "number of tokens"
    everywhere.

    <img width="744" height="778" alt="image" src="https://github.com/user-attachments/assets/4025c3a6-9e7c-4e99-b35a-8949d5871c47" />

    <img width="688" height="135" alt="image" src="https://github.com/user-attachments/assets/034ab489-f760-4fc5-8a71-c4a6dbd4fa9c" />

    Diff: 8 lines (+4 / -4) across 1 files Reviewer: JiangJiaWei1103 Review duration: 128975m
    All Vouch review confidence checks passed
    Residual risk 0.04 = Change Risk (0.23) × (1 − Review Confidence (0.85)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.23 · 8 lines diff across 1 files
    0.23
    Model 2 · Review Depth (DistilBERT)
    Depth Score: 0.93 · 5 substantive comment(s)
    0.93
    Model 3 · Review Timing & Attention
    Session adequacy: 100% · Reviewer familiarity: 35%
    84%
    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.131
    Real PR Conversation Timeline
    7 items
    google-cla[bot] google-cla[bot] commented on Jul 11, 2026 05:08 UTC
    Bot

    Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

    View this failed invocation of the CLA check for more information.

    For the most up to date status, view the checks section at the bottom of the pull request.

    Future-Outlier Future-Outlier commented on Jul 11, 2026 05:24 UTC
    Author

    cc @jacobaustin123 to take a look, tks!

    JiangJiaWei1103 JiangJiaWei1103 approved these changes on Jul 12, 2026 04:00 UTC
    Approved Reviewer

    Overall LGTM. Defining the notations at the top makes it easy to follow!

    Future-Outlier Future-Outlier commented on Jul 12, 2026 04:00 UTC
    Author

    Overall LGTM. Defining the notations at the top makes it easy to follow!

    thanks for the review

    jacobaustin123 jacobaustin123 commented on Jul 12, 2026 22:27 UTC
    Contributor

    Thanks for sending this. I'll try to find a way to tweak this section. I'm not a fan of emphasizing tokens since this section isn't even about Transformers, it's just about matrix multiplication as an abstract algorithm.

    Future-Outlier Future-Outlier commented on Jul 13, 2026 00:35 UTC
    Author

    Thanks for sending this. I'll try to find a way to tweak this section. I'm not a fan of emphasizing tokens since this section isn't even about Transformers, it's just about matrix multiplication as an abstract algorithm.

    Thank you!

    Assignees
    Future-Outlier Future-Outlier
    Labels
    risk: low confidence: 84.8% 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: 23.1% (LOW) · Higher = larger blast radius
    23.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: 84.8% · Lower = rushed or shallow review
    84.8%
    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: 3.5% · Safe to merge
    3.5%