Closed NarenZen closed 1 year ago
Hi @NarenZen , the error in question:
fatal error: Python.h: No such file or directory
Usually means that python-dev is not installed. See: https://stackoverflow.com/questions/21530577/fatal-error-python-h-no-such-file-or-directory for more details.
If you still have issues, I'd recommend trying the docker img in the requirements/install instructions.
@vchiley I'm having the same issue when using the docker img, could you enlighten me where I might go wrong?
docker pull mosaicml/pytorch:1.13.1_cu117-python3.10-ubuntu20.04
python -m venv llmfoundry-venv
source llmfoundry-venv/bin/activate
docker run mosaicml/pytorch:1.13.1_cu117-python3.10-ubuntu20.04
pip install -U pip
pip install torch==1.13.1
pip install packaging
pip install -e ".[gpu]"
My system: python 3.10, cuda 1.17 torch 1.13.1 ubuntu 20.04 GPU H100
Hi @NarenZen , the error in question:
fatal error: Python.h: No such file or directory
Usually means that python-dev is not installed. See: https://stackoverflow.com/questions/21530577/fatal-error-python-h-no-such-file-or-directory for more details.
Worked for me. Thanks
python version: 3.10.11
cuda version: 11.7
torch version: 1.13.1
ubuntu version: 20
Error: ERROR: Could not build wheels for flash-attn, xentropy-cuda-lib, which is required to install pyproject.toml-based projects
Traceback:
GPU device: A6000