Comments (1)
FWIW, this appears to be recently introduced - 0.13.1
does not have this issue, but 0.14.1
+ do. (This on Debian Bookworm, using python 3.11.2 as well as conda 3.11.9)
python3.11-dev
is installed
[1/11] c++ -MMD -MF pt_binding.o.d -DTORCH_EXTENSION_NAME=transformer_inference -DTORCH_API_INCLUDE_EXTENSION_H -DPYBIND11_COMPILER_TYPE=\"_gcc\" -DPYBIND11_STDLIB=\"_libstdcpp\" -DPYBIND11_BUILD_ABI=\"_cxxabi1011\" -I/home/user/python-3.11-venv/lib/python3.11/site-packages/deepspeed/ops/csrc/transformer/inference/includes -I/home/user/python-3.11-venv/lib/python3.11/site-packages/deepspeed/ops/csrc/includes -isystem /home/user/python-3.11-venv/lib/python3.11/site-packages/torch/include -isystem /home/user/python-3.11-venv/lib/python3.11/site-packages/torch/include/torch/csrc/api/include -isystem /home/user/python-3.11-venv/lib/python3.11/site-packages/torch/include/TH -isystem /home/user/python-3.11-venv/lib/python3.11/site-packages/torch/include/THC -isystem /usr/local/cuda/include -isystem include/python3.11 -D_GLIBCXX_USE_CXX11_ABI=0 -fPIC -std=c++17 -O3 -std=c++17 -g -Wno-reorder -DBF16_AVAILABLE -c /home/user/python-3.11-venv/lib/python3.11/site-packages/deepspeed/ops/csrc/transformer/inference/csrc/pt_binding.cpp -o pt_binding.o
FAILED: pt_binding.o
c++ -MMD -MF pt_binding.o.d -DTORCH_EXTENSION_NAME=transformer_inference -DTORCH_API_INCLUDE_EXTENSION_H -DPYBIND11_COMPILER_TYPE=\"_gcc\" -DPYBIND11_STDLIB=\"_libstdcpp\" -DPYBIND11_BUILD_ABI=\"_cxxabi1011\" -I/home/user/python-3.11-venv/lib/python3.11/site-packages/deepspeed/ops/csrc/transformer/inference/includes -I/home/user/python-3.11-venv/lib/python3.11/site-packages/deepspeed/ops/csrc/includes -isystem /home/user/python-3.11-venv/lib/python3.11/site-packages/torch/include -isystem /home/user/python-3.11-venv/lib/python3.11/site-packages/torch/include/torch/csrc/api/include -isystem /home/user/python-3.11-venv/lib/python3.11/site-packages/torch/include/TH -isystem /home/user/python-3.11-venv/lib/python3.11/site-packages/torch/include/THC -isystem /usr/local/cuda/include -isystem include/python3.11 -D_GLIBCXX_USE_CXX11_ABI=0 -fPIC -std=c++17 -O3 -std=c++17 -g -Wno-reorder -DBF16_AVAILABLE -c /home/user/python-3.11-venv/lib/python3.11/site-packages/deepspeed/ops/csrc/transformer/inference/csrc/pt_binding.cpp -o pt_binding.o
In file included from /home/user/python-3.11-venv/lib/python3.11/site-packages/torch/include/torch/csrc/Device.h:4,
from /home/user/python-3.11-venv/lib/python3.11/site-packages/torch/include/torch/csrc/api/include/torch/python.h:8,
from /home/user/python-3.11-venv/lib/python3.11/site-packages/torch/include/torch/extension.h:9,
from /home/user/python-3.11-venv/lib/python3.11/site-packages/deepspeed/ops/csrc/transformer/inference/csrc/pt_binding.cpp:7:
/home/user/python-3.11-venv/lib/python3.11/site-packages/torch/include/torch/csrc/python_headers.h:12:10: fatal error: Python.h: No such file or directory
12 | #include <Python.h>
| ^~~~~~~~~~
compilation terminated.
from deepspeed.
Related Issues (20)
- [BUG] Uneven work distribution caused by get_shard_size changes
- [BUG] When initializing model_engine, if an mpu is specified, it can lead to an excessively large checkpoint size, and the checkpoint may not be convertible through the `zero_to_fp32.py` script.
- [BUG] Uneven work distribution caused by get_shard_size changes HOT 8
- [REQUEST] pynvml package seems to be deprecated in favor of nvidia-ml-py HOT 1
- [BUG] BertLMHeadModel.from_pretrained hangs when using zero-3 / zero3-offload HOT 1
- [BUG]Why ZeroOneAdam is easy to OOM compared to Adam optimizer?
- [BUG] Why the results were inconsistent in two identical tests with config zero2 + overlap_comm HOT 3
- [BUG] Zero3: Post backward hook is not triggered for submodules whose inputs have .required_grad=False HOT 1
- Get a error when use deepspeed training with torch.compile HOT 1
- [BUG]AttributeError: module 'torch.nn.functional' has no attribute 'scaled_dot_product_attention'
- [BUG] fp_quantizer is not correctly built when non-jit installation
- [BUG]CUDA error in pipeline parallel HOT 3
- [BUG] FlopsProfiler upsample flops compute bug
- [BUG] Version >0.14.0 leads to `RuntimeError: Expected all tensors to be on the same device, but found at least two devices, cuda:0 and cpu!` HOT 3
- [BUG] Zero3: Gather the params for inference(huggingface_language_model.generate) in the end of 1 epoch and re-partition it for next epoch training HOT 6
- [REQUEST] How to install only the torch CPU version when I execute `pip install deepspeed`.
- [REQUEST] DeepSpeed-Ulysses with the Pure Deepspeed Zero
- [BUG] HOT 1
- [Question]how to run the mixtral inference in multi-node?
- [BUG] deepspeed overlap_comm data race HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from deepspeed.