-
Notifications
You must be signed in to change notification settings - Fork 6.5k
command line arg parsing for Wav2vec example on TPU #3741
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Comments
Any update on this issue? I have a similar issue, though when trying to run
|
Met the same issue when loading multilingual pre-trained wav2vec 2.0 (XLSR) models, and I used the sample code from documentation.
Errors show:
|
@kaleko I've solved this issue manually by dropping some keys in the state_dict. See : |
@xjtupanda Awesome your code solves the
|
@kaleko Basically this is because there are some keys missing in the AudioPretrainingConfig and leads to inconsistency. I guess by dropping those keys may solve your problem, but I don't find the key 'target_dict' in my Config. But you can reference this for how to locate those keys and drop them.
The result shows it's in the sub-dict 'task'.
|
@xjtupanda Great code! This also solves the issue for me. Did you manage to figure out whether dropping keys will have any negative impact on model performance? |
@KiriKoppelgaard I suppose not since I was just trying to extract features using pretrained models. But to work around this, in the end I used transformers package and loaded the pretrained model from faecbook's Hugging Face pages, and it worked just fine without any error or warning. |
A) wav2vec example when executed on TPU via using fairseq cli arguments leads to the following error:
Commandline used is:
B) When using hydra config file:
We see the following error:
This can be reproduced using:
The text was updated successfully, but these errors were encountered: