-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathinstall.js
More file actions
80 lines (80 loc) · 2.4 KB
/
Copy pathinstall.js
File metadata and controls
80 lines (80 loc) · 2.4 KB
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
79
80
module.exports = {
run: [
// Edit this step to customize the git repository to use
{
method: "shell.run",
params: {
message: [
"git clone https://github.com/TheAwaken1/StoryCraft-AI.git app",
]
}
},
// Delete this step if your project does not use torch
{
method: "script.start",
params: {
uri: "torch.js",
params: {
venv: "env", // Edit this to customize the venv folder path
path: "app", // Edit this to customize the path to start the shell from
// xformers: true // uncomment this line if your project requires xformers
// triton: true // uncomment this line if your project requires triton
// sageattention: true // uncomment this line if your project requires sageattention
}
}
},
// Pip upgrade
{
"method": "shell.run",
"params": {
"venv": "env",
"path": "app",
"message": "python.exe -m pip install --upgrade pip"
}
},
// Edit this step with your custom install commands
{
"method": "shell.run",
"params": {
"venv": "env",
"path": "app",
"env": {
"COQUI_TTS_AGREE_LICENSE": "1",
"CMAKE_ARGS": "-DGGML_CUDA=on" // CMAKE_ARGS set here
},
"message": "pip install coqui-tts==0.25.3 --no-cache-dir --use-pep517"
}
},
{
method: "shell.run",
params: {
venv: "env",
path: "app",
message: [
"uv pip install bitsandbytes>=0.43.0"
],
}
},
{
method: "shell.run",
params: {
venv: "env", // Edit this to customize the venv folder path
path: "app", // Edit this to customize the path to start the shell from
message: [
"uv pip install gradio devicetorch",
"uv pip install -r requirements.txt"
]
}
},
{
method: "shell.run",
params: {
venv: "env",
path: "app",
message: [
"python -c \"import nltk, os; nltk_data_path = os.path.join(os.getcwd(), 'nltk_data'); os.makedirs(nltk_data_path, exist_ok=True); nltk.data.path.append(nltk_data_path); nltk.download('punkt', download_dir=nltk_data_path, quiet=True); print('NLTK punkt downloaded to', nltk_data_path)\""
],
}
},
]
}