Open yangyang6666 opened 1 day ago
This is right! However, you can avoid the conflict.
You could remove torch when installing llamafactory, then, after installed successfully,next to install torch_npu.
try install them independently and run pip install --no-deps .
I change setup.py "torch-npu": [..., "torch-npu==2.1.0.post3", ...], to "torch-npu": [..., "torch-npu==2.1.0", ...], then I got a new problem:
ERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts. torchvision 0.18.1+cpu requires torch==2.3.1, but you have torch 2.1.0 which is incompatible.
I resolve above problem and get this during running train:
ImportError: /usr/local/lib/python3.10/site-packages/change_data_ptr.cpython-310-x86_64-linux-gnu.so: undefined symbol: _ZN3c104impl3cow11cow_deleterEPv Traceback (most recent call last):
and when I run $ llamafactory-cli env:
/home/tiger/.local/lib/python3.10/site-packages/torch_npu/dynamo/init.py:18: UserWarning: Register eager implementation for the 'npu' backend of dynamo, as torch_npu was not compiled with torchair.
warnings.warn(
Traceback (most recent call last):
File "/home/tiger/.local/bin/llamafactory-cli", line 5, in
Reminder
System Info
ERROR: Cannot install llamafactory and llamafactory[metrics,torch-npu]==0.9.1.dev0 because these package versions have conflicting dependencies.
The conflict is caused by: llamafactory[metrics,torch-npu] 0.9.1.dev0 depends on torch==2.1.0; extra == "torch-npu" torch-npu 2.1.0.post3 depends on torch==2.1.0+cpu
Reproduction
pip install -e ".[torch-npu,metrics]"
Expected behavior
No response
Others
No response