{"id":13764329,"url":"https://github.com/EmbarkStudios/pdm-plugin-torch","last_synced_at":"2025-05-10T19:30:51.157Z","repository":{"id":119695066,"uuid":"600396005","full_name":"EmbarkStudios/pdm-plugin-torch","owner":"EmbarkStudios","description":"A tool for managing torch-variants with PDM. ","archived":false,"fork":false,"pushed_at":"2024-10-30T11:24:06.000Z","size":117,"stargazers_count":39,"open_issues_count":8,"forks_count":6,"subscribers_count":6,"default_branch":"main","last_synced_at":"2025-05-10T11:34:12.279Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/EmbarkStudios.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE-APACHE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":".github/CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-02-11T11:11:18.000Z","updated_at":"2025-05-02T06:44:51.000Z","dependencies_parsed_at":"2024-01-07T18:08:56.877Z","dependency_job_id":"32001cef-d422-4e97-bd52-fce1362dc749","html_url":"https://github.com/EmbarkStudios/pdm-plugin-torch","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EmbarkStudios%2Fpdm-plugin-torch","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EmbarkStudios%2Fpdm-plugin-torch/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EmbarkStudios%2Fpdm-plugin-torch/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EmbarkStudios%2Fpdm-plugin-torch/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/EmbarkStudios","download_url":"https://codeload.github.com/EmbarkStudios/pdm-plugin-torch/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253470631,"owners_count":21913705,"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-03T16:00:19.031Z","updated_at":"2025-05-10T19:30:50.848Z","avatar_url":"https://github.com/EmbarkStudios.png","language":"Python","funding_links":[],"categories":["Plugins"],"sub_categories":[],"readme":"\u003c!-- Allow this file to not have a first line heading --\u003e\n\u003c!-- markdownlint-disable-file MD041 --\u003e\n\n\u003c!-- inline html --\u003e\n\u003c!-- markdownlint-disable-file MD033 --\u003e\n\n\u003cdiv align=\"center\"\u003e\n\n# `🔦 pdm-plugin-torch `\n\nA utility tool for selecting torch backend and version.\n\n[![Embark](https://img.shields.io/badge/embark-open%20source-blueviolet.svg)](https://embark.dev)\n[![Embark](https://img.shields.io/badge/discord-ark-%237289da.svg?logo=discord)](https://discord.gg/dAuKfZS)\n[![Build status](https://badge.buildkite.com/968ac3c0bb075fb878f9f973ed91406c8b257b0f050c197542.svg?theme=github\u0026branch=main)](https://buildkite.com/embark-studios/pdm-plugin-torch)\n[![Docs status](https://img.shields.io/badge/Docs-latest-brightgreen)](https://embarkstudios.github.io/pdm-plugin-torch/)\n[![pdm-managed](https://img.shields.io/badge/PDM-v2.8.0-blueviolet)](https://pdm.fming.dev)\n\n\u003c/div\u003e\n\n\u003e **Warning**\n\u003e This plugin is unmaintained, and broken due to breaking in upstream APIs. It will not be updated here.\n\n## What it does\n\nDue to torch being published in many different variants with local versions to signify the underlying API, it is hard to integrate into a lockfile-based workflow. This is due to the local versions - `+cu111`, `+cpu`, and so on - being considered the \"same\" package, so you can't resolve two at the same time.\n\nThis tool generate multiple lockfiles *only for torch* and allows you to use a pdm subcommand (`pdm torch`) to select the one you want.\n\n### Configuration\n\nThese are the supported options:\n\n```toml\n[tool.pdm.plugin.torch]\ndependencies = [\n   \"torch==1.10.2\"\n]\nlockfile = \"torch.lock\"\nenable-cpu = true\n\nenable-rocm = true\nrocm-versions = [\"4.2\"]\n\nenable-cuda = true\ncuda-versions = [\"cu111\", \"cu113\"]\n```\n\n## Installation\n\nPDM supports specifying plugin-dependencies in your pyproject.toml, which is the suggested installation method. Note that in `pdm-plugin-torch` versions before 23.4.0, our configuration was in `tool.pdm.plugins.torch`. If upgrading, you'll need to also change that to `tool.pdm.plugin.torch`.\n\n``` toml\n[tool.pdm]\nplugins = [\"pdm-plugin-torch==$VERSION\"]\n```\n\n## Contribution\n\n[![Contributor Covenant](https://img.shields.io/badge/contributor%20covenant-v1.4-ff69b4.svg)](../main/CODE_OF_CONDUCT.md)\n\nWe welcome community contributions to this project.\n\nPlease read our [Contributor Guide](CONTRIBUTING.md) for more information on how to get started.\nPlease also read our [Contributor Terms](CONTRIBUTING.md#contributor-terms) before you make any contributions.\n\nAny contribution intentionally submitted for inclusion in an Embark Studios project, shall comply with the Rust standard licensing model (MIT OR Apache 2.0) and therefore be dual licensed as described below, without any additional terms or conditions:\n\n### License\n\nThis contribution is dual licensed under EITHER OF\n\n* Apache License, Version 2.0, ([LICENSE-APACHE](LICENSE-APACHE) or \u003chttp://www.apache.org/licenses/LICENSE-2.0\u003e)\n* MIT license ([LICENSE-MIT](LICENSE-MIT) or \u003chttp://opensource.org/licenses/MIT\u003e)\n\nat your option.\n\nFor clarity, \"your\" refers to Embark or any other licensee/user of the contribution.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FEmbarkStudios%2Fpdm-plugin-torch","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FEmbarkStudios%2Fpdm-plugin-torch","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FEmbarkStudios%2Fpdm-plugin-torch/lists"}