-
Notifications
You must be signed in to change notification settings - Fork 8
/
pyproject.toml
87 lines (71 loc) · 1.93 KB
/
pyproject.toml
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
[project]
name = "modalities"
version = "0.3.2"
requires-python = ">=3.10,<3.12"
description = "Modalities, a PyTorch-native framework for distributed and reproducible foundation model training."
readme = "README.md"
dependencies = [
"numpy<2.0",
"torch~=2.4.1",
"packaging",
"tqdm",
"pyyaml",
"transformers",
"datasets",
"protobuf",
"SentencePiece",
"rich",
"omegaconf",
"pydantic",
"click",
"click_pathlib",
"jq",
"class_resolver",
"wandb",
"einops>=0.7.0",
"flash-attn", # install this directly via `pip install flash-attn --no-build-isolation`
]
[project.urls]
Homepage = "https://github.com/Modalities/modalities"
Issues = "https://github.com/Modalities/modalities/issues"
[project.optional-dependencies]
linting = ["pre-commit"]
tests = ["pytest", "pytest-cov", "debugpy"]
install_helper = ["ninja"]
[project.scripts]
modalities = "modalities.__main__:main"
[build-system]
requires = ["setuptools >= 61.0.0"]
build-backend = "setuptools.build_meta"
[tool.black]
target-version = ["py310"]
line-length = 120
[tool.isort]
profile = "black"
line_length = 120
src_paths = ["src", "tests"]
[tool.ruff]
line-length = 120
[tool.pytest.ini_options]
addopts = "--cov=src --cov-report term --cov-report html"
[tool.coverage.run]
branch = true
omit = ["*/src/modalities/dataloader/open_gptx_dataset/*"]
[tool.coverage.report]
# Regexes for lines to exclude from consideration
exclude_also = [
# Don't complain about missing debug-only code:
"def __repr__",
"if self\\.debug",
# Don't complain if tests don't hit defensive assertion code:
"raise AssertionError",
"raise NotImplementedError",
# Don't complain if non-runnable code isn't run:
"if 0:",
"if __name__ == .__main__.:",
# Don't complain about abstract methods, they aren't run:
"@(abc\\.)?abstractmethod",
]
ignore_errors = true
[tool.coverage.html]
directory = "coverage_html_report"