mirror of
https://github.com/PaddlePaddle/FastDeploy.git
synced 2026-04-23 17:11:21 +08:00
[Loader]Fix bug in MTP weight loading (#5744)
* fix torch mtp * fix * update
This commit is contained in:
@@ -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()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user