deepspeedai / deepspeedai/DeepSpeedExamples

ModuleNotFoundError: No module named 'utils.data'

Open
#639 3 comments 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

I know this is a path problem, and I have modified the code to know the parent directory, but I still can't find the package, step1_supervised_finetuning and utils are at the same level, how do you solve it?

question:
from utils.data.data_utils import create_prompt_dataset
ModuleNotFoundError: No module named 'utils.data'
[2023-07-14 05:54:32,744] [INFO] [launch.py:315:sigkill_handler] Killing subprocess 88084
Traceback (most recent call last):
File "/202221633050/DeepSpeedExamples/applications/DeepSpeed-Chat/training/step1_supervised_finetuning/main.py", line 27, in
from utils.data.data_utils import create_prompt_dataset
ModuleNotFoundError: No module named 'utils.data'
Traceback (most recent call last):
File "/202221633050/DeepSpeedExamples/applications/DeepSpeed-Chat/training/step1_supervised_finetuning/main.py", line 27, in
from utils.data.data_utils import create_prompt_dataset
ModuleNotFoundError: No module named 'utils.data'
[2023-07-14 05:54:33,056] [INFO] [launch.py:315:sigkill_handler] Killing subprocess 88085
Traceback (most recent call last):
File "/202221633050/DeepSpeedExamples/applications/DeepSpeed-Chat/training/step1_supervised_finetuning/main.py", line 27, in
from utils.data.data_utils import create_prompt_dataset
ModuleNotFoundError: No module named 'utils.data'
Traceback (most recent call last):
File "/202221633050/DeepSpeedExamples/applications/DeepSpeed-Chat/training/step1_supervised_finetuning/main.py", line 27, in
from utils.data.data_utils import create_prompt_dataset
ModuleNotFoundError: No module named 'utils.data'
Traceback (most recent call last):
File "/202221633050/DeepSpeedExamples/applications/DeepSpeed-Chat/training/step1_supervised_finetuning/main.py", line 27, in
from utils.data.data_utils import create_prompt_dataset
ModuleNotFoundError: No module named 'utils.data'

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 by inspecting training/step1_supervised_finetuning/main.py and the locations of step1_supervised_finetuning and utils. Reproduce the import failure in the reported execution context and verify the package path. Done means the existing create_prompt_dataset import works without ModuleNotFoundError.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
machine-learning
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.