-
Notifications
You must be signed in to change notification settings - Fork 40
/
pyproject.toml
109 lines (96 loc) · 1.97 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
[build-system]
requires = ["setuptools>=61.0.0"]
build-backend = "setuptools.build_meta"
[project]
name = "attention_sinks"
description = "Extend LLMs to infinite length without sacrificing efficiency and performance, without retraining"
readme = "README.md"
requires-python = ">=3.8"
license = {text = "Apache-2.0"}
keywords = [
"data-science",
"natural-language-processing",
"artificial-intelligence",
"mlops",
"nlp",
"machine-learning",
"transformers"
]
authors = [
{name = "Tom Aarsen"}
]
maintainers = [
{name = "Tom Aarsen"}
]
dependencies = [
"torch",
"transformers==4.34.0",
"tokenizers>=0.14,<0.15",
]
dynamic = ["version"]
[project.optional-dependencies]
dev = [
"pre-commit",
"ruff",
"black",
"pytest",
"pytest-cov",
"spacy"
]
[project.urls]
Repository = "https://github.com/tomaarsen/attention_sinks"
[tool.setuptools.packages.find]
include = ["attention_sinks*"]
exclude = ["models/*"]
[tool.setuptools.dynamic]
version = {attr = "attention_sinks.__version__"}
[tool.pytest.ini_options]
testpaths = [
"tests"
]
addopts = "--cov=attention_sinks --durations=10"
[tool.coverage.report]
exclude_lines = [
"pragma: no cover",
"def __repr__",
"def __str__",
"raise AssertionError",
"raise NotImplementedError",
"if __name__ == .__main__.:",
"if TYPE_CHECKING:",
"if _TYPE_CHECKING:",
"if typing.TYPE_CHECKING:"
]
[tool.isort]
profile = "black"
[tool.ruff]
line-length = 120
# Ignore line length violations
ignore = ["E501"]
# Exclude a variety of commonly ignored directories.
exclude = [
".bzr",
".direnv",
".eggs",
".git",
".hg",
".mypy_cache",
".nox",
".pants.d",
".ruff_cache",
".svn",
".tox",
".venv",
"__pypackages__",
"_build",
"buck-out",
"build",
"dist",
"node_modules",
"venv",
]
[tool.ruff.per-file-ignores]
# Ignore imported but unused;
"__init__.py" = ["F401"]
[tool.black]
line-length = 120