modify some bug when create venv and train lora using a linux system linux in China. (#628)

* Update requirements.txt

modify numpy version

* 中国大陆linux系统服务器使用bash run_gui_sourceCN.sh 启动此脚本

自动激活创建好的虚拟环境,将国内镜像替换原网站,解决了分词器等下载失败的问题。
pull/636/head
Cyber-BlackCat 2025-02-22 11:06:27 +08:00 committed by GitHub
parent 1f6187e08c
commit 7c5453d15d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 17 additions and 1 deletions

View File

@ -29,7 +29,8 @@ pandas
scipy
requests
pillow
numpy<=2.0
numpy==1.26.4
# <=2.0.0
gradio==3.44.2
fastapi==0.95.1
uvicorn==0.22.0

15
run_gui_sourceCN.sh Normal file
View File

@ -0,0 +1,15 @@
#!/bin/bash
# 激活虚拟环境
source "./venv/bin/activate"
# 环境变量
export HF_HOME=huggingface
# 国内hg镜像
export HF_ENDPOINT=https://hf-mirror.com
export PYTHONUTF8=1
python gui.py --listen --tensorboard-port 6006 --port 28000 "$@"