deepspeedai / deepspeedai/DeepSpeedExamples

DeepSpeed-Chat Step-1 training error

Open
#813 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
6.8k
Forks
1.1k
Avg merge
2d 16h
Merged PRs (30d)
1

Description

Hi, I cannot do step-1 SFT training after the refractoring.
pip install deepspeed>=0.9.0

I did this in the folder applications/DeepSpeed-Chat

git clone https://github.com/microsoft/DeepSpeedExamples.git
cd DeepSpeedExamples/applications/DeepSpeed-Chat/
pip install -r requirements.txt
pip install -e .

Then I enter into the applications/DeepSpeed-Chat/training/step1_supervised_finetuning folder.
I run bash training_scripts/opt/single_gpu/run_1.3b.sh.
However this gives me the error:

Traceback (most recent call last):
  File "/scratch/ybao/workspace/DeepSpeedExamples/applications/DeepSpeed-Chat/training/step1_supervised_finetuning/main.py", line 394, in <module>
    main()
  File "/scratch/ybao/workspace/DeepSpeedExamples/applications/DeepSpeed-Chat/training/step1_supervised_finetuning/main.py", line 264, in main
    train_dataset, eval_dataset = create_prompt_dataset(
  File "/scratch/ybao/workspace/DeepSpeedExamples/applications/DeepSpeed-Chat/dschat/utils/data/data_utils.py", line 350, in create_prompt_dataset
    return torch.load(train_fname), torch.load(eval_fname)
  File "/users/ybao/miniconda3/envs/deepspeed/lib/python3.10/site-packages/torch/serialization.py", line 1014, in load
    return _load(opened_zipfile,
  File "/users/ybao/miniconda3/envs/deepspeed/lib/python3.10/site-packages/torch/serialization.py", line 1422, in _load
    result = unpickler.load()
  File "/users/ybao/miniconda3/envs/deepspeed/lib/python3.10/site-packages/torch/serialization.py", line 1415, in find_class
    return super().find_class(mod_name, name)
ModuleNotFoundError: No module named 'utils'

From the error message, I cannot identify what utils module is missing, and from where I should check. There are so many utils in this project.
Another thing after the refractoring is that the train.py file on applications/DeepSpeed-Chat/ folder is missing but the readme still use it, which is very misleading.

Hope someone can help me identify the problem.
Thanks.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with training/step1_supervised_finetuning/main.py and dschat/utils/data/data_utils.py, then reproduce the failure with training_scripts/opt/single_gpu/run_1.3b.sh. Check how the cached datasets are loaded and how the README still references train.py. Done means Step-1 SFT runs after the refactoring and the README no longer directs users to the missing file.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
documentation, machine-learning
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.