{"id":13564739,"url":"https://github.com/pytorch/hub","last_synced_at":"2025-05-15T13:06:40.984Z","repository":{"id":39973377,"uuid":"182829578","full_name":"pytorch/hub","owner":"pytorch","description":"Submission to https://pytorch.org/hub/","archived":false,"fork":false,"pushed_at":"2024-04-15T14:20:37.000Z","size":26409,"stargazers_count":1421,"open_issues_count":54,"forks_count":247,"subscribers_count":304,"default_branch":"master","last_synced_at":"2025-05-15T00:13:15.074Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/pytorch.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":null,"code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-04-22T16:51:53.000Z","updated_at":"2025-05-13T06:48:36.000Z","dependencies_parsed_at":"2025-01-17T18:30:19.231Z","dependency_job_id":null,"html_url":"https://github.com/pytorch/hub","commit_stats":{"total_commits":377,"total_committers":83,"mean_commits":4.542168674698795,"dds":0.8196286472148542,"last_synced_commit":"c7895df70c7767403e36f82786d6b611b7984557"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pytorch%2Fhub","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pytorch%2Fhub/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pytorch%2Fhub/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pytorch%2Fhub/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pytorch","download_url":"https://codeload.github.com/pytorch/hub/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254346624,"owners_count":22055808,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-08-01T13:01:35.239Z","updated_at":"2025-05-15T13:06:35.972Z","avatar_url":"https://github.com/pytorch.png","language":"Python","readme":"# PyTorch Hub\n\n[![CircleCI](https://circleci.com/gh/pytorch/hub.svg?style=svg)](https://circleci.com/gh/pytorch/hub)\n\n\n## Logistics\n\nWe accept submission to PyTorch hub through PR in `hub` repo. Once the PR is merged into master here, it will show up on the [PyTorch website](https://pytorch.org/hub) in 24 hrs.\n\n\n## Steps to submit to PyTorch hub\n\n1. Add a `hubconf.py` in your repo, following the instruction in [torch.hub doc](https://pytorch.org/docs/master/hub.html#publishing-models). Verify it's working correctly by running `torch.hub.load(...)` locally.\n2. Create a PR in `pytorch/hub` repo. For each new model you have, create a `\u003crepo_owner\u003e_\u003crepo_name\u003e_\u003ctitle\u003e.md` file using this [template](docs/template.md).\n\n### Notes\n- Currently we don't support hosting pretrained weights, users with pretrained weights need to host them properly themselves.\n- In general we recommend one model per markdown file, models with similar structures like `resnet18, resnet50` should be placed in the same file.\n- If you have images, place them in `images/` folder and link them correctly in the `[images/featured_image_1/featured_image_2]` fields above.\n- We only support a pre-defined set of tags, currently they are listed in [scripts/tags.py](scripts/tags.py). We accept PRs to expand this set as needed.\n- To test your PR locally, run the tests below.\n```\npython scripts/sanity_check.py\n./scripts/run_pytorch.sh\n```\n- Our CI concatenates all python code blocks in one markdown file and runs it against the latest PyTorch release.\n  - Remember to mark your python code using ```` ```python```` in your model's markdown file.\n  - If your `dependencies` are not installed on our CI machine, add them in [install.sh](scripts/install.sh).\n  - If it fails, you can find a new `temp.py` file left in the repo to reproduce the failure.\n- We also provide a way to preview your model webpage through `netlify bot`. This bot builds your PR with the latest `pytorch.github.io` repo and comments on your PR with a preview link. The preview will be updated as you push more commits to the PR.\n![Example netlify bot comment](images/netlify.png)\n\n","funding_links":[],"categories":["Python","Pytorch \u0026 related libraries｜Pytorch \u0026 相关库","Deep Learning Framework","Pytorch \u0026 related libraries"],"sub_categories":["Other libraries｜其他库:","High-Level DL APIs","Other libraries:"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpytorch%2Fhub","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpytorch%2Fhub","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpytorch%2Fhub/lists"}