Closed manyuanbin closed 5 months ago
ImportError: cannot import name 'T5BiLDModel' from 'transformers.models.t5.modeling_t5' when run_bild_translation.py
No response
examples
CUDA_VISIBLE_DEVICES=0 python run_bild_translation.py --model bild --small ../../models/mT5-small-iwslt2017-de-en.bin --large ../../models/mT5-large-iwslt2017-de-en.bin --dataset_name iwslt2017 --dataset_config iwslt2017-de-en --source_lang de --target_lang en --bild_rollback 3 --bild_fallback 2
build successfully
python -m pip install -e .
System Info
ImportError: cannot import name 'T5BiLDModel' from 'transformers.models.t5.modeling_t5' when run_bild_translation.py
Who can help?
No response
Information
Tasks
examples
folder (such as GLUE/SQuAD, ...)Reproduction
CUDA_VISIBLE_DEVICES=0 python run_bild_translation.py --model bild --small ../../models/mT5-small-iwslt2017-de-en.bin --large ../../models/mT5-large-iwslt2017-de-en.bin --dataset_name iwslt2017 --dataset_config iwslt2017-de-en --source_lang de --target_lang en --bild_rollback 3 --bild_fallback 2
Expected behavior
build successfully