Skip to content

[serge] Fix 2 integration tests for model nemotron failing with import_or_config (other (2)) - #48582

Merged
vasqu merged 1 commit into
mainfrom
serge/fix/itf-f226c3577755-27fc3c02
Sep 7, 2026
Merged

vasqu merged 1 commit into
mainfrom
serge/fix/itf-f226c3577755-27fc3c02

Conversation

@sergereview

@sergereview sergereview Bot commented Sep 6, 2026 •

Copy link
Copy Markdown
Contributor

CPU CI GPU run-slow

Original CI failure

  • Failure group: 2 integration tests for model nemotronfailing 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_fa2
(line 1538)  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.

Where to watch it:

The test_nemotron_8b_generation_fa2 integration test requests attn_implementation="flash_attention_2" but has no @require_flash_attn decorator, so it runs on runners without flash-attn installed and fails with ImportError: FlashAttention2 has been toggled on, but it cannot be used.

Root cause: missing dependency guard on the test.

Patch: add import pytest and from pytest import mark, import require_flash_attn, and decorate test_nemotron_8b_generation_fa2 with @require_flash_attn and @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

@sergereview
sergereview Bot marked this pull request as ready for review September 6, 2026 22:38
@github-actions
github-actions Bot requested a review from ydshieh September 6, 2026 22:39
@github-actions

github-actions Bot commented Sep 6, 2026

Copy link
Copy Markdown
Contributor

[For maintainers] Suggested jobs to run (before merge)

run-slow: nemotron

@github-actions

github-actions Bot commented Sep 6, 2026

Copy link
Copy Markdown
Contributor

CI recap

Dashboard: View test results in Grafana
Latest run: 34064629365:1
Result: success | Jobs: 2 | Tests: 26 | Failures: 0 | Duration: 2m 55s

@HuggingFaceDocBuilderDev

Copy link
Copy Markdown

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.

@vasqu vasqu 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.

Perf

@vasqu
vasqu added this pull request to the merge queue Sep 7, 2026
Merged via the queue into main with commit 5bea5af Sep 7, 2026
41 checks passed
@vasqu
vasqu deleted the serge/fix/itf-f226c3577755-27fc3c02 branch September 7, 2026 12:44
@tarekziade

Copy link
Copy Markdown
Collaborator

Post-hoc GPU verification: error (test skipped) — but the patch is correct

This PR was opened without the GPU verify gate running. A serge deploy on 2026-09-04 shipped a stale values file that silently unset VERIFY_ON_GPU, so for three nightlies serge opened fix PRs without running the targeted @slow tests — and without the footer that would have said so either way. The configuration is restored; this is the retroactive verification.

Run: https://github.com/huggingface/transformers/actions/runs/34200518951
(serge-verify-caller.yml, baseline c93057d4 vs the merge head 6028d50e, 5 runs per tree, plus the full tests/models/nemotron slow suite on both trees.)

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.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants