Skip to content

Commit

Permalink
Rename --cloud-gpu tesla to v100 (#540)
Browse files Browse the repository at this point in the history
* Add --cloud-gpu v100 option to cml-runner

* Add deprecation message for "tesla" GPU
  • Loading branch information
0x2b3bfa0 authored May 20, 2021
1 parent a86306d commit 99a5f7b
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions bin/cml-runner.js
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,10 @@ const run_cloud = async (opts) => {
if (tf_file) {
tpl = await fs.writeFile(tf_main_path, await fs.readFile(tf_file));
} else {
if (gpu === 'tesla')
console.log(
'GPU model "tesla" has been deprecated; please use "v100" instead.'
);
tpl = tf.iterative_cml_runner_tpl({
repo,
token,
Expand All @@ -157,7 +161,7 @@ const run_cloud = async (opts) => {
cloud,
region,
type,
gpu,
gpu: gpu.replace(/^tesla$/, 'v100'),
hdd_size,
ssh_private,
spot,
Expand Down Expand Up @@ -366,7 +370,7 @@ const opts = decamelize(
)
.default('cloud-gpu')
.describe('cloud-gpu', 'GPU type.')
.choices('cloud-gpu', ['nogpu', 'k80', 'tesla'])
.choices('cloud-gpu', ['nogpu', 'k80', 'v100', 'tesla'])
.coerce('cloud-gpu-type', (val) => (val === 'nogpu' ? null : val))
.default('cloud-hdd-size')
.describe('cloud-hdd-size', 'HDD size in GB')
Expand Down

2 comments on commit 99a5f7b

@github-actions
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Test Comment

CML watermark

@github-actions
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Test Comment

CML watermark

Please sign in to comment.