forked from arcee-ai/DALM
-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
139 lines (115 loc) · 2.54 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
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
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[project]
name = "indomain"
authors = [{name = "Shamane Siri", email = "[email protected]"}, {name = "Ben Epstein", email = "[email protected]"}]
readme = "README.md"
requires-python = ">=3.10"
license = {text = "Apache 2.0"}
dynamic = ["version", "description"]
packages = [
{ include = "dalm" }
]
dependencies = [
"scikit-learn",
"transformers>4.35",
"peft",
"accelerate",
"datasets",
"torch",
"hnswlib",
"evaluate",
"tqdm",
"peft",
"trl",
"bitsandbytes",
"typer>=0.9.0,<1.0",
"pydantic==1.10.9", # Sync w/ other platform components
"pysbd",
"sentencepiece"
]
[project.scripts]
dalm = "dalm.cli:cli"
[tool.hatch.build.targets.wheel.shared-data]
"prefix" = "prefix"
[tool.hatch.version]
path = "dalm/__init__.py"
[project.optional-dependencies]
dev = [
"black",
"boto3-stubs",
"build",
"httpx",
"invoke",
"jupyter",
"mypy",
"pre-commit",
"pytest-cov",
"pytest-mock",
"pytest-timeout",
"pytest",
"python-dotenv",
"rich",
"ruff",
"types-cachetools",
"types-markdown",
"types-PyYAML",
"types-requests",
"types-tqdm",
"packaging",
"pandas-stubs"
]
[project.urls]
Home = "https://arcee.ai"
[tool.black]
line-length = 120
[tool.ruff]
target-version = "py311"
respect-gitignore = true
line-length = 120
# Pyflakes, bugbear, pycodestyle, pycodestyle warnings, isort
select=["TID252", "B", "F", "E", "W", "I001"]
[tool.ruff.isort]
case-sensitive = true
order-by-type = true
known-first-party = ["dalm"]
[tool.pytest.ini_options]
timeout = 180
addopts = [
"-o",
"console_output_style=progress",
"--disable-warnings",
"--cov=dalm",
"--cov=tests",
"--cov-report=term-missing",
"--cov-report=xml",
"--cov-report=html",
"--durations=10",
]
[tool.ruff.flake8-tidy-imports]
# Disallow all relative imports.
ban-relative-imports = "all"
[tool.mypy]
disallow_untyped_defs = true
[[tool.mypy.overrides]]
module = "sentence_transformers.*"
ignore_missing_imports = true
[[tool.mypy.overrides]]
module = "transformers.*"
ignore_missing_imports = true
[[tool.mypy.overrides]]
module = "accelerate.*"
ignore_missing_imports = true
[[tool.mypy.overrides]]
module = "datasets.*"
ignore_missing_imports = true
[[tool.mypy.overrides]]
module = "evaluate.*"
ignore_missing_imports = true
[[tool.mypy.overrides]]
module = "hnswlib.*"
ignore_missing_imports = true
[[tool.mypy.overrides]]
module = "sklearn.*"
ignore_missing_imports = true