Skip to content

Commit c19c447

Browse files
authored
Add dependencies to pyproject and uv.lock (#6)
* Add dependencies Signed-off-by: Charlie Truong <[email protected]> * Set tool.uv managed = true Signed-off-by: Charlie Truong <[email protected]> * Move no-install-package to docker container Signed-off-by: Charlie Truong <[email protected]> * Update uv lock file Signed-off-by: Charlie Truong <[email protected]> * Remove torchvision from the uv --no-install-package Signed-off-by: Charlie Truong <[email protected]> --------- Signed-off-by: Charlie Truong <[email protected]>
1 parent 2e15dc5 commit c19c447

File tree

3 files changed

+998
-647
lines changed

3 files changed

+998
-647
lines changed

docker/Dockerfile.ci

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,5 +31,20 @@ RUN --mount=type=bind,source=pyproject.toml,target=/workspace/pyproject.toml \
3131

3232
# Use the container's torch installation rather than reinstall it
3333
uv venv --system-site-packages ${UV_PROJECT_ENVIRONMENT}
34-
uv sync --link-mode symlink --locked --only-group test --only-group dev
34+
uv sync --link-mode symlink --locked --all-groups \
35+
--no-install-package absl-py \
36+
--no-install-package torch \
37+
--no-install-package triton \
38+
--no-install-package nvidia-cublas-cu12 \
39+
--no-install-package nvidia-cuda-cupti-cu12 \
40+
--no-install-package nvidia-cuda-nvrtc-cu12 \
41+
--no-install-package nvidia-cuda-runtime-cu12 \
42+
--no-install-package nvidia-cudnn-cu12 \
43+
--no-install-package nvidia-cufft-cu12 \
44+
--no-install-package nvidia-cufile-cu12 \
45+
--no-install-package nvidia-curand-cu12 \
46+
--no-install-package nvidia-cusolver-cu12 \
47+
--no-install-package nvidia-cusparse-cu12 \
48+
--no-install-package nvidia-cusparselt-cu12 \
49+
--no-install-package nvidia-nccl-cu12
3550
EOF

pyproject.toml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,11 @@ classifiers = [
5454
"Topic :: Software Development :: Libraries",
5555
"Topic :: Utilities",
5656
]
57-
dependencies = []
57+
dependencies = [
58+
"torch",
59+
"absl-py",
60+
"megatron-core>=0.14.0a0,<0.16.0",
61+
]
5862

5963
[build-system]
6064
requires = ["setuptools>=61"]
@@ -83,6 +87,9 @@ dev = [
8387
"mypy>=1.8.0",
8488
]
8589

90+
[tool.uv]
91+
managed = true
92+
8693
[tool.setuptools]
8794
packages = ["emerging_optimizers"]
8895

0 commit comments

Comments
 (0)