KaleiNeely commited on
Commit
f0decc7
1 Parent(s): 9b9dc85

Update modeling_rwkv5.py

Browse files
Files changed (1) hide show
  1. modeling_rwkv5.py +0 -3
modeling_rwkv5.py CHANGED
@@ -614,9 +614,6 @@ class RwkvModel(RwkvPreTrainedModel):
614
  if output_attentions:
615
  all_self_attentions = all_self_attentions + (attentions,)
616
 
617
- if self.config.model_version == "5_2" and seq_mode:
618
- hidden_states = hidden_states[:, -1, :].unsqueeze(1)
619
-
620
  hidden_states = self.ln_out(hidden_states)
621
 
622
  if output_hidden_states:
 
614
  if output_attentions:
615
  all_self_attentions = all_self_attentions + (attentions,)
616
 
 
 
 
617
  hidden_states = self.ln_out(hidden_states)
618
 
619
  if output_hidden_states: