'TranslationFromPretrainedBARTTask' object has no attribute 'args'
🐛 Bug
Traceback (most recent call last):
File "/home/gpu24/work/fairseq/.venv/bin/fairseq-interactive", line 33, in
To Reproduce
langs=ar_AR,cs_CZ,de_DE,en_XX,es_XX,et_EE,fi_FI,fr_XX,gu_IN,hi_IN,it_IT,ja_XX,kk_KZ,ko_KR,lt_LT,lv_LV,my_MM,ne_NP,nl_XX,ro_RO,ru_RU,si_LK,tr_TR,vi_VN,zh_CN fairseq-interactive data-bin/en-es --path models/enes/checkpoint_best.pt --task translation_from_pretrained_bart -t es_XX -s en_XX --langs $langs --remove-bpe 'sentencepiece' --beam 5 --cpu
Code sample
Expected behavior
Environment
- fairseq Version (e.g., 1.0 or master): 1.0.0
- PyTorch Version (e.g., 1.0) 1.7.1
- OS (e.g., Linux):Ubuntu 18.04
- How you installed fairseq (
pip, source): source - Build command you used (if compiling from source):
- Python version: 3.7
- CUDA/cuDNN version: 10.1
- GPU models and configuration: Nvidia 3090
- Any other relevant information:
Additional context
same issue here
same issue here
CC @myleott @ngoyal2707 did this file not get updated in the hydra integration? Looks like we should be using self.cfg instead of self.args
i am also having the same issue. my training code that worked 3 weeks ago does not work anymore
same issue here, reverting to a previous commit solves the issue temporarily
same issue here, reverting to a previous commit solves the issue temporarily
Which previous commit?
Same issue here
Same issue here
pip install fairseq==0.10.2
It works for me.
try to add
self.args = args
in the def init(self, args, src_dict, tgt_dict): of translation_from_pretrained_bart.py
It works for me.
try to add
self.args = argsin the def init(self, args, src_dict, tgt_dict): of translation_from_pretrained_bart.py It works for me.
thank you , it also works for me.