clean nvfp4 related code (#6644)

This commit is contained in:
周周周
2026-03-05 15:48:33 +08:00
committed by GitHub
parent 63414ccc13
commit cebe6f7dae
4 changed files with 20 additions and 9 deletions
+2 -3
View File
@@ -266,9 +266,8 @@ def process_final_after_loading(model, fd_config: FDConfig):
if hasattr(quant_method, "process_weights_after_loading"):
quant_method.process_weights_after_loading(sublayer)
continue
if not hasattr(sublayer, "process_weights_after_loading"):
continue
sublayer.process_weights_after_loading()
if hasattr(sublayer, "process_weights_after_loading"):
sublayer.process_weights_after_loading()
def free_tensor(tensor):