Skip to content

Instantly share code, notes, and snippets.

@timotta
Last active February 9, 2019 16:36
Show Gist options
  • Save timotta/2a27b7bdb279b4def948a3a3028ae831 to your computer and use it in GitHub Desktop.
Save timotta/2a27b7bdb279b4def948a3a3028ae831 to your computer and use it in GitHub Desktop.
JOBID=`cat /dev/urandom | tr -dc 'a-zA-Z' | fold -w 10 | head -n 1`
gcloud ml-engine jobs submit training $JOBID \
--module-name=$MODULE \
--region=us-central1 \
--package-path=$PACKAGE \
--job-dir=$BUCKET \
--project=$PROJECT \
--scale-tier=basic_gpu
gcloud ml-engine jobs stream-logs $JOBID --project=$PROJECT
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment