[Feature Request] Source installation docs should pin supported PyTorch versions
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 68/100
- Issue type
- Documentation
- Clarity
- Mostly clear
- Activity status
- Quiet
- Tech stack
- python, pytorch
- Domain
- documentation, machine-learning
Research direction
Locate the source-installation documentation and the package metadata that declares PyTorch requirements. Review the current install flow and supported torch.compile versions, then update the documentation and dependency constraint so an unsupported PyTorch 2.13.x version is not silently selected; verify the final instructions and metadata agree.
Written by the indexing model from the issue text.
Description
Summary
The current “install from source” documentation does not clearly require a supported PyTorch version.
When installing from source with a normal pip install, pip may automatically install or upgrade PyTorch to 2.13.0 (as of 2026/7/11). However, DeePMD-kit currently only supports torch.compile with PyTorch 2.11.x or 2.12.x, which later causes runtime errors such as:
RuntimeError: deepmd `torch.compile` support requires PyTorch 2.11.x or 2.12.x; found torch 2.13.0+cu126.
Please update the source installation documentation to either:
- explicitly pin a supported version, for example
torch==2.11.0ortorch>=2.11,<2.13; or - add a prominent warning that users must install a supported PyTorch version before installing DeePMD-kit from source.
It would also be helpful if the package metadata imposed the same upper bound, so pip cannot silently install an incompatible PyTorch version.
Detailed Description
As above
Further Information, Files, and Links
No response
- Dominant language
- Python
- Stars
- 2k
- Forks
- 651
- Avg merge
- 6d 1h
- Merged PRs (30d)
- 18
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from deepmodeling/deepmd-kit
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
deepmodeling/deepmd-kit#5991 ·
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
deepmodeling/deepmd-kit#5689 · 2 comments ·
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
deepmodeling/deepmd-kit#5686 · 1 comment ·
-
branch: master lang: py todo comment type: todo
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
deepmodeling/deepmd-kit#5480 ·
-
branch: master lang: toml todo comment type: todo
Difficulty 1/5 Under an hour Newbie friendliness 72/100
deepmodeling/deepmd-kit#5462 ·
All issues in deepmodeling/deepmd-kit
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
-
enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 74/100