python-docs-samples icon indicating copy to clipboard operation
python-docs-samples copied to clipboard

ppai/weather: add weather forecasting sample

Open davidcavazos opened this issue 2 years ago • 1 comments

Description

This is an end-to-end sample to train a PyTorch model in Google Cloud. It uses Dataflow to create the datasets using Earth Engine data, then trains a PyTorch model in Vertex AI with GPUs, deploys the model to Cloud Run and gets predictions.

Checklist

davidcavazos avatar Sep 21 '22 20:09 davidcavazos

Check out this pull request on  ReviewNB

See visual diffs & provide feedback on Jupyter Notebooks.


Powered by ReviewNB

I am working on adding Cloud Run predictions. The code itself remains pretty much the same, but I had to refactor the directory structures due to Python packaging and how Dataflow and Vertex AI expect files.

davidcavazos avatar Jan 08 '23 02:01 davidcavazos

I refactored a lot of the directory structure to be able to share the local packages with the appropriate stages of the sample. I also had to split the notebook into multiple notebooks, and make each test independent because there are dependency version incompatibilities between Apache Beam and HuggingFace Datasets (https://github.com/apache/beam/issues/24458).

Overall, the code itself stayed pretty much the same, just some of the files changed place and added a couple extra steps like building the local packages.

davidcavazos avatar Jan 12 '23 05:01 davidcavazos

Tests are passing locally, although there are currently issues with the testing infrastructure.

davidcavazos avatar Jan 12 '23 05:01 davidcavazos

HTTPError: 503 Server Error: Service Unavailable -- transient error, retesting

davidcavazos avatar Jan 17 '23 22:01 davidcavazos

Merge-on-green attempted to merge your PR for 6 hours, but it was not mergeable because either one of your required status checks failed, one of your required reviews was not approved, or there is a do not merge label. Learn more about your required status checks here: https://help.github.com/en/github/administering-a-repository/enabling-required-status-checks. You can remove and reapply the label to re-run the bot.

gcf-merge-on-green[bot] avatar Jan 18 '23 04:01 gcf-merge-on-green[bot]

Merge-on-green attempted to merge your PR for 6 hours, but it was not mergeable because either one of your required status checks failed, one of your required reviews was not approved, or there is a do not merge label. Learn more about your required status checks here: https://help.github.com/en/github/administering-a-repository/enabling-required-status-checks. You can remove and reapply the label to re-run the bot.

gcf-merge-on-green[bot] avatar Jan 18 '23 14:01 gcf-merge-on-green[bot]

FYI, I just set the "do not merge" label because that build check was stuck. Now it's green.

kweinmeister avatar Jan 18 '23 22:01 kweinmeister