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

AttributeError: 'CTCTrainer' object has no attribute 'use_amp' #61

Open
AntonioBuccola opened this issue Sep 1, 2022 · 1 comment
Open

Comments

@AntonioBuccola
Copy link

Hello again, I am trying to perform a fine tuning and it returns me this error. I searched inside the code and 'use_amp' is in the 'training_step' method.
How can I solved it? Thanks in advance.

To reproduce:
conda create -n huggingsound python=3.9 -y
conda activate huggingsound
pip install huggingsound

and then, after the definition of model, training data, tokens and output directory, I run the 'model.finetune' method and got this error.

@marijnschraagen
Copy link

marijnschraagen commented Jan 17, 2023

I had the same issue, putting self.use_amp = True as first line in def training_step() allowed me to start the training. However, I'm not sure if this is a useful workaround or if it hides problems with the Trainer instance that need to be resolved.

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

No branches or pull requests

2 participants