Open DenizK7 opened 5 months ago
How about
sudo apt-get install python3.9-dev
sudo apt install libpython3.9-dev
Also you need to link it so ldconfig
How about
sudo apt-get install python3.9-dev sudo apt install libpython3.9-dev
Also you need to link it so
ldconfig
I tried what you said before, unfortunately nothing changed.
Hi, could you please suggest what I should do as well? got same problem thank you also use python 3.9.18
Description
I encountered an error while trying to fine-tune the llama3 model using unsloth. The error occurs during the
trainer.train()
step, and it appears to be related to a missing Python.h header file and a compilation failure. Below are the relevant error messages and system details.Error Messages
/tmp/tmppap3l7o5/main.c:4:10: fatal error: Python.h: No such file or directory
CalledProcessError: Command '['/usr/bin/gcc', '/tmp/tmppap3l7o5/main.c', '-O3', '-I/home/deniz/myenv/lib/python3.9/site-packages/triton/common/../third_party/cuda/include', '-I/usr/include/python3.9', '-I/tmp/tmppap3l7o5', '-shared', '-fPIC', '-lcuda', '-o', '/tmp/tmppap3l7o5/_rms_layernorm_forward.cpython-39-x86_64-linux-gnu.so', '-L/lib/x86_64-linux-gnu', '-L/lib/i386-linux-gnu', '-L/lib/x86_64-linux-gnu', '-L/lib/i386-linux-gnu']' returned non-zero exit status 1.
System Details
Steps to Reproduce
Install dependencies:
Run the following code to initiate fine-tuning:
Troubleshooting Steps Taken
Ensured Python development headers are installed:
Verified CUDA and cuDNN installations.
Updated
gcc
to the latest version.Despite these steps, the error persists. Does anyone can help ?