{"id":17709856,"url":"https://github.com/d0mih/pytorch-docker-template","last_synced_at":"2025-06-11T02:41:22.083Z","repository":{"id":97908771,"uuid":"601948619","full_name":"D0miH/PyTorch-Docker-Template","owner":"D0miH","description":"Github repository template for a project using docker together with PyTorch","archived":false,"fork":false,"pushed_at":"2024-02-17T17:36:13.000Z","size":13,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-06T12:34:14.665Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/D0miH.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"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":"2023-02-15T07:03:37.000Z","updated_at":"2024-05-13T15:44:16.000Z","dependencies_parsed_at":"2024-02-17T18:44:03.612Z","dependency_job_id":null,"html_url":"https://github.com/D0miH/PyTorch-Docker-Template","commit_stats":null,"previous_names":[],"tags_count":0,"template":true,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/D0miH%2FPyTorch-Docker-Template","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/D0miH%2FPyTorch-Docker-Template/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/D0miH%2FPyTorch-Docker-Template/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/D0miH%2FPyTorch-Docker-Template/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/D0miH","download_url":"https://codeload.github.com/D0miH/PyTorch-Docker-Template/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246436358,"owners_count":20776995,"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-10-25T05:06:08.963Z","updated_at":"2025-03-31T08:17:26.368Z","avatar_url":"https://github.com/D0miH.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# PyTorch-Docker-Template\nA PyTorch template that supports yapf autoformatting, pre-commit, Weights and Biases and includes a Dockerfile to run the code in a Docker container\n\n# Setup\n\n## Docker\nTo build the Docker container run: \n```bash\n./docker_build.sh -n \u003cimage-name\u003e -w \u003cwandb-key\u003e\n```\n\n## Local Setup\nTo set up the project locally without running in a Docker container and to use `yapf` and `pre-commit`, you have to first install all dependencies using `conda` and `pip`:\n```bash\nconda install pytorch torchvision torchaudio cudatoolkit=11.3 -c pytorch\npip install -r requirements.txt\n```\n\nThen you have to set up 'pre-commit` to run yapf each time before committing:\n```bash\npre-commit install\n```\n\nThat's it!🎊️ \nNow you are setup and ready to go!\n\n# Start Docker Container\nTo start the Docker container run the following command:\n```bash\n./docker_run.sh -n \u003ccontainer_name\u003e -i \u003cimage_name\u003e -d \u003ccomma_separated_device_ids\u003e\n```\ne.g.\n```bash\n./docker_run.sh -n pytorch_docker_template -i pytorch_docker_template -d \"0,1\"\n```\nor\n```bash\ndocker run --rm --name \u003ccontainer-name\u003e --gpus '\"device=\u003cdevice-ids\u003e\"' -v $(pwd):/workspace  -it \u003cimage-name\u003e bash\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fd0mih%2Fpytorch-docker-template","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fd0mih%2Fpytorch-docker-template","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fd0mih%2Fpytorch-docker-template/lists"}