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

[Userbenchmark] Add --skip arg for test_bench #2551

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

shink
Copy link
Contributor

@shink shink commented Dec 2, 2024

Usage

python run_benchmark.py test_bench --accuracy -d mps --models BERT_pytorch,hf_GPT2 --skip BERT_pytorch --output result.json

Result

$ python run_benchmark.py test_bench --accuracy -d mps --models BERT_pytorch,hf_GPT2 --skip BERT_pytorch --output result.json
Running TorchBenchModelConfig(name='BERT_pytorch', test='eval', device='mps', batch_size=None, extra_args=['--accuracy'], extra_env=None, output_dir=None, skip=True) ... [skip]
Running TorchBenchModelConfig(name='hf_GPT2', test='eval', device='mps', batch_size=None, extra_args=['--accuracy'], extra_env=None, output_dir=None, skip=False) ... [done]
{
    "name": "test_bench",
    "environ": {
        "pytorch_git_version": "dd2e6d61409aac22198ec771560a38adb0018ba2",
        "pytorch_version": "2.6.0.dev20241120"
    },
    "metrics": {
        "model=BERT_pytorch, test=eval, device=mps, bs=None, extra_args=['--accuracy'], metric=accuracy": "skip",
        "model=hf_GPT2, test=eval, device=mps, bs=None, extra_args=['--accuracy'], metric=accuracy": "pass"
    }
}

@shink shink changed the title [Userbenchmark] Add --skip arg for test_bench [Userbenchmark] Add --skip arg for test_bench Dec 2, 2024
Copy link
Member

@FindHao FindHao left a comment

Choose a reason for hiding this comment

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

LGTM! Thanks!

@facebook-github-bot
Copy link
Contributor

@FindHao has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants