Skip to content

Commit aa2eb9d

Browse files
Update config.json
1 parent 619d20f commit aa2eb9d

File tree

1 file changed

+27
-55
lines changed

1 file changed

+27
-55
lines changed

config.json

Lines changed: 27 additions & 55 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
1-
{
21
"models": [
3-
{
2+
{
43
"serviceName": "token_counter_openai",
54
"modelBasePath": "src/token_counter/openai/local/.",
65
"apiBasePath": "token_counter/openai/local/",
@@ -9,33 +8,40 @@
98
"nginx": [],
109
"build": true
1110
},
12-
{
11+
{
1312
"serviceName": "asr_whisper_en",
1413
"modelBasePath": "src/asr/whisper_en/local/.",
1514
"apiBasePath": "asr/whisper_en/local/",
1615
"containerPort": 8000,
17-
"environment": {},
16+
"environment": {
17+
"NVIDIA_VISIBLE_DEVICES": "${NVIDIA_VISIBLE_DEVICES}"
18+
},
1819
"nginx": ["client_max_body_size 100M;", "proxy_read_timeout 600;", "proxy_connect_timeout 600;", "proxy_send_timeout 600;"],
1920
"constraints": ["node.labels.node_vm_type==gpu"],
2021
"build": false
2122
},
22-
{
23+
{
2324
"serviceName": "asr_lang_detect",
2425
"modelBasePath": "src/asr/whisper_lang_rec/local/.",
2526
"apiBasePath": "asr/whisper_lang_rec/local/",
2627
"containerPort": 8000,
27-
"environment": {},
28+
"environment": {
29+
"NVIDIA_VISIBLE_DEVICES": "${NVIDIA_VISIBLE_DEVICES}"
30+
},
2831
"nginx": ["client_max_body_size 100M;", "proxy_read_timeout 600;", "proxy_connect_timeout 600;", "proxy_send_timeout 600;"],
2932
"constraints": ["node.labels.node_vm_type==gpu"],
3033
"build": false
31-
},
34+
},
3235
{
3336
"serviceName": "ner",
3437
"modelBasePath": "src/ner/agri_ner_akai/local/.",
3538
"apiBasePath": "ner/agri_ner_akai/local/",
3639
"containerPort": 8000,
37-
"environment": {},
40+
"environment": {
41+
"NVIDIA_VISIBLE_DEVICES": "${NVIDIA_VISIBLE_DEVICES}"
42+
},
3843
"nginx": [],
44+
"constraints": ["node.labels.node_vm_type==gpu"],
3945
"build": false
4046
},
4147
{
@@ -64,7 +70,7 @@
6470
"environment": {},
6571
"nginx": [],
6672
"constraints": ["node.role==worker"],
67-
"build": false
73+
"build": true
6874
},
6975
{
7076
"serviceName": "text_translation_azure_dict",
@@ -86,27 +92,16 @@
8692
"OPENAI_API_KEY": "${OPENAI_API_KEY}"
8793
},
8894
"nginx": [],
89-
"constraints": ["node.labels.node_vm_type==gpu"],
9095
"build": false
9196
},
92-
{
93-
"serviceName": "text_translation_azure",
94-
"modelBasePath": "src/text_translation/azure/remote/.",
95-
"apiBasePath": "/text_translation/azure/remote",
96-
"containerPort": 8000,
97-
"environment": {
98-
"AZURE_TRANSLATE_KEY": "${AZURE_TRANSLATE_KEY}"
99-
},
100-
"nginx": [],
101-
"constraints": ["node.labels.node_vm_type==gpu"],
102-
"build": false
103-
},
10497
{
10598
"serviceName": "asr_mms",
10699
"modelBasePath": "src/asr/fairseq_mms/local/.",
107100
"apiBasePath": "/asr/fairseq_mms/local",
108101
"containerPort": 8000,
109-
"environment": {},
102+
"environment": {
103+
"NVIDIA_VISIBLE_DEVICES": "${NVIDIA_VISIBLE_DEVICES}"
104+
},
110105
"nginx": ["client_max_body_size 100M;", "proxy_read_timeout 600;", "proxy_connect_timeout 600;", "proxy_send_timeout 600;"],
111106
"constraints": ["node.labels.node_vm_type==gpu"],
112107
"build": false
@@ -116,46 +111,21 @@
116111
"modelBasePath": "src/coref/fcoref/local/.",
117112
"apiBasePath": "/coref/fcoref/local",
118113
"containerPort": 8000,
119-
"environment": {},
120-
"nginx": [],
121-
"constraints": ["node.labels.node_vm_type==gpu"],
122-
"build": false
123-
},
124-
{
125-
"serviceName": "text_translation_bhashini",
126-
"modelBasePath": "src/text_translation/bhashini/remote/.",
127-
"apiBasePath": "/text_translation/bhashini/remote",
128-
"containerPort": 8000,
129-
"environment": {},
114+
"environment": {
115+
"NVIDIA_VISIBLE_DEVICES": "${NVIDIA_VISIBLE_DEVICES}"
116+
},
130117
"nginx": [],
131118
"constraints": ["node.labels.node_vm_type==gpu"],
132119
"build": false
133120
},
134-
{
135-
"serviceName": "text_translation_ai4bharat",
136-
"modelBasePath": "src/text_translation/ai4bharat/remote/.",
137-
"apiBasePath": "src/text_translation/ai4bharat/remote",
138-
"containerPort": 8000,
139-
"environment": {},
140-
"constraints": ["node.labels.node_vm_type==gpu"],
141-
"build": false
142-
},
143-
{
144-
"serviceName": "text_lang_detection_bhashini",
145-
"modelBasePath": "src/text_lang_detection/bhashini/remote/.",
146-
"apiBasePath": "/text_lang_detection/bhashini/remote",
147-
"containerPort": 8000,
148-
"environment": {},
149-
"constraints": ["node.labels.node_vm_type==gpu"],
150-
"build": false
151-
},
152121
{
153122
"serviceName": "chunking_mpnet",
154123
"modelBasePath": "src/chunking/MPNet/local/.",
155124
"apiBasePath": "chunking/MPNet/local",
156125
"containerPort": 8000,
157126
"environment": {
158-
"OPENAI_API_KEY": "${OPENAI_API_KEY}"
127+
"OPENAI_API_KEY": "${OPENAI_API_KEY}",
128+
"NVIDIA_VISIBLE_DEVICES": "${NVIDIA_VISIBLE_DEVICES}"
159129
},
160130
"nginx": ["client_max_body_size 100M;", "proxy_read_timeout 600;", "proxy_connect_timeout 600;", "proxy_send_timeout 600;"],
161131
"constraints": ["node.labels.node_vm_type==gpu"],
@@ -167,7 +137,8 @@
167137
"apiBasePath": "/embeddings/instructor/local",
168138
"containerPort": 8000,
169139
"environment": {
170-
"OPENAI_API_KEY": "${OPENAI_API_KEY}"
140+
"OPENAI_API_KEY": "${OPENAI_API_KEY}",
141+
"NVIDIA_VISIBLE_DEVICES": "${NVIDIA_VISIBLE_DEVICES}"
171142
},
172143
"nginx": ["client_max_body_size 100M;", "proxy_read_timeout 600;", "proxy_connect_timeout 600;", "proxy_send_timeout 600;"],
173144
"constraints": ["node.labels.node_vm_type==gpu"],
@@ -179,7 +150,8 @@
179150
"apiBasePath": "/llm/openai/chatgpt3",
180151
"containerPort": 8000,
181152
"environment": {
182-
"OPENAI_API_KEY": "${OPENAI_API_KEY}"
153+
"OPENAI_API_KEY": "${OPENAI_API_KEY}",
154+
"NVIDIA_VISIBLE_DEVICES": "${NVIDIA_VISIBLE_DEVICES}"
183155
},
184156
"nginx": [],
185157
"constraints": ["node.labels.node_vm_type==gpu"],

0 commit comments

Comments
 (0)