forked from NVIDIA/bionemo-framework
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
141 lines (128 loc) · 3.99 KB
/
pyproject.toml
File metadata and controls
141 lines (128 loc) · 3.99 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
[build-system]
requires = ["setuptools", "wheel"]
build-backend = "setuptools.build_meta"
# We can likely clean up the meta-package once https://github.com/astral-sh/uv/issues/6935 has a resolution.
[project]
name = "bionemo-meta"
readme = "README.md"
description = "BioNeMo meta-package."
authors = [{ name = "BioNeMo Team", email = "bionemofeedback@nvidia.com" }]
requires-python = ">=3.10"
classifiers = ["Private :: Do Not Upload", "Programming Language :: Python :: 3.10"]
license = { file = "LICENSE/license.txt" }
version = "2.0.0"
dependencies = [
# **ALL** bionemo sub-packages
'bionemo-core',
'bionemo-evo2',
'bionemo-example_model',
'bionemo-geneformer',
'bionemo-llm',
'bionemo-moco',
'bionemo-scdl',
'bionemo-size-aware-batching',
'bionemo-testing',
'bionemo-webdatamodule',
# external
'nemo_run',
'torch==2.3.*',
# internal code
"infra-bionemo",
]
[project.optional-dependencies]
build = ['flash-attn', 'pip']
[tool.uv.workspace]
members = ["3rdparty/*", "internal/infra-bionemo/", "sub-packages/bionemo-*/"]
[tool.uv.sources]
# external
nemo_run = { git = "https://github.com/NVIDIA/NeMo-Run", rev = "34259bd3e752fef94045a9a019e4aaf62bd11ce2" }
# under 3rdparty/
nemo_toolkit = { workspace = true }
megatron-core = { workspace = true }
# in sub-packages/
bionemo-core = { workspace = true }
bionemo-example_model = { workspace = true }
bionemo-geneformer = { workspace = true }
bionemo-llm = { workspace = true }
bionemo-moco = { workspace = true }
bionemo-noodles = { workspace = true }
bionemo-scdl = { workspace = true }
bionemo-size-aware-batching = { workspace = true }
bionemo-testing = { workspace = true }
bionemo-webdatamodule = { workspace = true }
[tool.uv]
dev-dependencies = [
"click",
"ipdb",
"nbval",
"pre-commit",
"pyright",
"ruff",
"tach",
"tenacity",
]
no-build-isolation-package = ["flash-attn"]
cache-keys = [{ git = { commit = true } }]
[tool.black]
line-length = 119
target-version = ['py310']
skip-string-normalization = true
[tool.ruff]
line-length = 119
[tool.ruff.lint]
ignore = ["C901", "D100", "E501", "E741", "RUF005", "RUF010"]
select = [
"C", # Pylint conventions
"D", # Documentation formatting
"E", # style stuff, whitespaces
"F", # important pyflakes lints
"I", # import sorting
"RUF", # Some Ruff-specific lints, unused noqas, etc.
"W", # Pylint warnings
]
# Ignore import violations in all `__init__.py` files.
[tool.ruff.lint.per-file-ignores]
"__init__.py" = ["D104", "E402", "F401", "F403", "F811"]
"test_*.py" = ["D"]
"conftest.py" = ["D"]
"**/*.ipynb" = ["D"]
[tool.ruff.lint.isort]
lines-after-imports = 2
known-first-party = ["bionemo", "infra_bionemo"]
[tool.ruff.lint.pydocstyle]
convention = "google"
[tool.pytest.ini_options]
norecursedirs = ["3rdparty"]
addopts = [
"--durations-min=30.0",
"--durations=0",
"--ignore=3rdparty",
"--ignore-glob=sub-packages/bionemo-moco/examples/discrete_data_interpolant_tutorial.ipynb"
]
markers = [
"slow: medium-complexity tests, like integration tests, on a single GPU",
"multi_gpu: tests that require multiple GPUs",
"distributed: tests that require distributed setup via torchrun execution",
]
[tool.pyright]
include = ["./sub-packages/"]
exclude = ["*/tests/"]
executionEnvironments = [
{ "root" = ".", pythonVersion = "3.10", extraPaths = [
# 3rd party, git submodules
"./3rdparty/Megatron-LM",
"./3rdparty/NeMo",
# bionemo sub-packages
'./sub-packages/bionemo-core/src',
'./sub-packages/bionemo-evo2/src',
'./sub-packages/bionemo-example_model/src',
'./sub-packages/bionemo-geneformer/src',
'./sub-packages/bionemo-llm/src',
'./sub-packages/bionemo-moco/src',
'./sub-packages/bionemo-noodles/src',
'./sub-packages/bionemo-scdl/src',
'./sub-packages/bionemo-size-aware-batching/src',
'./sub-packages/bionemo-testing/src',
'./sub-packages/bionemo-webdatamodule/src',
] },
]