Megatron-LM icon indicating copy to clipboard operation
Megatron-LM copied to clipboard

Fix NameError in is_flashinfer_min_version with check_equality=False

Open JavaZeroo opened this issue 5 months ago • 3 comments

  • [x] I, the PR author, have personally reviewed every line of this PR.

What does this PR do ?

Fix is_flashinfer_min_version raising NameError when called with check_equality=False: the strict-comparison branch referenced a misspelled variable flashinver_version.

Issue tracking

Linked issue: Fixes #5264

Contribution process

Pre-checks

  • [x] I have added relevant unit tests
  • [ ] I have added relevant functional tests
  • [ ] I have added proper typing to my code Typing guidelines
  • [ ] I have added relevant documentation
  • [x] I have run the autoformatter.sh on my PR

Tests:

python -m torch.distributed.run --nproc-per-node 1 -m pytest -q tests/unit_tests/test_utils.py::test_is_flashinfer_min_version

JavaZeroo avatar Jun 10 '26 06:06 JavaZeroo

This pull request requires additional validation before any workflows can run on NVIDIA's runners.

Pull request vetters can view their responsibilities here.

Contributors can view more details about this message here.

copy-pr-bot[bot] avatar Jun 10 '26 06:06 copy-pr-bot[bot]

/ok to test 6ba1254

guihong-nv avatar Jun 11 '26 01:06 guihong-nv

/claude review

guihong-nv avatar Jun 11 '26 17:06 guihong-nv