You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ImportError: cannot import name 'ShardedDDPOption' from 'transformers.trainer_utils' (/usr/local/lib/python3.10/dist-packages/transformers/trainer_utils.py)
The text was updated successfully, but these errors were encountered:
Hi @ubermenchh , this issue is caused by the deprecation of ShardedDDPOption in transformers since version 4.35.0.
We are working to fix this issue, meanwhile, you can try lower versioned transformers, e.g. v4.34.1.
ImportError Traceback (most recent call last)
in <cell line: 15>()
13 from intel_extension_for_transformers.transformers import OptimizedModel, QuantizationConfig
14 from intel_extension_for_transformers.transformers import metrics as nlp_metrics
---> 15 from intel_extension_for_transformers.transformers.trainer import NLPSeq2SeqTrainer
16 from transformers import (
17 AutoConfig,
/content/itrex/intel_extension_for_transformers/transformers/trainer.py in
66 nested_numpify,
67 )
---> 68 from transformers.trainer_utils import (
69 HPSearchBackend,
70 ShardedDDPOption,
ImportError: cannot import name 'ShardedDDPOption' from 'transformers.trainer_utils' (/usr/local/lib/python3.10/dist-packages/transformers/trainer_utils.py)
The text was updated successfully, but these errors were encountered: