LLaMA-Factory icon indicating copy to clipboard operation
LLaMA-Factory copied to clipboard

VENV环境运行时也只能跑在默认环境上

Open cbb2625274797 opened this issue 11 months ago • 5 comments

Reminder

  • [X] I have read the above rules and searched the existing issues.

System Info

image

Reproduction

如图,即便我使用了虚拟环境,但是llama-factory不认,我的虚拟环境配置齐全,但是只认我卸载掉torch的系统环境
![image](https://github.com/user-attachments/assets/7f38cc57-c063-4352-96b6-9f12e9fea834)

Others

No response

cbb2625274797 avatar Jan 11 '25 18:01 cbb2625274797

image

cbb2625274797 avatar Jan 11 '25 18:01 cbb2625274797

试一下 conda 管理的虚拟环境呢?

codemayq avatar Jan 12 '25 05:01 codemayq

试一下 conda 管理的虚拟环境呢?

conda环境也复现了,本来是好的,我把CUDA卸载后重装了新版本,就又变成系统环境了。conda环境是python3.11,系统环境是3.10的,我特地卸载了系统环境的torch来区分系统环境和conda环境 image

image

cbb2625274797 avatar Jan 12 '25 11:01 cbb2625274797

试一下 conda 管理的虚拟环境呢?

image

试了直接命令行运行,不通过pycharm里面命令行运行也是一样

cbb2625274797 avatar Jan 12 '25 13:01 cbb2625274797

盲猜VENV环境中没装deepspeed

enji-zhou avatar Apr 08 '25 03:04 enji-zhou