deepspeedai / deepspeedai/DeepSpeed
[BUG]Install deepspeed on the npu machine, and an error is reported during verification
Open
Nobody has claimed this yet.
bug
training
- Dominant language
- Python
- Stars
- 43.1k
- Forks
- 5k
- Avg merge
- 4d 15h
- Merged PRs (30d)
- 112
Description
deepspeed 0.16.7
root@60aa81cf274c:/home/HwHiAiUser# ds_report
[2025-05-14 08:07:51,177] [WARNING] [real_accelerator.py:194:get_accelerator] Setting accelerator to CPU. If you have GPU or other accelerator, we were unable to detect it.
[2025-05-14 08:07:51,194] [INFO] [real_accelerator.py:239:get_accelerator] Setting ds_accelerator to cpu (auto detect)
Traceback (most recent call last):
File "/usr/local/python3.9.2/bin/ds_report", line 3, in <module>
from deepspeed.env_report import cli_main
File "/usr/local/python3.9.2/lib/python3.9/site-packages/deepspeed/__init__.py", line 30, in <module>
from .runtime.engine import DeepSpeedEngine, DeepSpeedOptimizerCallable, DeepSpeedSchedulerCallable
File "/usr/local/python3.9.2/lib/python3.9/site-packages/deepspeed/runtime/engine.py", line 111, in <module>
from deepspeed.compile.backend import register_compile_pass, opt_passes
File "/usr/local/python3.9.2/lib/python3.9/site-packages/deepspeed/compile/backend.py", line 16, in <module>
import torch._inductor.scheduler
File "/usr/local/python3.9.2/lib/python3.9/site-packages/torch/_inductor/scheduler.py", line 20, in <module>
from .sizevars import SimplifyIndexing
File "/usr/local/python3.9.2/lib/python3.9/site-packages/torch/_inductor/sizevars.py", line 21, in <module>
class SizeVarAllocator:
File "/usr/local/python3.9.2/lib/python3.9/site-packages/torch/_inductor/sizevars.py", line 336, in SizeVarAllocator
def evaluate_expr(self, left: Union[Expr, sympy.logic.boolalg.Boolean]) -> bool:
AttributeError: module 'sympy.core.logic' has no attribute 'boolalg'
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Reproduce the reported ds_report failure in a Python 3.9.2 environment with DeepSpeed 0.16.7, then trace the import path through deepspeed/env_report, deepspeed/compile/backend.py, and the referenced PyTorch Inductor files. Done means the NPU environment is handled correctly and ds_report completes without the reported traceback.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python, pytorch
- Domain
- machine-learning
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100