Closed hidoba closed 7 months ago
Thank you for the bug report and especially for the code to easily reproduce it. :star: The cache was being cloned, but it also tracks the current sequence length, and that wasn't being copied across to the clone. Fixed in the latest commit.
cache.clone()
seems to create a new cache that forgets the original cache.The following example produces rubbish.
If you replace the line
cache2 = cache.clone()
bycache2 = cache
, it will correctly continue the promptParis is a capital of France ...