Repository navigation
Conversation
|
ROCm validation preflight at HEAD Reproducer: The first failure is Hardware acceptance is NOT RUN: Logs and command files: |
e145049 to
a6ccf54
Compare
Add configurable softmax or sigmoid routing and SwiGLU or relu2 expert schemas to the OpenXLA MoE primitive. Parse Nemotron-H E blocks into an exact layer mask, load correction-bias and relu2/shared tensors, and preserve existing softmax graph schemas. Validated with the mlxcel-xla library compile check and targeted test-fast MoE suite. Refs #3345
Match Transformers normalization semantics, reject impossible grouped routing and unsupported latent shapes, and exercise the E block through local-task and ROCm-capable oracles. Add a tokenizer-backed tiny full-model fixture for external HIP acceptance without claiming 30B memory or throughput validation. Refs #3345
e2334fb to
c6ecdab
Compare
|
UPDATED HANDOFF: the E-checkpoint loader and production-fusion compiler failures reported at Local runtime evidence at executable-code parent Set the HIP device before every build/test so the integration target cannot silently use local-task: test "$(git rev-parse HEAD)" = bf8188d20177cde215ca1b54c6444b86396bd8bd
eval "$(scripts/iree/setup-rocm.sh --env)"
export MLXCEL_XLA_DEVICE=hip MLXCEL_XLA_ROCM_TARGET=gfx1151 MLXCEL_XLA_PRECISION=f32
export OPENSSL_INCLUDE_DIR=/usr/include OPENSSL_LIB_DIR=/usr/lib/x86_64-linux-gnu CARGO_BUILD_JOBS=6
export MLXCEL_ORACLE_PYTHON=spike/openxla/.venv/bin/python
scripts/rocm_gpu_guard.sh --hold -- cargo build --release --features xla-iree --bin mlxcel --example xla_oracle_check --example xla_batch_benchRun the primitive HIP oracle and the corrected E-bearing scripts/rocm_gpu_guard.sh --hold -- "$MLXCEL_ORACLE_PYTHON" spike/openxla/moe_oracle.py --device hip --rocm-target gfx1151
"$MLXCEL_ORACLE_PYTHON" spike/openxla/nemotron_h_moe_fixture.py --out /tmp/nemotron-h-moe-tiny
scripts/rocm_gpu_guard.sh --hold -- cargo test --release --features xla-iree,test-utils --test xla_hybrid_nemotron_h -- --ignored --test-threads=1
scripts/rocm_gpu_guard.sh --hold -- target/release/examples/xla_oracle_check --model /tmp/nemotron-h-moe-tiny/mlx --oracle /tmp/nemotron-h-moe-tiny/hf-f32-oracle.json --device hip
scripts/rocm_gpu_guard.sh --hold -- target/release/examples/xla_batch_bench --model /tmp/nemotron-h-moe-tiny/mlx --prompts /tmp/nemotron-h-moe-tiny/hf-f32-oracle.json --device hip --batch 4 --requests 8 --maxcap 12
scripts/rocm_gpu_guard.sh --hold -- env MLXCEL_BACKEND=xla MLXCEL_PRINT_TOKEN_IDS=1 target/release/mlxcel generate -m /tmp/nemotron-h-moe-tiny/mlx -p 'tok4 tok17 tok5 tok29 tok11 tok8' -n 12 --temp 0 --no-chat-templateRequire the primitive max-absolute differences to stay below Because the corrected SHA changes the emitter, rerun the #3344 real Nemotron-H-4B and Mamba2 gates from scripts/rocm_gpu_guard.sh --hold -- target/release/examples/xla_oracle_check --model models/hf/nemotron-h-4b --oracle spike/openxla/nemotron_h_reference/hf-f32-oracle.json --device hip
scripts/rocm_gpu_guard.sh --hold -- target/release/examples/xla_batch_bench --model models/hf/nemotron-h-4b --prompts spike/openxla/nemotron_h_reference/hf-f32-oracle.json --device hip --batch 4 --requests 8 --maxcap 24
scripts/rocm_gpu_guard.sh --hold -- env MLXCEL_BACKEND=xla MLXCEL_PRINT_TOKEN_IDS=1 MLXCEL_XLA_CONTEXT_CAPACITY=256 target/release/mlxcel generate -m models/hf/nemotron-h-4b -p 'The capital of France is' -n 40 --temp 0 --no-chat-template
scripts/rocm_gpu_guard.sh --hold -- cargo test --release --features xla-iree,test-utils --test xla_hybrid_nemotron_h -- --ignored --test-threads=1
scripts/rocm_gpu_guard.sh --hold -- cargo test --release --features xla-iree,test-utils --test xla_ssm_single_seq -- --ignored --test-threads=1
scripts/rocm_gpu_guard.sh --hold -- cargo test --release --features xla-iree,test-utils --test xla_ssm_state_carry -- --ignored --test-threads=1Require the real-model oracle and CLI to match all 40 committed independent HF IDs, B4/N8 to remain reference-exact, and all hybrid/Mamba2 cases to pass. Please report counts and token IDs separately from source-only checks. The prior ROCm investigation and artifact location remain recorded in #3411 (comment). |
Reserve EOS at a unique token ID and fail fixture generation if the fixed reference emits it, so the CLI and oracle share the same max-token stop policy. Validate the tokenizer ID bijection and require the manual eager oracle to match Transformers native greedy generation. Refs #3345
|
ROCm validation at exact HEAD BLOCKER: whole-model loading rejects the new E-block fixture with Cause: Reproducer after generating Environment note: direct MoE script invocation initially stopped at missing IREE Python modules. The successful oracle runs use a validation-only adapter |
Validate Nemotron-H E blocks against their routed and shared expert schema instead of dense MLP names, including affine-packed companion tensors. Lower grouped sigmoid routing argmax through compiler-compatible single-result reductions while preserving NaN and lower-index tie semantics. Keep the end-to-end acceptance fixture's independent output head and cover checkpoint loading with a complete synthetic model directory. Refs #3345
|
Follow-up to the ROCm blocker report in #3411 (comment): the E-checkpoint loader and grouped-router compiler failures are fixed in At the executable-code parent, the host library suite is 543 passed / 21 ignored, the seven local-task MoE oracle cases pass, guarded CUDA hybrid runtime is 5/5, and the tokenizer-backed CLI matches all 12 independent HF fp32 IDs. At the PR head, the environment-variable guard and its 15 focused Python tests pass. The corrected exact-head ROCm commands, including the required #3344 real-4B and Mamba2 reruns, are in the updated handoff: #3411 (comment). The earlier c6 HIP results remain useful diagnosis but are not acceptance for the changed emitter. HIP validation remains pending, and the PR stays draft. |
Classify the opt-in Nemotron-H golden rewrite switch with the existing fixture-authoring environment variables so the documentation guard does not treat it as an operator setting. Refs #3345
|
ROCm rerun PASS at exact HEAD Library 543 passed / 21 ignored, goldens, fmt and focused clippy pass. All seven primitive oracle cases pass on CPU and HIP. Hybrid integration is 5/5 on each device. The E-bearing fixture matches HF and parsed CLI IDs 12/12: The initial server comparison was a harness false failure: re-decoding CLI IDs omitted Evidence: |
Summary
E-block masking while preserving existing softmax SwiGLU graph schemas.E-block checkpoints against their complete routed/shared tensor schema, including affine-packed companion shapes, instead of requiring dense MLP tensors.M*EM-checkpoint generator for full-model handoff.Validation
PR head:
bf8188d20177cde215ca1b54c6444b86396bd8bd. Runtime and numerical gates ran at its immediate executable-code parent8466cabbfb596a15dfe7a2c912ed3d32670b54ae; the head adds only the test-only environment-variable allowlist correction described below.cargo fmt --all -- --checkandgit diff --checkcargo clippy --profile test-fast -p mlxcel-xla --lib -- -D warnings[26, 2, 26, 26, 16, 27, 15, 27, 19, 15, 2, 15]; reserved EOS 31 is absentThe earlier ROCm result at
c6ecdabcproves its seven primitive oracle cases and inherited regressions, but it also found the now-fixed E-checkpoint loader defect. It does not establish acceptance for the corrected source, so all HIP/full-model gates remain pending.The synthetic gates do not establish 30B resident precision, memory usage, selected-expert execution cost, or throughput. Whole-f32 upload and dense all-expert execution are inherited implementation limits for the later #3350 hardware acceptance.
Refs #3345