Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add inf cv notebooks #59

Merged
merged 8 commits into from
Jul 28, 2023
Merged

add inf cv notebooks #59

merged 8 commits into from
Jul 28, 2023

Conversation

bogdan-galileo
Copy link
Contributor

@bogdan-galileo bogdan-galileo commented Jul 27, 2023

  • Add inference cells on CV notebooks, EXCEPT the one used for the example runs (HF)
  • Rename CV notebooks to
    • HF_data for HuggingFace
    • DF_data for DataFrame
    • IF_data for ImageFolder
  • Add all CV notebooks to CI + add minimize_for_CI

@review-notebook-app
Copy link

Check out this pull request on  ReviewNB

See visual diffs & provide feedback on Jupyter Notebooks.


Powered by ReviewNB

@bogdan-galileo bogdan-galileo marked this pull request as ready for review July 27, 2023 20:14
Copy link
Contributor

@anthonycorletti anthonycorletti left a comment

Choose a reason for hiding this comment

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

@bogdan-galileo instead of overwriting the image classification examples, could we have a separate dir for inference? i.e. examples/image_classification_inference or examples/image_classification/inference?

@@ -152,7 +152,7 @@ jobs:
GALILEO_MODAL_TOKEN_SECRET: ${{ secrets.GALILEO_MODAL_TOKEN_SECRET }}
run: |
modal token set --token-id ${{ env.GALILEO_MODAL_TOKEN_ID }} --token-secret ${{ env.GALILEO_MODAL_TOKEN_SECRET }}
modal run ./scripts/populator_cuda.py::run --notebook-path examples/image_classification/Image_Classification_using_PyTorch_and_🔭_Galileo.ipynb
modal run ./scripts/populator_cuda.py::run --notebook-path examples/image_classification/Image_Classification_using_PyTorch_and_🔭_Galileo_IF_data.ipynb
Copy link
Contributor

Choose a reason for hiding this comment

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

this should not be removed because its for example runs.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@anthonycorletti I didn't add an inference notebook by itself, I just added inference cells at the end of the normal notebooks. Also, renamed our notebooks since the names were a bit weird, it's now

  • Galileo_HF_data for HuggingFace
  • Galileo_IF_data for ImageFolder
  • Galileo_DF_data for DataFrame

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I see, these will now fail in cloud since they have inference. Okay will fix that

@@ -258,7 +258,7 @@ jobs:
SLACK_WEBHOOK: ${{ secrets.ML_TEAM_EXAMPLES_WEBHOOK }}
SLACK_USERNAME: "Example Runs Root Content Populator"
SLACK_ICON_EMOJI: ":telescope:"
SLACK_COLOR: ${{ ((needs.mltc-example.result == 'success') && (needs.ner-example.result == 'success') && (needs.tc-example.result == 'success') && (needs.ic-example.result == 'success') && (needs.od-example.result == 'success') && (needs.semseg-example.result == 'success') && 'success') || 'failure' }}
SLACK_COLOR: ${{ ((needs.mltc-example.result == 'success') && (needs.ner-example.result == 'success') && (needs.tc-example.result == 'success') && (needs.ic-example-HF.result == 'success') && (needs.od-example.result == 'success') && (needs.semseg-example.result == 'success') && 'success') || 'failure' }}
Copy link
Contributor

Choose a reason for hiding this comment

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

same here, should be changed back. if there's an inference example run we can add a separate job in the dag.

.github/workflows/test.yaml Show resolved Hide resolved
runs-on: ubuntu-latest
needs: paths-filter
if: ${{ github.event_name != 'pull_request' || (github.event_name == 'pull_request' && needs.paths-filter.outputs.ic-pytorch == 'true' ) }}
Copy link
Contributor

Choose a reason for hiding this comment

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

should not be deleted. copy paste errors?

Copy link
Contributor

@anthonycorletti anthonycorletti left a comment

Choose a reason for hiding this comment

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

looks good! ready to go whenever the tests are.

@bogdan-galileo bogdan-galileo merged commit 0681bc2 into main Jul 28, 2023
23 checks passed
@bogdan-galileo bogdan-galileo deleted the add-cv-inference branch July 28, 2023 12:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants