Browse Source

update convert script

jingyaogong 1 year ago
parent
commit
2e118e9d3d
1 changed files with 2 additions and 2 deletions
  1. 2 2
      scripts/convert_model.py

+ 2 - 2
scripts/convert_model.py

@@ -62,11 +62,11 @@ def convert_transformers2torch(transformers_path, torch_path):
 
 
 
 
 if __name__ == '__main__':
 if __name__ == '__main__':
-    lm_config = MiniMindConfig(hidden_size=768, num_hidden_layers=16, max_seq_len=8192, use_moe=True)
+    lm_config = MiniMindConfig(hidden_size=768, num_hidden_layers=16, max_seq_len=8192, use_moe=False)
 
 
     torch_path = f"../out/full_sft_{lm_config.hidden_size}{'_moe' if lm_config.use_moe else ''}.pth"
     torch_path = f"../out/full_sft_{lm_config.hidden_size}{'_moe' if lm_config.use_moe else ''}.pth"
 
 
-    transformers_path = '../MiniMind2-MoE'
+    transformers_path = '../MiniMind2'
 
 
     convert_torch2transformers_minimind(torch_path, transformers_path)
     convert_torch2transformers_minimind(torch_path, transformers_path)