vahe1994 1 年之前
父節點
當前提交
c0e2d63c77
共有 1 個文件被更改,包括 1 次插入0 次删除
  1. 1 0
      src/petals/server/from_pretrained.py

+ 1 - 0
src/petals/server/from_pretrained.py

@@ -82,6 +82,7 @@ def load_pretrained_block(
     print(model_name,block_prefix,revision,token,cache_dir,max_disk_space)
 
     print("now printing", state_dict)
+    print("block.named_parameters()",block.named_parameters())
     for param_name, _ in block.named_parameters():
         assert param_name in state_dict, f"{param_name} not in state dict"
         param = state_dict[param_name]