Skip to content

Conversation

@xuzhao9
Copy link
Contributor

@xuzhao9 xuzhao9 commented Apr 27, 2021

This PR is to add TorchBench support in PyTorch CI.
It modifies bisection.py so that the bisector is also able to run abtests.
It also allows users to specify model names as test items. So model names like "yolov3" also works, not just "test_eval[yolov3-cpu-eager]".

This PR is the prerequisite of the TorchBench CI PR on PyTorch: pytorch/pytorch#56957.

if not repo_origin_url == TORCHBENCH_GITREPO:
print(f"WARNING: Unmatched repo origin url: {repo_origin_url} with standard {TORCHBENCH_GITREPO}")
# get list of models
self.models = [ model for model in os.listdir(os.path.join(self.srcpath, "torchbenchmark", "models"))
Copy link
Contributor

Choose a reason for hiding this comment

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

any reason to do this instead of importing 'list_models' function from torchbenchmark?

Copy link
Contributor Author

@xuzhao9 xuzhao9 Apr 27, 2021

Choose a reason for hiding this comment

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

This function is called in prepartion, when the pytorch/torchvision/torchtext packages are not built and installed yet (they are installed later when actually running the bisection/abtesting). Therefore, the list_models function doesn't work at this point.

@xuzhao9 xuzhao9 merged commit be261ef into pytorch:master Apr 27, 2021
@xuzhao9 xuzhao9 deleted the xz9/add-pr-ci branch April 27, 2021 17:44
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