[Bug] Fix ci issue assert output_size is not None AssertionError (#43261)

Signed-off-by: yewentao256 <zhyanwentao@126.com>
Signed-off-by: Isotr0py <Isotr0py@outlook.com>
Co-authored-by: Isotr0py <Isotr0py@outlook.com>
This commit is contained in:
Wentao Ye
2026-05-21 16:58:09 +08:00
committed by GitHub
co-authored by Isotr0py
parent ebbfb34e3e
commit 68e07d5916
5 changed files with 34 additions and 3 deletions
+1 -3
View File
@@ -465,11 +465,9 @@ def test_fp8_reloading(
method.process_weights_after_loading(layer)
# test reloading works after loading
# assuming that no reshaping occurred
for name, shape, original_weight_loader in original_metadata:
for name, shape, _ in original_metadata:
param = getattr(layer, name)
weight_loader = getattr(param, "weight_loader", default_weight_loader)
assert weight_loader is original_weight_loader
weight_loader(param, torch.zeros(shape)) # cannot use empty
method.process_weights_after_loading(layer)