fireballoon commited on
Commit
7502c3a
1 Parent(s): 3cdc5c4

Update convert_baichuan_to_llama.py

Browse files
Files changed (1) hide show
  1. convert_baichuan_to_llama.py +1 -1
convert_baichuan_to_llama.py CHANGED
@@ -11,4 +11,4 @@ for key in baichuan:
11
  llama[key.replace('W_pack', 'v_proj')] = baichuan[key][4096 * 2:]
12
  else:
13
  llama[key] = baichuan[key]
14
- torch.save(baichuan, "pytorch_model.bin")
 
11
  llama[key.replace('W_pack', 'v_proj')] = baichuan[key][4096 * 2:]
12
  else:
13
  llama[key] = baichuan[key]
14
+ torch.save(llama, "pytorch_model.bin")