DeepSpeedExamples icon indicating copy to clipboard operation
DeepSpeedExamples copied to clipboard

Error encountered running DeepSpeedExamples/HelloDeepSpeed/train_bert.py

Open jeyblu opened this issue 3 years ago • 3 comments

Error encountered running DeepSpeedExamples/HelloDeepSpeed/train_bert.py

$ python train_bert.py --checkpoint_dir ./experiments
Traceback (most recent call last):
  File "train_bert.py", line 9, in <module>
    import datasets
ModuleNotFoundError: No module named 'datasets'

jeyblu avatar Nov 23 '21 22:11 jeyblu

@jeyblu, is this still a problem? Thanks!

tjruwase avatar Jan 03 '22 19:01 tjruwase

Yes it's still a problem. Thanks.

jeyblu avatar Jan 04 '22 21:01 jeyblu

It looks like that datasets package is missing from your current environment, which is specified in this requirements.txt file.

Did you do pip install -r requirements.txt prior to running python train_bert.py --checkpoint_dir ./experiments?

gugarosa avatar Jun 09 '22 18:06 gugarosa