This commit is contained in:
Michael J Clark
2025-01-10 15:32:45 +08:00
committed by GitHub
parent ed3dd0b57c
commit 922a0deeec
2 changed files with 34 additions and 44 deletions
+2 -2
View File
@@ -15,9 +15,9 @@ Project plan:
## Install requirements
This project uses [poetry](https://python-poetry.org/) for requirement and is set up for torch using cuda.
This project uses [uv](https://github.com/astral-sh/uv) for requirements.
~~~
poetry install
uv sync
~~~
## How to get data
+32 -42
View File
@@ -1,51 +1,41 @@
[tool.poetry]
[project]
name = "{{ cookiecutter.project_name.lower().replace(' ', '_') }}"
version = "0.1.0"
description = "{{ cookiecutter.description }}"
authors = ["{{ cookiecutter.author_name }}"]
license = "MIT"
readme = "README.md"
requires-python = ">=3.10"
dependencies = [
python = ">=3.10"
numpy = "^1.26.1"
pandas = "^2.1.1"
matplotlib = "^3.8.0"
scikit-learn = "^1.3.1"
loguru = "^0.7.2"
tqdm = "^4.66.1"
# einops = "^0.7.0"
# simple-parsing = "^0.1.4"
# torch = {version = "^2.1.0+cu124", source = "pytorch"}
# lightning = "^2.1.0"
# pytorch-optimizer = "^2.12.0"
# torchinfo = "^1.8.0"
# accelerate = "^0.24.1"
# transformers = "4.34.0"
# accelerate = "^0.24.1"
# peft = "^0.5.0"
# loguru = "^0.7.2"
# einops = "^0.3.1"
]
[virtualenvs]
in-project=true
[tool.poetry.dependencies]
python = ">=3.10"
numpy = "^1.26.1"
pandas = "^2.1.1"
matplotlib = "^3.8.0"
scikit-learn = "^1.3.1"
loguru = "^0.7.2"
tqdm = "^4.66.1"
# einops = "^0.7.0"
# simple-parsing = "^0.1.4"
# torch = {version = "^2.1.0+cu124", source = "pytorch"}
# lightning = "^2.1.0"
# pytorch-optimizer = "^2.12.0"
# torchinfo = "^1.8.0"
# accelerate = "^0.24.1"
# transformers = "4.34.0"
# accelerate = "^0.24.1"
# peft = "^0.5.0"
# loguru = "^0.7.2"
# einops = "^0.3.1"
[[tool.poetry.source]]
# pytorch cuda needs to compe from another source https://python-poetry.org/docs/dependency-specification/#source-dependencies
name = "pytorch"
url = "https://download.pytorch.org/whl/cu124"
priority = "explicit"
[tool.poetry.group.dev.dependencies]
ipykernel = "^6.25.2"
ipywidgets = "^8.1.3"
ruff = "^0.1.3"
pylama = "^8.4.1"
[dependency-groups]
dev = [
"ipykernel>=6.29.5",
"ipywidgets>=8.1.5",
"pytest>=8.0.2",
"ruff>=0.8.3",
]
[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"
[virtualenvs]
create = true
in-project = true
requires = ["hatchling"]
build-backend = "hatchling.build"