Parcourir la source

Update utils_llama.py

Allen il y a 1 an
Parent
commit
174d1c5a14
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1 1
      research/long-context-llama/H2O/utils_llama.py

+ 1 - 1
research/long-context-llama/H2O/utils_llama.py

@@ -302,7 +302,7 @@ class H2OLlamaAttention(nn.Module):
             attn_weights = None
         
         if self.layer_idx == 0:
-            print(past_key_value.key_cache[0].shape, past_key_value.value_cache[0].shape, past_key_value.accumulated_attention_scores[0][0,0,0].item())
+            print(past_key_value.key_cache[0].shape, hidden_states.shape, past_key_value.value_cache[0].shape, past_key_value.accumulated_attention_scores[0][0,0,0].item())
 
         return attn_output, attn_weights, past_key_value