[Loader]Fix bug in MTP weight loading (#5744)

* fix torch mtp

* fix

* update
This commit is contained in:
bukejiyu
2025-12-25 11:32:17 +08:00
committed by GitHub
parent e154c03416
commit f0bbdce849
6 changed files with 26 additions and 50 deletions
@@ -56,8 +56,8 @@ class DefaultModelLoaderV1(BaseModelLoader):
load_weights_from_cache(model, weights_iterator)
else:
model.load_weights(weights_iterator)
if fd_config.speculative_config.model_type != "mtp":
process_final_after_loading(model, fd_config)
process_final_after_loading(model, fd_config)
self.clean_memory_fragments()