Closed complete-dope closed 1 year ago
Hi,
transformers
is not a package to be installed via pip
(though I am aware that there is a package with the same name), it is a module inside OSCAR, as below:
(Pdb++) transformers.__path__
_NamespacePath(['<some directory>/Oscar/transformers'])
(Pdb++) transformers.pytorch_transformers.__path__
['<some directory>/Oscar/transformers/pytorch_transformers']
(Pdb++) from transformers.pytorch_transformers import AdamW, WarmupLinearSchedule
# no error, imported successfully
For details on the OSCAR version, see this issue.
I am unable to import transformers.pytorch_transformers
Please provide a compatible version in the requirements file