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

Fine-tuned version of model - a raised exception #5

Closed
egorsmkv opened this issue Feb 20, 2022 · 2 comments
Closed

Fine-tuned version of model - a raised exception #5

egorsmkv opened this issue Feb 20, 2022 · 2 comments

Comments

@egorsmkv
Copy link

Hello.

I am getting the following exception:

ValueError: Not fine-tuned model! Please, fine-tune the model first.

I have looked into the code and see that it needs to have Wav2Vec2ForPreTraining (self.model_config.architectures) in the ctc_finetuded_architectures variable.

Now this variable has these values:

{'WavLMForCTC', 'HubertForCTC', 'UniSpeechSatForCTC', 'Wav2Vec2ForCTC', 'UniSpeechForCTC', 'SEWForCTC', 'SEWDForCTC'}

I am running the code with this model - https://huggingface.co/Yehor/wav2vec2-xls-r-300m-uk-with-lm

I disabled the code that raises that exception and it seems there is no issue.

I would like to use some type of configuration to be able to run the code without changing the library code.

@jonatasgrosman
Copy link
Owner

Upgrade the library and try to reproduce the error again. I've just changed the code, and that issue is maybe fixed now.

@egorsmkv
Copy link
Author

Now it works correctly. Thank you!

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