Repository navigation
[serge] Fix 2 integration tests for model nemotron failing with import_or_config (other (2)) - #48582
Conversation
…port_or_config` (other (2))
|
[For maintainers] Suggested jobs to run (before merge) run-slow: nemotron |
CI recapDashboard: View test results in Grafana |
|
The docs for this PR live here. All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update. |
Post-hoc GPU verification:
|
baseline c93057d4 |
this PR 6028d50e |
|
|---|---|---|
NemotronIntegrationTest::test_nemotron_8b_generation_fa2 |
failed | skipped |
new failures in tests/models/nemotron |
— | 0 |
serge's verdict computer reports error for this, because a test that does not run cannot demonstrate a fix. Here that is the wrong reading, and the patch is right.
The original failure was a missing dependency guard:
ImportError: FlashAttention2 has been toggled on, but it cannot be used due to the
following error: the package for FlashAttention2 doesn't seem to be installed.
The test asks for attn_implementation="flash_attention_2" with no @require_flash_attn, so it ran on runners without flash-attn and failed. Adding @require_flash_attn + @mark.flash_attn_test is the convention every other flash-attention test in the repo follows, and skipping on a runner without flash-attn is the intended outcome of that fix, not evidence hidden. The verify runner has no flash-attn, hence the skip.
No action needed. Recording it because the gate's own verdict (error) reads as a rejection and should not be taken as one for this failure category — I've flagged that gap separately.
…port_or_config` (other (2)) (huggingface#48582) Co-authored-by: serge[bot] <serge[bot]@users.noreply.github.com>
Original CI failure
2 integration tests for modelnemotronfailing withimport_or_config(other (2))tests/models/nemotron/test_modeling_nemotron.py::NemotronIntegrationTest::test_nemotron_8b_generation_fa2[multi-gpu] (import_or_config, seen 7/7)CI traceback —
tests/models/nemotron/test_modeling_nemotron.py::NemotronIntegrationTest::test_nemotron_8b_generation_fa2Where to watch it:
The
test_nemotron_8b_generation_fa2integration test requestsattn_implementation="flash_attention_2"but has no@require_flash_attndecorator, so it runs on runners without flash-attn installed and fails withImportError: FlashAttention2 has been toggled on, but it cannot be used.Root cause: missing dependency guard on the test.
Patch: add
import pytestandfrom pytest import mark, importrequire_flash_attn, and decoratetest_nemotron_8b_generation_fa2with@require_flash_attnand@mark.flash_attn_test, matching the convention used by every other flash-attention integration test in the repository.This change was produced automatically by serge from a CI failure report. The patch was generated by an LLM and applied by serge; review before merging.
serge
v0.1.0· model:moonshotai/Kimi-K2.7-Code· 50 LLM turns · 49 tool calls · 55.3s · 813067 in / 2357 out tokens