Skip to content

Commit f341321

Browse files
authored
Allow native GPU types (#1049)
1 parent 1559f48 commit f341321

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

bin/cml/runner.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -533,9 +533,9 @@ exports.builder = (yargs) =>
533533
},
534534
cloudGpu: {
535535
type: 'string',
536-
choices: ['nogpu', 'k80', 'v100', 'tesla'],
537-
coerce: (val) => (val === 'nogpu' ? undefined : val),
538-
description: 'GPU type.'
536+
description:
537+
'GPU type. Choices: k80, v100, or native types e.g. nvidia-tesla-t4',
538+
coerce: (val) => (val === 'nogpu' ? undefined : val)
539539
},
540540
cloudHddSize: {
541541
type: 'number',

bin/cml/runner.test.js

+3-2
Original file line numberDiff line numberDiff line change
@@ -114,8 +114,9 @@ describe('CML e2e', () => {
114114
cml-runner instance on the provider
115115
i.e. tags/labels \\"key=value\\"
116116
[array] [default: []]
117-
--cloud-gpu GPU type.
118-
[string] [choices: \\"nogpu\\", \\"k80\\", \\"v100\\", \\"tesla\\"]
117+
--cloud-gpu GPU type. Choices: k80, v100, or
118+
native types e.g. nvidia-tesla-t4
119+
[string]
119120
--cloud-hdd-size HDD size in GB [number]
120121
--cloud-ssh-private Custom private RSA SSH key. If not
121122
provided an automatically generated

0 commit comments

Comments
 (0)