Upload openxlab_lora.sh
Browse files- openxlab_lora.sh +11 -0
openxlab_lora.sh
ADDED
@@ -0,0 +1,11 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
git clone --recurse-submodules https://github.com/Akegarasu/lora-scripts
|
2 |
+
cd lora-scripts
|
3 |
+
bash install.bash
|
4 |
+
# 将虚拟环境的 bin 目录添加到 PATH 环境变量
|
5 |
+
export PATH="/home/xlab-app-center/venv/bin:$PATH"
|
6 |
+
|
7 |
+
# 设置环境变量
|
8 |
+
export HF_ENDPOINT="https://hf-mirror.com"
|
9 |
+
|
10 |
+
# 运行 test.sh 脚本
|
11 |
+
bash test.sh
|