Explorar o código

Update cache_utils.py

Allen hai 1 ano
pai
achega
7b619fb153
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      research/long-context-llama/H2O/cache_utils.py

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

@@ -555,8 +555,8 @@ class HHCache(Cache):
         cache = cls(window_length, num_hh_tokens)
         if past_key_values is not None:
             for layer_idx in range(len(past_key_values)):
-                key_states, value_states, accumulated_attention_scores = past_key_values[layer_idx]
                 import pdb; pdb.set_trace()
+                key_states, value_states, accumulated_attention_scores = past_key_values[layer_idx]
                 cache.update(key_states, value_states, layer_idx, accumulated_attention_scores=accumulated_attention_scores)
         return cache