Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cache error in script #116

Open
ancheveleva opened this issue May 10, 2023 · 1 comment
Open

Cache error in script #116

ancheveleva opened this issue May 10, 2023 · 1 comment
Assignees

Comments

@ancheveleva
Copy link
Collaborator

При запуске probing_experiment.py выдает: AttributeError: 'TransformersLoader' object has no attribute 'cache'

experiment.transformer_model.cache.clear() # clear cache for optimal work before a new language

Вижу, что потому что в новой версии пробинга действительно нет такого атрибута, а появился класс Caching. Можно тогда попросить в скрипте эксперимента тоже исправить?

self.Caching = Cacher(tokenizer=self.tokenizer, cache={})

@Vitaly-Protasov
Copy link
Collaborator

Vitaly-Protasov commented May 11, 2023

@ancheveleva Thanks for noticing. Could you create PR with fix?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants