Skip to content

test_packed_passes_keep_each_prompt_one_token_early fails on pristine v0.6.1 on Jetson AGX Thor (sm_110) #261

Closed

Description

@mcclanahanaman

Environment

  • Jetson AGX Thor: sm_110, 20 SMs, 128 GB unified memory.
  • Container: NVIDIA PyTorch 26.05 (PyTorch 2.12.0a0+5aff392).
  • TensorFold v0.6.1 (17c73e1), pristine (git archive of the tag), with its own extension build cache, separate from our trees.
  • python -m pytest -q tests/cuda/test_flashnext_multi.py

Result
Both parametrizations fail. The test also fails when run alone, and on our other trees built on 0.6.0 and 0.6.1.

FAILED tests/cuda/test_flashnext_multi.py::test_packed_passes_keep_each_prompt_one_token_early[bf16]
FAILED tests/cuda/test_flashnext_multi.py::test_packed_passes_keep_each_prompt_one_token_early[int8]

>       assert [s.out for s in streams] == [fresh(p, smp) for p, smp in zip(prompts, samplings)]
E       At index 4 diff: [2033, 2685, 530, 0] != [2033, 2685, 530, 0, 979, 1557, 3352, 3876, 649, 749, 3010, 1405]
tests/cuda/test_flashnext_multi.py:137: AssertionError

The fifth packed stream stops after 4 tokens, at token 0, while its fresh run continues for 12. The other streams match.

Not checked: v0.6.2, and any GPU other than Thor. So this may be specific to sm_110 or to unified memory. Happy to run a patch or extra logging on Thor if that helps.

(Reported by mcclanahanaman; drafted with an AI assistant from our test logs.)

Activity

  1. plotarmordev commented on Oct 3, 2026

    @plotarmordev
    Contributor

    Checked on a DGX Spark (GB10, sm_121, 48 SMs, unified memory), since GB10 was the missing datum: tests/cuda/test_flashnext_multi.py passes, 27/27, on v0.6.3 and on v0.6.1 (tests from each tag, each in its own image). test_packed_passes_keep_each_prompt_one_token_early passes in both parametrizations (bf16, int8), three runs in a row on v0.6.3. So on this setup it doesn't reproduce; in my opinion that points at something specific to Thor (sm_110, 20 SMs) rather than at unified memory.

    Environment: PyTorch 2.13.0a0 (NVIDIA container 26.07), CUDA 13.3, driver 580.

  2. ashhart commented on Oct 3, 2026

    @ashhart
    Owner

    Thank you for the precise report. The environment, versions and command, and the note that the 0.6.0 and 0.6.1 trees fail alike, showed where to look.

    Both failures were ours, not your setup. Flash Next's CUDA kernels and grouped launches exist only for sm_12x (DGX Spark GB10, RTX 50, RTX PRO 6000). Sibling test files skipped other cards by compute capability; yours skipped only when CUDA was absent, so on your CC 11.0 Thor the tests ran kernels never built for it.

    TensorFold 0.6.4 adds that skip, with a message naming the supported cards, and serving Flash Next on CUDA below sm_120 now refuses at startup, before loading weights: https://github.com/ashhart/TensorFold/releases/tag/v0.6.4

    A Thor cannot serve Flash Next on CUDA yet. Closing; please reopen if anything else fails there.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions