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
'CTCTrainer' object has no attribute 'use_amp' #45
Comments
It is not a correct solution, but I removed
This is a completely reckless response, and I hope you can point me to the correct way to handle this. I don't know if this is the cause or not, but I am having a problem where evaluate fails for a finetuned model in this state. |
It's related to transformers version. I use the latest transformers, the correct fix is to use: use_cuda_amq: if self.use_cuda_amp: |
Thanks for answering. What version of Transformer do you have? |
transformers==4.21.1 |
transformers changed the name of the Trainer property Use transformers==4.19.2 or rename the variable as suggested by arikhalperin |
support use_cuda_amp property name used in recent transformers versions closes jonatasgrosman#45
Use the latest huggingsound.
AttributeError occurs when finetune is performed as shown in the sample below.
https://github.com/jonatasgrosman/huggingsound#fine-tuning
Can you find the cause?
The text was updated successfully, but these errors were encountered: