Skip to content

[WS1][CUDA][MiniMax-H3] Add FP32 video output projection - #646

Merged
maxiaosong1124 merged 8 commits into
RL-Align:test-h3from
walker-ai:feat/h3-video-output-projection-fp32
Nov 3, 2026
Merged

maxiaosong1124 merged 8 commits into
RL-Align:test-h3from
walker-ai:feat/h3-video-output-projection-fp32

Conversation

@walker-ai

@walker-ai walker-ai commented Oct 31, 2026 •

Copy link
Copy Markdown

Refs #420. Target: test-h3.

Summary

Add the MiniMax-H3 FP32 output projection with optional bias and gradients for X, W and bias.

X: [..., 5376]    W: [96, 5376]    bias: [96]
Y = X @ W.T + bias

The output head projects the complete video/audio/context sequence after final normalization and AdaLN. The model then selects video rows.

Tested on one H20. Supports eager forward/backward and CUDA Graph forward under torch.no_grad().

Implementation

  • Reuse merged #562: the FP32 GEMM helpers, bias-aware canonical_linear_fp32, and canonical parameter-gradient session.
  • Use full-K GEMM for short reductions, including dX; reuse fixed 128-term chunks for forward and long dW/dbias reductions. Compute long dW as (X.T @ G).T to reuse the input projection's tile layout.
  • Extend shared GEMM indexing to int64 for large strided tensors and reject reductions above the supported 2,097,152-row limit before workspace allocation.
  • For multiple CUDA inputs totaling at least 256 MiB, copy rows directly into canonical positions. This removes the extra concatenated input buffer while keeping the existing row order and reduction.
  • Add registration, an independent CPU FP32 reference, accuracy/BI tests, a benchmark and operator documentation.
Reuse investigation
Source Findings Selection rationale
RL-Kernel #180, #325, #562 Merged IEEE FP32 GEMM, fixed-chunk reduction and canonical parameter-gradient handling. Extend the input projection's implementation for the transposed output shape and optional bias.
RL-Kernel #343 The CUDA layout interfaces require BF16 inputs. Use the merged Triton FP32 path for the FP32 output contract.
vLLM / SGLang / CUTLASS investigation in #562 The merged input PR records the candidate accuracy, BI and performance comparison. Reuse its selected FP32 implementation and validate output-specific forward and gradient reductions.
vLLM-Omni H3 batching Packed execution retains per-request boundaries and 64-row alignment padding. Use this layout for two/four-request, mixed-length and padding BI tests.
Files changed — 6 added, 9 modified

[A] = added. [M] = modified.

├── benchmarks/
│   └── operators/
│       └── gemm/
│           └── benchmark_video_output_projection_fp32.py [A] # Accuracy, BI, timing and JSON
├── docs/
│   ├── .nav.yml [M] # Operator navigation
│   └── operators/
│       └── video-output-projection-fp32.md [A] # API, arithmetic, layouts and reproduction
├── rl_engine/
│   ├── backends/
│   │   └── shared/
│   │       └── triton/
│   │           └── gemm/
│   │               ├── det_gemm.py [M] # Large-address indexing and reduction-limit check
│   │               └── video_output_projection_fp32.py [A] # Output-shape GEMM selection
│   ├── ops/
│   │   ├── autograd/
│   │   │   └── canonical_backward.py [M] # Direct row copy for large multi-use inputs
│   │   └── gemm/
│   │       └── video_output_projection_fp32.py [A] # Public tensor contract and validation
│   ├── reference/
│   │   └── gemm/
│   │       └── video_output_projection_fp32.py [A] # Independent CPU FP32 reference
│   ├── runtime/
│   │   └── registry.py [M] # CUDA dispatch and SM90 eligibility
│   └── validation/
│       └── operators/
│           ├── operator_inputs.py [M] # Output shapes and logical keys
│           └── operator_specs.py [M] # Candidate, reference and gradient checks
└── tests/
    ├── ops/
    │   └── gemm/
    │       └── test_video_output_projection_fp32.py [A] # Accuracy, BI, batching and row-copy checks
    ├── runtime/
    │   └── test_kernel_registry.py [M] # Registration and dispatch tests
    └── validation/
        └── operators/
            ├── test_op_checks.py [M] # Validation-context integration
            └── test_operator_inputs.py [M] # Input-builder tests

Call path: get_op → registry → Triton wrapper → canonical_linear_fp32 → projection_gemm_fp32.
The canonical session collects and orders the complete parameter-gradient contributions.

Tests

Test group Result
Output projection, including full-layout accuracy and packed-request BI 130/130 passed
Input projection regression 154/154 passed
Shared Triton GEMM 27/27 passed
Canonical embedding regression 5/5 passed
Output registry and validation integration 7/7 passed

CI extension smoke, operator CLI with random VJP, formatting checks and the strict documentation build pass. All listed pytest cases run on the same source version, with zero skips.

Coverage includes Y/dX/dW/dbias, optional and frozen bias, row permutation, microbatches, padding, unrelated-row placement, noncontiguous gradients, video-row selection and no-grad CUDA Graph forward. Input projection and legacy BF16/Qwen calls exercise the shared implementation.

For every benchmark size, accuracy checks all elements against the independent CPU FP32 reference using atol=rtol=1e-4. BI checks exact FP32 bits after reversing the same logical rows. The ten sizes include three video lengths and both conditioned layouts with the default context budget.

Implementation Accuracy: Y/dX/dW/dbias Row-permutation BI: Y/dX/dW/dbias
PyTorch F.linear 10/10 cases 1/10 cases
This PR (Triton) 10/10 cases 10/10 cases
Accuracy and BI figure image

Left: elements outside the FP32 tolerance. Right: elements whose FP32 bits change after reversing rows. Zero is a pass. The one-row permutation is trivial. Both panels check all Y/dX/dW/dbias elements.

Performance

Compare ordinary PyTorch F.linear + autograd with complete calls to this PR, including validation, bias and canonical parameter-gradient handling. FP32, TF32 off, seed 420, 5 warmups and 40 CUDA-event samples. The table reports median eager forward + backward latency; a PR / PyTorch ratio above 1 means higher latency.

Rows PyTorch F.linear F+B (ms) This PR F+B (ms) PR / PyTorch latency
1 0.127 0.933 7.35x
128 0.141 1.076 7.62x
1,024 0.315 1.097 3.48x
4,096 0.768 1.484 1.93x
13,104 1.928 3.585 1.86x
38,734 5.517 9.609 1.74x
74,410 10.929 18.154 1.66x
104,990 15.880 25.707 1.62x
110,750 16.810 26.967 1.60x
367,986 51.258 93.066 1.82x
  • 1–13,104: synthetic sizes.
  • 38,734 / 74,410 / 104,990: 124-, 243- and 345-frame video layouts with audio and 1,024 context rows.
  • 110,750 / 367,986: maximum default FL2VA / Ref2VA layouts, including reference images/videos and their audio.

The output head projects all mixed-sequence rows. Consequently, its row counts exceed the video-only input projection's counts in #562.

At 367,986 rows, this PR takes 93.066 ms versus 51.258 ms for PyTorch (1.82x latency). Throughput is 3.95 vs 7.18 million mixed rows/s; incremental peak allocated memory is 15.38 vs 7.52 GiB.

Incremental peak memory measures one warmed eager F+B call above the pre-call allocation, excluding inputs and persistent caches.

image

Left: eager forward + backward. Right: no-grad CUDA Graph forward. Each panel compares the same execution mode and uses its own linear scale.

Additional context-limit and multi-request coverage

The 371,870- and 629,106-row cases extend FL2VA/Ref2VA to the checkpoint's declared 262,144-token context limit. They supplement the default pipeline layouts above.

Mixed rows PyTorch F+B (ms) This PR F+B (ms) This PR accuracy / permutation BI
371,870 51.781 95.285 All elements pass / zero changes
629,106 90.064 194.071 All elements pass / zero changes

The large-input row-copy change also supports three maximum-default Ref2VA requests in one canonical gradient session. Each request has 367,986 active rows and is padded to 368,000. Two-request old/new results match byte-for-byte; three-request packed, reversed per-request and deterministic-mode executions also match for all active Y/dX/dW/dbias values.

The following A/B compares existing cat + index_select with direct canonical copying, within the same Triton operator. Memory is total peak allocation, including independent request inputs.

Requests Existing copy F+B Direct copy F+B Existing peak Direct copy peak
2 241.704 ms 175.010 ms 60.28 GiB 45.54 GiB
3 CUDA OOM 293.845 ms CUDA OOM 68.06 GiB

Two-request latency alternates old/new execution in one process. The output test suite covers full reference accuracy for two/four packed requests and mixed lengths; the maximum-capacity comparison above checks full-result BI and memory.

Reproduce

Use this PR checkout in the environment from ci/scripts/run_gpu_ci.sh:
runpod/pytorch:2.4.0-py3.11-cuda12.4.1-devel-ubuntu22.04.

Recorded environment: H20, driver 535.261.03, Python 3.11.10, PyTorch 2.4.1+cu124, CUDA 12.4, Triton 3.0.0, pytest 9.2.0, NumPy 1.26.3, Transformers 5.13.1, Accelerate 1.15.0, FlashInfer 0.6.18.post1.

Install in CI order on H20
export FORCE_CUDA=1 MAX_JOBS=8 KERNEL_ALIGN_FORCE_SM90=1
export TORCH_CUDA_ARCH_LIST=9.0+PTX
python3.11 -m pip install --no-cache-dir torch==2.4.1 --index-url https://download.pytorch.org/whl/cu124
python3.11 -m pip install --no-build-isolation --no-deps -e .
python3.11 -m pip install --no-cache-dir numpy tabulate accelerate "transformers==5.13.1" pytest triton "flashinfer-python>=0.6.0,<0.7"

Run from the repository root. Values are generated from fixed seeds at the model's task shapes.

export PYTHONPATH=.
export OMP_NUM_THREADS=4

python3.11 tools/checks/ci_smoke.py
python3.11 -m pytest -q -rs tests/ops/gemm/test_video_output_projection_fp32.py
python3.11 -m pytest -q tests/ops/gemm/test_video_input_projection_fp32.py
python3.11 -m pytest -q tests/ops/gemm/test_det_gemm.py -k triton
python3.11 -m pytest -q tests/ops/embedding/test_canonical_embedding.py
python3.11 -m pytest -q tests/runtime/test_kernel_registry.py \
  tests/validation/operators/test_operator_inputs.py \
  tests/validation/operators/test_op_checks.py -k video_output_projection

python3.11 tools/validation/operators/check_operator.py \
  --op video_output_projection_fp32 --candidate triton --device cuda \
  --dtype fp32 --batch 1 --seq 129 --check-grad --grad-mode random

python3.11 benchmarks/operators/gemm/benchmark_video_output_projection_fp32.py \
  --backends pytorch triton \
  --rows 1 128 1024 4096 13104 38734 74410 104990 110750 367986 \
  --seed 420 --warmup 5 --samples 40 \
  --output /tmp/h3-output-projection.json

python3.11 benchmarks/operators/gemm/benchmark_video_output_projection_fp32.py \
  --backends pytorch triton --rows 371870 629106 \
  --seed 420 --warmup 5 --samples 40 \
  --output /tmp/h3-output-projection-context-limit.json

The JSON contains raw timing samples, memory, versions, source hashes, accuracy counts and BI mismatches. Full CPU reference checks run before timing.

Summary by CodeRabbit

  • New Features
    • Added FP32 video output projection support for compatible NVIDIA SM90 GPUs, with forward and gradient computation.
    • Added PyTorch and Triton options for the operation, plus validation for input shapes, types, and device compatibility.
  • Documentation
    • Added guidance on the operation’s tensor and gradient requirements, supported layouts, performance measurements, and limitations.
  • Bug Fixes
    • Improved handling of large FP32 matrix calculations and gradient row ordering.

Share canonical weight and bias row preparation while retaining stable sorting. Reuse 128x32 tiles and compute long dW reductions through the transposed product. Preserve the original full-K dX path.

Validated on H20 with torch 2.4.1+cu124 and Triton 3.0.0: 80 operator cases, 5 embedding regressions, 6 framework checks, OP_SPECS, and accuracy/BI/performance across ten sizes through 629106 rows.

Signed-off-by: walker-ai <[email protected]>
Merge the latest test-h3 and reuse its canonical backward and FP32 GEMM
paths. Keep only wide address arithmetic in the shared kernel for large
output layouts, and qualify the output-specific matrix routing.

Reuse the independent input reference helper; cover projection followed
by video selection, conditioned layouts, registry dispatch and OP_SPECS.

Validated on one H20 with the CI installation procedure (torch 2.4.1+cu124,
Triton 3.0.0): 82 output tests, 154 input tests, 27 shared Triton tests,
7 output integration tests and all 4 OP_SPECS outputs passed.
Performance and source-identity evidence are retained locally.

Signed-off-by: walker-ai <[email protected]>
Cover equal and variable-length requests using the merged vLLM-Omni H3 packing layout. Check independent and packed forwards, canonical session grouping, row order, and per-request padding. Guard chunked reductions against the Triton merge tensor-size limit.

Signed-off-by: walker-ai <[email protected]>
Copy large CUDA multi-use inputs directly into their canonical row order.
Keep small inputs and other platforms on the existing path, with bytewise
copy, session, and routing coverage.

Validated on H20 with the CI PyTorch 2.4.1 / Triton 3.0 environment: 310
related pytest cases, three maximum requests, and old Qwen/LM-head calls.

Signed-off-by: walker-ai <[email protected]>
Separate projection block dimensions from warp count and reuse the public
H3 dimension constants without changing GEMM dispatch or launch arguments.
Remove the duplicate canonical bias-sharing test already covered by input
projection. Cover sampled and unsampled non-finite benchmark results and
strict JSON output in four CPU cases.

Validation: 128 passed on H20 with PyTorch 2.4.1+cu124 and Triton 3.0.0
(output suite: 125; existing input bias-sharing regression: 3).
Black, isort, flake8 and git diff --check pass.

Signed-off-by: walker-ai <[email protected]>
Check every output and gradient element with the existing independent CPU
FP32 reference. Tile only reference output positions to bound temporary
memory while keeping complete reduction axes. Cover reference tile
boundaries and full-result non-finite detection.

Add default FL2VA and Ref2VA layouts alongside the existing context-limit
profiles. Replace sampled layout and packed-request accuracy checks with
full comparisons. Update benchmark defaults and operator documentation.

Validation on H20, PyTorch 2.4.1+cu124 and Triton 3.0.0: 323 passed with no
skips (output 130, input 154, shared Triton GEMM 27, embedding 5, output
registry/validation 7). CI extension smoke, Black, isort, flake8, and strict
MkDocs build passed. Operator and CI implementations are unchanged.

Signed-off-by: walker-ai <[email protected]>
@coderabbitai

coderabbitai Bot commented Oct 31, 2026 •

Copy link
Copy Markdown

Review in Change Stack →

No actionable comments were generated in the recent review.

Recent review info
Run configuration
Commits

Reviewing files that changed from the base of the PR and between a88b5a0 and 6289efc.

Files selected for processing: 15
  • benchmarks/operators/gemm/benchmark_video_output_projection_fp32.py
  • docs/.nav.yml
  • docs/operators/video-output-projection-fp32.md
  • rl_engine/backends/shared/triton/gemm/det_gemm.py
  • rl_engine/backends/shared/triton/gemm/video_output_projection_fp32.py
  • rl_engine/ops/autograd/canonical_backward.py
  • rl_engine/ops/gemm/video_output_projection_fp32.py
  • rl_engine/reference/gemm/video_output_projection_fp32.py
  • rl_engine/runtime/registry.py
  • rl_engine/validation/operators/operator_inputs.py
  • rl_engine/validation/operators/operator_specs.py
  • tests/ops/gemm/test_video_output_projection_fp32.py
  • tests/runtime/test_kernel_registry.py
  • tests/validation/operators/test_op_checks.py
  • tests/validation/operators/test_operator_inputs.py

Included review availability: This review used your included allowance. Your plan provides up to 2 included reviews per hour; 1 remain after this review.

Walkthrough

Adds an FP32 MiniMax-H3 video output projection for 5376-wide inputs and 96-wide outputs. The change includes a CPU reference, an SM90 Triton backend, canonical gradient handling, runtime and validation registration, tests, documentation, and a benchmark.

Changes: FP32 Video Output Projection

Layer / File(s) Summary
Projection contract and reference
rl_engine/ops/gemm/video_output_projection_fp32.py, rl_engine/reference/gemm/video_output_projection_fp32.py, rl_engine/validation/operators/*, tests/ops/gemm/test_video_output_projection_fp32.py, tests/validation/operators/*
Adds input and logical-key validation, a CPU FP32 reference, and operator validation support for the 5376-to-96 projection. Tests cover the contract, reference behavior, gradients, and invalid inputs.
Triton kernel and CUDA dispatch
rl_engine/backends/shared/triton/gemm/det_gemm.py, rl_engine/backends/shared/triton/gemm/video_output_projection_fp32.py, rl_engine/runtime/registry.py, tests/ops/gemm/test_video_output_projection_fp32.py, tests/runtime/test_kernel_registry.py
Adds the SM90 Triton backend and registers CUDA dispatch. The shared FP32 GEMM widens tile offsets and checks the supported chunk-reduction limit. Tests cover backend qualification, dispatch, accuracy, gradients, and graph capture.
Canonical gradient row preparation
rl_engine/ops/autograd/canonical_backward.py, tests/ops/gemm/test_video_output_projection_fp32.py
Adds direct row ordering for eligible multi-input CUDA reductions of at least 256 MiB. Tests cover canonical order, fallback routing, and row-copy behavior.
Benchmark and workload qualification
benchmarks/operators/gemm/benchmark_video_output_projection_fp32.py, docs/operators/video-output-projection-fp32.md, docs/.nav.yml, tests/ops/gemm/test_video_output_projection_fp32.py
Adds accuracy and permutation checks, timing and memory measurements, and JSON benchmark reporting. Documentation and tests cover packed requests, task layouts, and large reduction limits.

Estimated code review effort: 4 (Complex) | ~60 minutes

Change: Feature

Sequence Diagram(s)

sequenceDiagram
  participant Caller
  participant RuntimeRegistry
  participant VideoOutputProjectionFP32Op
  participant TritonVideoOutputProjectionFP32Op
  Caller->>RuntimeRegistry: Request video_output_projection_fp32 backend
  RuntimeRegistry->>TritonVideoOutputProjectionFP32Op: Select CUDA SM90 implementation
  Caller->>VideoOutputProjectionFP32Op: Submit projection inputs
  VideoOutputProjectionFP32Op->>TritonVideoOutputProjectionFP32Op: Run FP32 projection GEMM
  TritonVideoOutputProjectionFP32Op->>VideoOutputProjectionFP32Op: Return projection output
  VideoOutputProjectionFP32Op->>Caller: Return output with width 96
Loading

Possibly related issues

  • RL-Align/RL-Kernel issue 420: The issue describes the H3 video output head and its FP32 and deterministic-reduction requirements; this change adds the corresponding output projection and gradient support.
Merge Risk: Minimal · up to 6289e

This change adds an FP32 video output projection with a CUDA SM90 Triton backend, canonical gradient handling, tests, docs, and a benchmark. No actionable merge-blocking risk remains after review.

Pre-merge checks: Passed 4 · Failed 1

Failed Failed checks: 1 warning

Check name Status Explanation Resolution
Docstring Coverage Warning Docstring coverage is 27.12% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff with cyclomatic complexity of at least 2. Documenta… Write docstrings for the functions missing them to satisfy the coverage threshold.
Passed Passed checks: 4 passed
Check name Status Explanation
Description Check Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check Passed The title clearly and concisely identifies the CUDA MiniMax-H3 FP32 video output projection added by the pull request.
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Full details: Docstring Coverage

Explanation

Docstring coverage is 27.12% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff with cyclomatic complexity of at least 2. Documentation-only edits and deletions within surviving functions are included; unchanged diff context and fully deleted functions are excluded. Analyzed 59 functions across 13 files. (2 skipped: 2 unsupported.)

Resolution

Write docstrings for the functions missing them to satisfy the coverage threshold.

Finishing Touches
Generate unit tests (beta)
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

@walker-ai
walker-ai marked this pull request as draft October 31, 2026 16:00
@walker-ai walker-ai closed this Oct 31, 2026
@walker-ai walker-ai reopened this Oct 31, 2026
@walker-ai
walker-ai changed the base branch from main to test-h3 October 31, 2026 16:02
@walker-ai
walker-ai marked this pull request as ready for review October 31, 2026 16:07
@walker-ai
walker-ai force-pushed the feat/h3-video-output-projection-fp32 branch from 9c7eb21 to 6289efc Compare October 31, 2026 16:09
@github-actions

github-actions Bot commented Oct 31, 2026 •

Copy link
Copy Markdown

🔍 OpenCodeReview found 1 issue(s) in this PR.

  • ✅ Successfully posted inline: 0 comment(s)
  • 📋 Routed to summary by policy: 1 comment(s)

⚠️ 4 warning(s) occurred during review.


bug · medium

📄 rl_engine/runtime/registry.py (L1347-L1348)

⚠️ GitHub could not post this as an inline comment: Routed to summary (severity medium · category bug)

The new eligibility gate only checks platform != "cuda", while the descriptor it registers declares "cuda_sm": 90 and the diagnostic claims SM90-only qualification. On any CUDA device that is not SM90 (e.g. A100/SM80, T4/SM75) get_op("video_output_projection_fp32") will still return the Triton kernel, so the registry's eligibility contract (hardware capability must satisfy the request) is not enforced. Please add a compute-capability check (or otherwise make the descriptor's cuda_sm constraint authoritative) so the SM90 restriction is actually gated, and keep the error message consistent with what is verified.

💡 Suggested Change

Before:

        if op_type == "video_output_projection_fp32" and platform != "cuda":
            raise RuntimeError("video output projection is qualified on CUDA SM90 only")

After:

        if op_type == "video_output_projection_fp32":
            if platform != "cuda":
                raise RuntimeError(
                    "video output projection is qualified on CUDA SM90 only"
                )
            # additional SM90 capability check here (e.g. against the
            # selected device's compute capability) before dispatch

⚠️ Warnings:

  • rl_engine/validation/operators/operator_inputs.py,rl_engine/validation/operators/operator_specs.py,tests/validation/operators/test_op_checks.py,tests/validation/operators/test_operator_inputs.py (review_limit_reached): reached the aggregate token budget before finishing; the grace round completed the task
  • rl_engine/ops/autograd/canonical_backward.py (token_budget_reached): stopped dispatch: used 603888 tokens + group estimate 28068 = projected 631956 exceeds budget 500000
  • rl_engine/runtime/registry.py,tests/runtime/test_kernel_registry.py (review_limit_reached): reached the aggregate token budget before finishing; the grace round did not complete the task
  • benchmarks/operators/gemm/benchmark_video_output_projection_fp32.py,rl_engine/backends/shared/triton/gemm/det_gemm.py,rl_engine/backends/shared/triton/gemm/video_output_projection_fp32.py,rl_engine/ops/gemm/video_output_projection_fp32.py,rl_engine/reference/gemm/video_output_projection_fp32.py,tests/ops/gemm/test_video_output_projection_fp32.py (review_limit_reached): reached the aggregate token budget before finishing; the grace round did not complete the task

@github-actions

Copy link
Copy Markdown

@walker-ai The automated OCR review has completed.

Please review and address all automated review bot findings, then push your updates. Maintainers will begin manual review after the bot findings have been addressed.

@Flink-ddd Flink-ddd added platform: cuda Specific optimizations or bugs in NVIDIA graphics cards (such as FlashInfer, TMA optimizations) MiniMax-H3 WS1 new-model labels Nov 2, 2026

@Flink-ddd Flink-ddd left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. The layout follows #497 and the canonical reduction order is preserved. SM90 is already checked before execution in _check_backend, so I don’t consider the bot’s registry finding blocking. also cc @maxiaosong1124 PTAL

@maxiaosong1124 maxiaosong1124 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@maxiaosong1124
maxiaosong1124 merged commit 59e1507 into RL-Align:test-h3 Nov 3, 2026
6 checks passed
fusheng-ji added a commit to fusheng-ji/RL-Kernel that referenced this pull request Nov 5, 2026
…ness

strict_boundaries now routes proj_in and proj_out through
video_input_projection_fp32 and video_output_projection_fp32 (RL-Align#562, RL-Align#646)
instead of leaving them on the provider's cuBLAS FP32 path, whose result
depends on the row count and caused the residual single-vs-batched drift.
time_embedder and norm_out stay on the provider and are reported as such.

The --diag-video-projections diagnostic bound the h3_projection GEMM and is
removed: with strict boundaries it would be overridden and mislabelled.

The H100 numbers in the doc predate this binding and are marked as such; a
rerun is still needed.

Signed-off-by: Wenbo Ji <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

MiniMax-H3 new-model platform: cuda Specific optimizations or bugs in NVIDIA graphics cards (such as FlashInfer, TMA optimizations) WS1

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants