Closed OREYR closed 3 months ago
Hi @sustcsonglin , is there a reason why we need to change RecurrentCache to Cache here? Does RecurrentCache apply to RNN models only?
@OREYR Thank you for reporting this bug.
is there a reason why we need to change RecurrentCache to Cache here? Does RecurrentCache apply to RNN models only?
The ongoing plan is to support more cache types, e.g., shortconv, sliding window, rnn, token-shift. So It would be better to rename it to a more general name.
Thank you @yzhangcs . I wonder if it’s ok to continue to use RecurrentCache to train or evaluate GLA and RetNet in the repository at the moment.
@OREYR Have you updated all the code. Which line did you met this bug. I found it's ok
>>> from fla.models.utils import Cache
>>> Cache.from_legacy_cache
<bound method Cache.from_legacy_cache of <class 'fla.models.utils.Cache'>>
I tried the above code and got type object 'Cache' has no attribute 'from_legacy_cache'. There is no Cache class defined in the specified file. I only see RecurrentCache class.
sry, fogot to push the commits 🤣
Hi, I see that the RecurrentCache was renamed to Cache for gla model. However, it raised error as Cache does not have method “from_legacy_cache”.