Update llama.py

This commit is contained in:
Daniel Han-Chen 2024-02-01 20:12:59 +11:00
commit e791db9b06

View file

@ -225,7 +225,7 @@ def LlamaAttention_fast_forward_inference(
Xn = hidden_states
bsz, _, hd = hidden_states.size()
K1, V1 = past_key_value
dtype = X.dtype
dtype = Xn.dtype
n_heads = self.num_heads
n_groups = self.num_key_value_groups