souging commited on
Commit
fcf5728
·
verified ·
1 Parent(s): 10449dc

Update 1.js

Browse files
Files changed (1) hide show
  1. 1.js +102 -10
1.js CHANGED
@@ -1,11 +1,103 @@
1
  module.exports = {
2
- apps: Array.from({ length: 14 }, (_, i) => ({
3
- name: `model${i}`,
4
- script: 'app.py',
5
- //interpreter: '/root/miniconda3/envs/three-gen-validation/bin/python',
6
- env: {
7
- CUDA_VISIBLE_DEVICES: `${i}`,
8
- },
9
- args: `--port ${10000 + i}`,
10
- }))
11
- };
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  module.exports = {
2
+ apps : [
3
+ {
4
+ name: 'model0',
5
+ script: 'app.py',
6
+ interpreter: 'python',
7
+ env:{ CUDA_VISIBLE_DEVICES: "0" },
8
+ args: '--port 10000'
9
+ },
10
+ {
11
+ name: 'model1',
12
+ script: 'app.py',
13
+ interpreter: 'python',
14
+ env:{ CUDA_VISIBLE_DEVICES: "1" },
15
+ args: '--port 10001'
16
+ },
17
+ {
18
+ name: 'model2',
19
+ script: 'app.py',
20
+ interpreter: 'python',
21
+ env:{ CUDA_VISIBLE_DEVICES: "2" },
22
+ args: '--port 10002'
23
+ },
24
+ {
25
+ name: 'model3',
26
+ script: 'app.py',
27
+ interpreter: 'python',
28
+ env:{ CUDA_VISIBLE_DEVICES: "3" },
29
+ args: '--port 10003'
30
+ },
31
+ {
32
+ name: 'model4',
33
+ script: 'app.py',
34
+ interpreter: 'python',
35
+ env:{ CUDA_VISIBLE_DEVICES: "4" },
36
+ args: '--port 10004'
37
+ },
38
+ {
39
+ name: 'model5',
40
+ script: 'app.py',
41
+ interpreter: 'python',
42
+ env:{ CUDA_VISIBLE_DEVICES: "5" },
43
+ args: '--port 10005'
44
+ },
45
+ {
46
+ name: 'model6',
47
+ script: 'app.py',
48
+ interpreter: 'python',
49
+ env:{ CUDA_VISIBLE_DEVICES: "6" },
50
+ args: '--port 10006'
51
+ },
52
+ {
53
+ name: 'model7',
54
+ script: 'app.py',
55
+ interpreter: 'python',
56
+ env:{ CUDA_VISIBLE_DEVICES: "7" },
57
+ args: '--port 10007'
58
+ },
59
+ {
60
+ name: 'model8',
61
+ script: 'app.py',
62
+ interpreter: 'python',
63
+ env:{ CUDA_VISIBLE_DEVICES: "8" },
64
+ args: '--port 10008'
65
+ },
66
+ {
67
+ name: 'model9',
68
+ script: 'app.py',
69
+ interpreter: 'python',
70
+ env:{ CUDA_VISIBLE_DEVICES: "9" },
71
+ args: '--port 10009'
72
+ },
73
+ {
74
+ name: 'model10',
75
+ script: 'app.py',
76
+ interpreter: 'python',
77
+ env:{ CUDA_VISIBLE_DEVICES: "10" },
78
+ args: '--port 10010'
79
+ },
80
+ {
81
+ name: 'model11',
82
+ script: 'app.py',
83
+ interpreter: 'python',
84
+ env:{ CUDA_VISIBLE_DEVICES: "11" },
85
+ args: '--port 10011'
86
+ },
87
+ {
88
+ name: 'model12',
89
+ script: 'app.py',
90
+ interpreter: 'python',
91
+ env:{ CUDA_VISIBLE_DEVICES: "12" },
92
+ args: '--port 10012'
93
+ },
94
+ {
95
+ name: 'model13',
96
+ script: 'app.py',
97
+ interpreter: 'python',
98
+ env:{ CUDA_VISIBLE_DEVICES: "13" },
99
+ args: '--port 10013'
100
+ }
101
+
102
+ ]
103
+ };