Hugging Face Forums
Outputs change if re-using KVCache (past_key_values) for model.forward and generation
🤗Transformers
John6666
January 20, 2025, 4:38pm
2
I tried the code and got a warning, but I wonder if this is related to the change.
show post in topic
Related topics
Topic
Replies
Views
Activity
Model.generate use_cache=True generates different results than use_cache=False
Intermediate
3
347
March 4, 2025
Storing and loading KV cache
🤗Transformers
6
1566
October 21, 2024
Past_key_values - why not past_key_values_queries?
Beginners
5
11249
October 15, 2023
The way to get Seq2SeqLM's `decoder_input_ids` to obtain `past_key_values`
Beginners
0
1359
October 25, 2020
GPT-2 Forward w/ and w/o caching of past gives different results
Beginners
0
421
May 31, 2022