-
Notifications
You must be signed in to change notification settings - Fork 6.4k
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
Try to finetune NLLB but got an error: "Can't instantiate abstract class TrainModule with abstract methods requirements" #4989
Comments
@robotsp hey, I got this error when I reinstalled Stopes with the new version. I think Fairseq is not compatible with the new version of Stopes. I solved this problem by using the old version. |
Thanks @ibtiRaj |
@ibtiRaj But it seems a new error when you downgraded stopes to the old version, right? And @kauterry mentioned you (facebookresearch/stopes#24) to install the new version of stopes to solve the error. I confused if there is an end to end solution :) Best, |
@robotsp I'm confused too, I don't know what to do. |
@robotsp Can you tell me what your system configuration is, i.e. number of GPUs, GPU memory and system memory (RAM)? |
hi @robotsp, to fine tune NLLB model I use this command: srun python /home/admin/khadija/fairseq/examples/nllb/modeling/train/train_script.py cfg=nllb200_dense3.3B_finetune_on_fbseed cfg/dataset=bilingual cfg.dataset.lang_pairs=ary_Arab-eng_Latn cfg.fairseq_root=/home/admin/khadija/fairseq cfg.output_dir=/home/admin/khadija/storagenas/fine_tune_nllb_output/model_fine_tuned cfg.dropout=0.1 cfg.warmup=10 cfg.finetune_from_model=/home/admin/khadija/storagenas/projects/NLLB_modeles/checkpoint.pt and here are my configuration files: Is that what you meant? |
Hello, I have the same problem as you. |
Hello, I have implemented the abstract method by my own in fairseq/examples/nllb/modeling/train/train_script.py (pretty simple). It worked for me. However, when I try to load the model, I get errors. I am also trying to fine tune it, it seems that it is trying to initialise the model with my vocabulary instead of doing it with the vocabulary it has been trained on. Anyone have a solution to this problem? |
🐛 Bug
Try to finetune NLLB but got an error
Can't instantiate abstract class TrainModule with abstract methods requirements
CMD
Complete Error
Environment
pip
, source): pip+sourceAdditional context
The text was updated successfully, but these errors were encountered: