Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions op_tests/test_moe_2stage.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@

import torch
import itertools
import gc
from contextlib import nullcontext
import aiter
from aiter import dtypes
Expand Down Expand Up @@ -1057,6 +1058,9 @@ def _write_bench_csv(rows):
os.environ.pop("AITER_BF16_FP8_MOE_BOUND", None)
else:
os.environ["AITER_BF16_FP8_MOE_BOUND"] = _old_moe_bound
# Reclaim per-case VRAM to avoid OOM under fragmentation.
gc.collect()
torch.cuda.empty_cache()
if ret is None:
continue
ret.update(extras)
Expand Down
Loading