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

Include SAM Fast in torch.compile nightly benchmark workflow #2856

Merged
merged 11 commits into from
Dec 19, 2023

Conversation

sachanub
Copy link
Collaborator

@sachanub sachanub commented Dec 18, 2023

Description

Please read our CONTRIBUTING.md prior to creating your first pull request.

The objective of this PR is to include the SAM Fast model with weights corresponding to vit_b and a process batch size of 4.

Testing:

Ran benchmark workflow in the commit .


Testing after 1st revision:

Ran benchmark workflow in the commit e89c1ba.

@@ -4,6 +4,7 @@
pip uninstall torchtext torchdata torch torchvision torchaudio -y

# Install nightly PyTorch and torchvision from the specified index URL
pip install chardet
Copy link
Collaborator

Choose a reason for hiding this comment

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

What is this for ?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Included this dependency because one of the previous benchmark runs failed because of the absence of this module: https://github.com/pytorch/serve/actions/runs/7255062486/job/19764967013

Copy link
Collaborator

Choose a reason for hiding this comment

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

Was this happening locally? I didnt notice this. If not, can you please move this to the dependencies section of the benchmark run?

Copy link
Collaborator Author

@sachanub sachanub Dec 19, 2023

Choose a reason for hiding this comment

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

I think I noticed it locally as well. I will include it in the benchmark_model_dependencies.sh script which you suggested.

@@ -39,5 +39,8 @@ jobs:
sudo apt-get update -y
sudo apt-get install -y apache2-utils
pip install -r benchmarks/requirements-ab.txt
chmod +x examples/large_models/segment_anything_fast/install_segment_anything_fast.sh
Copy link
Collaborator

Choose a reason for hiding this comment

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

Please make this a separate step

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Will update the PR.

Copy link
Collaborator

Choose a reason for hiding this comment

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

I'm thinking this should be a script under benchmarks. You can call it benchmark_model_dependencies.sh . So, if there are more things in the future, we can add it there

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Sounds good. I will create this script.

uses: actions/setup-python@v4
with:
python-version: 3.8
python-version: 3.10.9
Copy link
Collaborator

Choose a reason for hiding this comment

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

can we just have 3.10?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

One of the previous runs had failed when I specified just 3.10: https://github.com/pytorch/serve/actions/runs/7255048620/job/19764929373

Commit ID: bcda479

We can choose the versions according to https://raw.githubusercontent.com/actions/python-versions/main/versions-manifest.json.

Copy link
Collaborator

Choose a reason for hiding this comment

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

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Oh I understand. I will update the workflow accordingly.

Copy link
Collaborator

@agunapal agunapal 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 overall. Some minor edits needed

@sachanub
Copy link
Collaborator Author

Looks good overall. Some minor edits needed

Updated PR according to suggestions.

Copy link
Collaborator

@agunapal agunapal left a comment

Choose a reason for hiding this comment

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

LGTM

@sachanub sachanub added this pull request to the merge queue Dec 19, 2023
Merged via the queue into master with commit 814ef96 Dec 19, 2023
13 checks passed
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.

None yet

2 participants