Skip to content

Commit c4f0051

Browse files
committed
Use torch+cpu to cut venv size
1 parent 5985fcf commit c4f0051

File tree

3 files changed

+83
-181
lines changed

3 files changed

+83
-181
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
* Python 3.10
1212
* uv package manager
13-
* ~10 GB disk space for Python packages
13+
* ~2 GB disk space for Python packages
1414

1515
### Extra Dependencies for Deployment and Data Analysis
1616

pyproject.toml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ dependencies = [
1414

1515
[dependency-groups]
1616
dev = ["mypy", "jupyter", "pandas-stubs", "types-tqdm", "types-seaborn"]
17-
deployment = ["pytorch-mppi==0.7.5", "cooperative_transport"]
17+
deployment = ["torch", "pytorch-mppi==0.7.5", "cooperative_transport"]
1818
evaluation = [
1919
"rosbags",
2020
"matplotlib",
@@ -32,7 +32,12 @@ evaluation = [
3232

3333
[tool.uv.sources]
3434
cooperative_transport = { path = "src/eleyng/table-carrying-ai", editable = true }
35+
torch = { index = "pytorch-cpu" }
3536

37+
[[tool.uv.index]]
38+
name = "pytorch-cpu"
39+
url = "https://download.pytorch.org/whl/cpu"
40+
explicit = true
3641

3742
[build-system]
3843
requires = ["hatchling"]

0 commit comments

Comments
 (0)