Repository navigation
[serge] Fix 2 integration tests for model moshi failing with OOM (other (2)) - #48581
sergereview[bot] wants to merge 2 commits into
Conversation
|
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. |
|
[For maintainers] Suggested jobs to run (before merge) run-slow: moshi |
CI recapDashboard: View test results in Grafana |
|
baseline c93057d4 |
this PR e6aaf019 |
|
|---|---|---|
MoshiIntegrationTests::test_moshiko_greedy_unconditional_fp16 |
failed (OOM) | failed (assertion) |
new failures in tests/models/moshi |
— | 0 |
The failure changed, which is the interesting part
The reported failure was retained memory — needed 64 MiB, PyTorch already held 21.89 GiB of 22.30 GiB. With the tearDown added here, the test no longer dies allocating; it runs to completion and fails on its own comparison:
E AssertionError: np.False_ is not true
tests/models/moshi/test_modeling_moshi.py:952
i.e. the generated audio tokens do not match some_expected_audio_tokens. The memory fix does what it claims; a second failure was sitting behind it. Note the baseline never reached line 952 (it OOMed first), so this run cannot say whether the token mismatch predates the patch or is a consequence of it — that needs its own look.
Closing because the targeted test is still red and an unverified patch should not sit in the review queue looking finished. The tearDown addition is worth keeping if someone picks the moshi group up; the open question is the audio-token expectation.
Original CI failure
2 integration tests for modelmoshifailing withOOM(other (2))tests/models/moshi/test_modeling_moshi.py::MoshiIntegrationTests::test_moshiko_greedy_unconditional_fp16— retained memory (fixable): needed 64 MiB, PyTorch already held 21.89 GiB of 22.30 GiBCI traceback —
tests/models/moshi/test_modeling_moshi.py::MoshiIntegrationTests::test_moshiko_greedy_unconditional_fp16Where to watch it:
Relates to #48579
MoshiIntegrationTests::test_moshiko_greedy_unconditional_fp16andfp32fail with CUDA OOM because earlier tests in the same class leave models on the GPU; the 34–64 MiB allocation fails only because the device is already full.Add a class-wide
tearDownthat callscleanup(torch_device, gc_collect=True)after each test, matching the repo's idiom for large-model integration tests.Possibly related
Existing issues/PRs mentioning
test_moshiko_greedy_unconditional_fp16(keyword match — not verified to share a root cause):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· 21 LLM turns · 20 tool calls · 28.9s · 217201 in / 2015 out tokens