-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
29 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
# Cookbook | ||
|
||
A set of guides to achieve your goal. | ||
|
||
## Installing PyTorch | ||
|
||
Add specific version of PyTorch to dependencies in `pyproject.toml`: | ||
|
||
```toml | ||
[project] | ||
dependencies = [ | ||
... | ||
"torch==2.0.1", | ||
... | ||
] | ||
``` | ||
|
||
Then add source with the desired CUDA version to the same file: | ||
|
||
```toml | ||
[[tool.pdm.source]] | ||
type = "find_links" | ||
url = "https://download.pytorch.org/whl/cu117/torch_stable.html" | ||
name = "torch" | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters