howard-hou commited on
Commit
898a24b
1 Parent(s): c25fbe0

Update modeling_rwkv.py

Browse files
Files changed (1) hide show
  1. modeling_rwkv.py +2 -2
modeling_rwkv.py CHANGED
@@ -320,8 +320,8 @@ class RWKV(MyModule):
320
  w['emb.weight'] = F.layer_norm(w['emb.weight'], (args.n_embd,), weight=w['blocks.0.ln0.weight'], bias=w['blocks.0.ln0.bias'])
321
  except:
322
  w['emb.weight'] = F.layer_norm(w['emb.weight'].float(), (args.n_embd,), weight=w['blocks.0.ln0.weight'].float(), bias=w['blocks.0.ln0.bias'].float())
323
- del w['blocks.0.ln0.weight']
324
- del w['blocks.0.ln0.bias']
325
 
326
  print_need_newline = False
327
 
 
320
  w['emb.weight'] = F.layer_norm(w['emb.weight'], (args.n_embd,), weight=w['blocks.0.ln0.weight'], bias=w['blocks.0.ln0.bias'])
321
  except:
322
  w['emb.weight'] = F.layer_norm(w['emb.weight'].float(), (args.n_embd,), weight=w['blocks.0.ln0.weight'].float(), bias=w['blocks.0.ln0.bias'].float())
323
+ # del w['blocks.0.ln0.weight']
324
+ # del w['blocks.0.ln0.bias']
325
 
326
  print_need_newline = False
327