-
Notifications
You must be signed in to change notification settings - Fork 299
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 SAM2 to TorchBench model set #2566
Comments
cc @josephgreer |
In particular we'd need the backbone models with the various configurations checkpoints loaded via It's sufficient to use the resulting model for a particular task to exercise this. For example https://github.com/pytorch/ao/blob/522f5b854a278ee9e68e80bf8213e19c9da4e547/examples/sam2_amg_server/server.py#L294 on some example shape such as https://github.com/pytorch/ao/blob/522f5b854a278ee9e68e80bf8213e19c9da4e547/examples/sam2_amg_server/server.py#L63 after instantiating an instance via |
Should we try to add it somehow directly to PyTorch instead? As CI pin is pretty much behind repo head. |
[can be deleted][just to myself] |
Summary: I'm adding sam2 to TorchBench #2566, so I'm updating PyTorch CI to use latest TorchBench commit. This goes together with pytorch/pytorch#145455. The list of fixes includes: * Adding `decoder_start_token_id` to HF `GenerationConfig`. This was Introduced by transformers 4.41.0 huggingface/transformers#30892 * Run `sam_fast` on A10G as it seems working correctly now Pull Request resolved: #2584 Reviewed By: xuzhao9 Differential Revision: D68837682 Pulled By: huydhn fbshipit-source-id: d9bda87384bac680b08fd2ea200ca7691c24a7e9
I'm adding sam2 to TorchBench pytorch/benchmark#2566, so, as part of that, I'm updating PyTorch CI to use latest TorchBench commit. The corresponding change from TorchBench is pytorch/benchmark#2584 The main thing to call out that the newer transformers added by pytorch/benchmark#2488 is regressing several models. This needs to be investigated further, and I pin the version to unblock this change. * `hf_Roberta_base` a new model added by pytorch/benchmark#2279, not sure why it fails accuracy on A10G, but it works fine on A100 * `speech_transformer` failures are pre-existing trunk failures, i.e. https://github.com/pytorch/pytorch/actions/runs/13040114684/job/36380989702#step:22:2408 Pull Request resolved: #145455 Approved by: https://github.com/kit1980
Summary: I'm adding sam2 to TorchBench #2566, so, as part of that, I'm updating PyTorch CI to use latest TorchBench commit. The corresponding change from TorchBench is #2584 The main thing to call out that the newer transformers added by #2488 is regressing several models. This needs to be investigated further, and I pin the version to unblock this change. * `hf_Roberta_base` a new model added by #2279, not sure why it fails accuracy on A10G, but it works fine on A100 * `speech_transformer` failures are pre-existing trunk failures, i.e. https://github.com/pytorch/pytorch/actions/runs/13040114684/job/36380989702#step:22:2408 X-link: pytorch/pytorch#145455 Approved by: https://github.com/kit1980 Reviewed By: ZainRizvi Differential Revision: D69056903 fbshipit-source-id: 6b98c246b9dc8811257ec46d4821ba6ee3363dfe
I'm adding sam2 to TorchBench pytorch/benchmark#2566, so, as part of that, I'm updating PyTorch CI to use latest TorchBench commit. The corresponding change from TorchBench is pytorch/benchmark#2584 The main thing to call out that the newer transformers added by pytorch/benchmark#2488 is regressing several models. This needs to be investigated further, and I pin the version to unblock this change. * `hf_Roberta_base` a new model added by pytorch/benchmark#2279, not sure why it fails accuracy on A10G, but it works fine on A100 * `speech_transformer` failures are pre-existing trunk failures, i.e. https://github.com/pytorch/pytorch/actions/runs/13040114684/job/36380989702#step:22:2408 Pull Request resolved: pytorch#145455 Approved by: https://github.com/kit1980
We want to add SAM2 from https://github.com/facebookresearch/sam2?tab=readme-ov-file#download-checkpoints to TorchBench so that it can be included as part of PT2 OSS benchmark run.
cc @kit1980 Let's take this opportunity to follow @xuzhao9 documentation in https://github.com/pytorch/benchmark/blob/main/torchbenchmark/models/ADDING_MODELS.md to add the model.
cc @cpuhrsch
The text was updated successfully, but these errors were encountered: