Repository navigation
[serge] Fix 2 integration tests for model qwen3_vl_moe failing with OOM, raising OutOfMemoryError (other (2)) - #50148
Open
sergereview[bot] wants to merge 1 commit into
Open
sergereview[bot] wants to merge 1 commit into
sergereview[bot] wants to merge 1 commit into
Conversation
… `OOM`, raising `OutOfMemoryError` (other (2))
|
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. |
sergereview
Bot
force-pushed
the
serge/fix/itf-6c6e81a67f31-90ceebb9
branch
from
November 1, 2026 00:34
20ac036 to
2f170da
Compare
This was referenced Nov 1, 2026
sergereview
Bot
force-pushed
the
serge/fix/itf-6c6e81a67f31-90ceebb9
branch
from
November 7, 2026 00:29
27b30cb to
2f170da
Compare
Contributor
|
[For maintainers] Suggested jobs to run (before merge) run-slow: qwen3_vl_moe |
This was referenced Nov 7, 2026
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Original CI failure
2 integration tests for modelqwen3_vl_moefailing withOOM, raisingOutOfMemoryError(other (2))tests/models/qwen3_vl_moe/test_modeling_qwen3_vl_moe.py::Qwen3VLMoeIntegrationTest::test_small_model_integration_test_expand— retained memory (fixable): needed 768 MiB, PyTorch already held 20.86 GiB of 22.30 GiBCI traceback —
tests/models/qwen3_vl_moe/test_modeling_qwen3_vl_moe.py::Qwen3VLMoeIntegrationTest::test_small_model_integration_test_expandWhere to watch it:
Both tests OOM inside
from_pretrained: theTransposeconversion ofexperts.gate_up_projneeds 768 MiB whiledevice_map="auto"has already filled GPU 1 to ~20.9 GiB of 22.3 GiB. The card is full of the model being loaded, not of leftovers — the class already usesMemoryCleanupMixinand every model is a local, so there is nothing retained to free.The fix follows the pattern already used for the other 30B MoE integration tests (#48776,
glm4v_moe,phimoe,qwen3_omni_moe): load through aget_model()helper with a 70% per-GPUmax_memorycap and anoffload_folder, so the conversion temporary has room. No expected values change.Relates to #50143
✅ Verified on GPU
serge ran the targeted
@slowtest(s) on a GPU runner and opened this PR only after they passed with this patch. Each targeted test was run 5× on both the pre-patch and patched trees to rule out flakiness — the result held on every run.Possibly related
Existing issues/PRs mentioning
test_small_model_integration_test_expand(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:deepseek-ai/DeepSeek-V4.1-Flash-1017:together· 15 LLM turns · 23 tool calls · 133.1s · 409032 in / 72783 out tokens