Upload lora-scripts/run.ipynb with huggingface_hub
Browse files- lora-scripts/run.ipynb +98 -0
lora-scripts/run.ipynb
ADDED
@@ -0,0 +1,98 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"cells": [
|
3 |
+
{
|
4 |
+
"cell_type": "markdown",
|
5 |
+
"id": "5e35269a-ec20-41a3-93a6-da798c3a8401",
|
6 |
+
"metadata": {},
|
7 |
+
"source": [
|
8 |
+
"# LoRA Train UI: SD-Trainer\n",
|
9 |
+
"\n",
|
10 |
+
"LoRA Training UI By [Akegarasu](https://github.com/Akegarasu)\n",
|
11 |
+
"User Guide:https://github.com/Akegarasu/lora-scripts/blob/main/README.md\n",
|
12 |
+
"\n",
|
13 |
+
"LoRA 训练 By [秋葉aaaki@bilibili](https://space.bilibili.com/12566101)\n",
|
14 |
+
"使用方法:https://www.bilibili.com/read/cv24050162/"
|
15 |
+
]
|
16 |
+
},
|
17 |
+
{
|
18 |
+
"cell_type": "markdown",
|
19 |
+
"id": "12c2a3d0-9aec-4680-9b8a-cb02cac48de6",
|
20 |
+
"metadata": {},
|
21 |
+
"source": [
|
22 |
+
"### Run | 运行"
|
23 |
+
]
|
24 |
+
},
|
25 |
+
{
|
26 |
+
"cell_type": "code",
|
27 |
+
"execution_count": null,
|
28 |
+
"id": "7ae0678f-69df-4a12-a0bc-1325e52e9122",
|
29 |
+
"metadata": {},
|
30 |
+
"outputs": [],
|
31 |
+
"source": [
|
32 |
+
"import sys\n",
|
33 |
+
"!export HF_HOME=huggingface && $sys.executable gui.py --host 0.0.0.0"
|
34 |
+
]
|
35 |
+
},
|
36 |
+
{
|
37 |
+
"cell_type": "markdown",
|
38 |
+
"id": "99edaa2b-9ba2-4fde-9b2e-af5dc8bf7062",
|
39 |
+
"metadata": {},
|
40 |
+
"source": [
|
41 |
+
"## Update | 更新"
|
42 |
+
]
|
43 |
+
},
|
44 |
+
{
|
45 |
+
"cell_type": "markdown",
|
46 |
+
"metadata": {},
|
47 |
+
"source": [
|
48 |
+
"### Github"
|
49 |
+
]
|
50 |
+
},
|
51 |
+
{
|
52 |
+
"cell_type": "code",
|
53 |
+
"execution_count": null,
|
54 |
+
"metadata": {},
|
55 |
+
"outputs": [],
|
56 |
+
"source": [
|
57 |
+
"!git pull && git submodule init && git submodule update"
|
58 |
+
]
|
59 |
+
},
|
60 |
+
{
|
61 |
+
"cell_type": "markdown",
|
62 |
+
"metadata": {},
|
63 |
+
"source": [
|
64 |
+
"### 国内镜像加速"
|
65 |
+
]
|
66 |
+
},
|
67 |
+
{
|
68 |
+
"cell_type": "code",
|
69 |
+
"execution_count": null,
|
70 |
+
"metadata": {},
|
71 |
+
"outputs": [],
|
72 |
+
"source": [
|
73 |
+
"!export GIT_CONFIG_GLOBAL=./assets/gitconfig-cn && export GIT_TERMINAL_PROMPT=false && git pull && git submodule init && git submodule update"
|
74 |
+
]
|
75 |
+
}
|
76 |
+
],
|
77 |
+
"metadata": {
|
78 |
+
"kernelspec": {
|
79 |
+
"display_name": "Python 3 (ipykernel)",
|
80 |
+
"language": "python",
|
81 |
+
"name": "python3"
|
82 |
+
},
|
83 |
+
"language_info": {
|
84 |
+
"codemirror_mode": {
|
85 |
+
"name": "ipython",
|
86 |
+
"version": 3
|
87 |
+
},
|
88 |
+
"file_extension": ".py",
|
89 |
+
"mimetype": "text/x-python",
|
90 |
+
"name": "python",
|
91 |
+
"nbconvert_exporter": "python",
|
92 |
+
"pygments_lexer": "ipython3",
|
93 |
+
"version": "3.10.8"
|
94 |
+
}
|
95 |
+
},
|
96 |
+
"nbformat": 4,
|
97 |
+
"nbformat_minor": 5
|
98 |
+
}
|