Update llama.py

This commit is contained in:
Daniel Han 2024-09-25 12:42:24 -07:00
commit 5c7cb05923

View file

@ -1387,7 +1387,8 @@ def _wrap_fast_inference(generate, device_type, dtype, model):
# For newer HF
if SUPPORTS_LLAMA32:
kwargs["cache_implementation"] = "hybrid"
# kwargs["cache_implementation"] = "hybrid"
pass
else:
kwargs["cache_implementation"] = "dynamic"
# For num_logits_to_keep