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
parent
1f6187e08c
commit
7c5453d15d
|
|
@ -29,7 +29,8 @@ pandas
|
||||||
scipy
|
scipy
|
||||||
requests
|
requests
|
||||||
pillow
|
pillow
|
||||||
numpy<=2.0
|
numpy==1.26.4
|
||||||
|
# <=2.0.0
|
||||||
gradio==3.44.2
|
gradio==3.44.2
|
||||||
fastapi==0.95.1
|
fastapi==0.95.1
|
||||||
uvicorn==0.22.0
|
uvicorn==0.22.0
|
||||||
|
|
|
||||||
|
|
@ -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 "$@"
|
||||||
|
|
||||||
|
|
||||||
Loading…
Reference in New Issue