Skip to content

Commit ec93e2d

Browse files
authored
Added default backend value (#204)
* Update metadata.json * Update metadata.json * Update metadata.json * Update TabTraining.vue * Update metadata.json
1 parent bc47061 commit ec93e2d

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

src/components/TabTraining.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,12 @@
99
<h2 class="training">Distributed Training</h2>
1010
<FormCheckbox label="Use distributed training" saveKey="use_dist" />
1111
<div v-show="store.config.use_dist">
12-
<h2>Choose a Backend</h2>
1312
<FormSelect
1413
required
1514
:saveKey="backend.name"
1615
:label="backend.description"
1716
:options="backend.options"
17+
:defaultV="backend.default"
1818
/>
1919
<FormRadio :options="[launch, spawn]" saveKey="dist" defaultV="launch" />
2020
<FormInput

src/metadata/metadata.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,10 @@
4444
},
4545
"backend": {
4646
"name": "backend",
47-
"description": "Choose a Backend",
48-
"options": ["NCCL", "Gloo"]
47+
"type": "array",
48+
"description": "Choose a backend",
49+
"options": ["Nccl", "Gloo"],
50+
"default": "Nccl"
4951
}
5052
},
5153
"handlers": {

0 commit comments

Comments
 (0)