Fix wrongly large dumped file and handle non intrusive hook reset in dumper (#19124)

This commit is contained in:
fzyzcjy
2026-02-22 16:20:08 +08:00
committed by GitHub
parent c1f497e20e
commit 326b788ab4
3 changed files with 255 additions and 31 deletions
@@ -89,7 +89,7 @@ class TestEndToEnd(CustomTestCase):
from argparse import Namespace
from sglang.srt.debug_utils.dump_comparator import main
from sglang.srt.debug_utils.dumper import _Dumper, DumperConfig
from sglang.srt.debug_utils.dumper import DumperConfig, _Dumper
with tempfile.TemporaryDirectory() as d1, tempfile.TemporaryDirectory() as d2:
baseline_tensor = torch.randn(10, 10)