Commit 86773e9
FIX: Generation nightly CI failing due to gemma (huggingface#2580)
For a month now, nightly CI has failed with dozens of tests causing this
error:
> RuntimeError: Offset increment outside graph capture encountered
unexpectedly.
(link: https://github.com/huggingface/peft/actions/runs/14850392078/job/41692748031)
It turns out that huggingface#2458, which
added a gemma model to the test suite, is most likely the culprit. Since
that commit, on nightly CI (with GPU), when transformers generates with
gemma, which uses torch.compile, an error can be triggered. For some
reason, this has a side effect on other tests that then results in the
error quoted above.
As is, there is no solution for the gemma issue. To still allow the
tests to run and help discover potential issues, this PR skips the
corresponding gemma tests, which should allow the other tests to pass
again.
I could confirm locally that these tests only fail when the gemma tests
are run in the same session. Hopefully, this generalizes to the CI
environment.
---------
Co-authored-by: githubnemo <[email protected]>1 parent 41bf437 commit 86773e9
1 file changed
+5
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
34 | 38 | | |
35 | | - | |
| 39 | + | |
36 | 40 | | |
37 | 41 | | |
38 | 42 | | |
| |||
0 commit comments