{"id":15641571,"url":"https://github.com/hunkim/googlecloudmlexamples","last_synced_at":"2025-04-30T09:11:28.204Z","repository":{"id":98202949,"uuid":"72263618","full_name":"hunkim/GoogleCloudMLExamples","owner":"hunkim","description":null,"archived":false,"fork":false,"pushed_at":"2017-07-29T12:44:20.000Z","size":2696,"stargazers_count":72,"open_issues_count":2,"forks_count":38,"subscribers_count":15,"default_branch":"master","last_synced_at":"2025-03-30T14:41:41.056Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/hunkim.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2016-10-29T03:51:36.000Z","updated_at":"2023-10-23T13:25:10.000Z","dependencies_parsed_at":"2023-05-18T14:01:40.302Z","dependency_job_id":null,"html_url":"https://github.com/hunkim/GoogleCloudMLExamples","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hunkim%2FGoogleCloudMLExamples","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hunkim%2FGoogleCloudMLExamples/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hunkim%2FGoogleCloudMLExamples/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hunkim%2FGoogleCloudMLExamples/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hunkim","download_url":"https://codeload.github.com/hunkim/GoogleCloudMLExamples/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251674577,"owners_count":21625644,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-03T11:42:57.430Z","updated_at":"2025-04-30T09:11:28.180Z","avatar_url":"https://github.com/hunkim.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Google Cloud ML Examples\n\n## Slides and Videos\n* [Google Cloud ML Slides](/Google Cloud ML.pdf)\n* [Google Cloud ML Video](https://youtu.be/EIRD3HAp-QQ)\n* [Google Cloud ML Video (KOREAN)](https://youtu.be/8Jkz2HexDAM)\n\n## Simple multiplication (train.1-multiply)\n\n### Run locally:\n```bash\npython -m train.1-multiply\n```\n\n### Run in ClouldML\nSet variables\n\n```bash\nJOB_NAME=\u003cyour job name\u003e\n  \nJOB_NAME=\"task8\"\n\nPROJECT_ID=`gcloud config list project --format \"value(core.project)\"`\nSTAGING_BUCKET=gs://${PROJECT_ID}-ml\n```\n  \nSubmit a job\n\n```bash\ngcloud beta ml jobs submit training ${JOB_NAME} \\\n--package-path=train \\\n--staging-bucket=\"${STAGING_BUCKET}\" \\\n--module-name=train.1-multiply\n```\n\n## Read input.csv from Google Storage (train.2-input)\n\n### Run locally:\n```bash\npython -m train.2-input\n```\n\n### Run in ClouldML\nSet variables\n\n```bash\nJOB_NAME=\"task8\"\n\nPROJECT_ID=`gcloud config list project --format \"value(core.project)\"`\nSTAGING_BUCKET=gs://${PROJECT_ID}-ml\nINPUT_PATH=${STAGING_BUCKET}/input\n```\n\nCopy input.csv to Google Storage\n```bash\ngsutil cp input/input.csv $INPUT_PATH/input.csv\n```\n \nSubmit a job\n\n```bash\ngcloud beta ml jobs submit training ${JOB_NAME} \\\n--package-path=train \\\n--staging-bucket=\"${STAGING_BUCKET}\" \\\n--module-name=train.2-input \\\n-- --input_dir=\"${INPUT_PATH}\"\n```\n\n\n## Write checkpoint files to Google Storage (train.3-output)\n\n### Run locally:\n```bash\npython -m train.3-output\n```\n\n### Run in CloudML\nSet variables\n```bash\nJOB_NAME=\"task20\"\nPROJECT_ID=`gcloud config list project --format \"value(core.project)\"`\nSTAGING_BUCKET=gs://${PROJECT_ID}-ml\nOUTPUT_PATH=${STAGING_BUCKET}/output/\n```\n \nCreate the output folder\n(Copy an empty file to the GS path with trailing slash, `/`)\n```bash\ngsutil cp /dev/null $OUTPUT_PATH\n```\n\nSubmit a job\n\n```bash\ngcloud beta ml jobs submit training ${JOB_NAME} \\\n--package-path=train \\\n--staging-bucket=\"${STAGING_BUCKET}\" \\\n--module-name=train.3-output \\\n-- --output_dir=\"${OUTPUT_PATH}\"\n```\n\n## Contributions/Comments\nWe always welcome your contributions/comments. Use the [Issues](https://github.com/hunkim/GoogleClouldMLExamples/issues).","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhunkim%2Fgooglecloudmlexamples","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhunkim%2Fgooglecloudmlexamples","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhunkim%2Fgooglecloudmlexamples/lists"}