This repository was archived by the owner on May 22, 2025. It is now read-only.
File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ # Cookbook
2+
3+ A set of guides to achieve your goal.
4+
5+ ## Installing PyTorch
6+
7+ Add specific version of PyTorch to dependencies in ` pyproject.toml ` :
8+
9+ ``` toml
10+ [project ]
11+ dependencies = [
12+ ...
13+ " torch==2.0.1" ,
14+ ...
15+ ]
16+ ```
17+
18+ Then add source with the desired CUDA version to the same file:
19+
20+ ``` toml
21+ [[tool .pdm .source ]]
22+ type = " find_links"
23+ url = " https://download.pytorch.org/whl/cu117/torch_stable.html"
24+ name = " torch"
25+ ```
Original file line number Diff line number Diff line change @@ -24,17 +24,17 @@ The template is heavily inspired by [Pawamoy's Copier PDM](https://github.com/pa
2424- [ Nox] ( https://github.com/wntrblm/nox ) as a task runner
2525- All licenses from [ choosealicense.com] ( https://choosealicense.com/appendix/ )
2626- Support for GitHub workflows
27+ - VSCode Dev Containers as development environments
28+ - Support for GitLab CI/CD
2729
2830### Planned Features
2931
30- - VSCode Dev Containers as development environments
3132- Documentation built with [ MkDocs] ( https://github.com/mkdocs/mkdocs )
3233 ([ Material theme] ( https://github.com/squidfunk/mkdocs-material )
3334 and "autodoc" [ mkdocstrings plugin] ( https://github.com/mkdocstrings/mkdocstrings ) )
3435- Pre-configured tools for code formatting, quality analysis and testing:
3536 - [ blacken-docs] ( https://github.com/adamchainz/blacken-docs ) , support for tests
3637- Auto-generated ` CHANGELOG.md ` from git commits
37- - Support for GitLab CI/CD
3838
3939## Quick setup and usage
4040
@@ -75,3 +75,5 @@ Install your project as a Python package:
7575``` bash
7676pip install -U git+https://yourgit.example/project
7777```
78+
79+ Refer to
You can’t perform that action at this time.
0 commit comments