-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinstall.js
78 lines (78 loc) · 1.68 KB
/
install.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
module.exports = {
run: [
// Edit this step to customize the git repository to use
{
method: "shell.run",
params: {
message: [
"git clone --recursive https://github.com/ant-research/MagicQuill app",
]
}
},
{
method: "shell.run",
params: {
venv: "env",
path: "app",
message: [
"uv pip install gradio_magicquill-0.0.1-py3-none-any.whl",
"uv pip install -r requirements.txt"
]
}
},
{
when: "{{platform === 'win32'}}",
method: "shell.run",
params: {
venv: "env",
path: "app",
message: [
"copy /Y pyproject.toml MagicQuill\\LLaVA\\",
"uv pip install -e MagicQuill\\LLaVA\\",
// "uv pip uninstall -y torch torchvision torchaudio"
]
},
next: "torch"
},
{
when: "{{platform !== 'win32'}}",
method: "shell.run",
params: {
venv: "env",
path: "app",
message: [
"cp -f pyproject.toml MagicQuill/LLaVA/",
"uv pip install -e MagicQuill/LLaVA/",
// "uv pip uninstall -y torch torchvision torchaudio"
]
}
},
{
id: "torch",
method: "script.start",
params: {
uri: "torch.js",
params: {
venv: "env",
path: "app",
// xformers: true
}
}
},
{
method: "shell.run",
params: {
path: "app",
message: [
"git clone https://huggingface.co/LiuZichen/MagicQuill-models models"
]
}
},
{
method: "fs.link",
params: {
venv: "app/env"
}
}
]
}