-
Notifications
You must be signed in to change notification settings - Fork 33
/
Copy pathpyproject.toml
63 lines (52 loc) · 1.23 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
[project]
name = "cut-cross-entropy"
dynamic = ["version"]
readme = "README.md"
description = "Code for cut cross entropy, a memory efficient implementation of linear-cross-entropy loss."
requires-python = ">= 3.9"
dependencies = [
"torch>=2.4",
'triton>=3.0.0 ; platform_system != "Darwin"',
]
[project.optional-dependencies]
test = [
"pytest",
"pytest-sugar",
"setuptools>=77.0.3",
]
transformers = [
"transformers>=4.48.2",
]
all = [
"cut-cross-entropy[transformers]",
'deepspeed>=0.15.1 ; platform_system != "Darwin"',
"accelerate>=0.34.2",
"datasets>=3.1.0",
"huggingface_hub>=0.26.2",
"pandas",
"fire",
"tqdm",
]
dev = [
"cut-cross-entropy[all,test]",
"build",
"twine",
"pre-commit",
"pytest-xdist",
]
[build-system]
requires = ["setuptools >= 61.0", "setuptools-scm"]
build-backend = "setuptools.build_meta"
[tool.setuptools.packages.find]
include = ["cut_cross_entropy*"]
[tool.setuptools.dynamic]
version = {attr = "cut_cross_entropy.__version__"}
[tool.pytest.ini_options]
minversion = "6.0"
addopts = "--verbose -rsxX -q"
testpaths = ["tests"]
[tool.ruff]
line-length = 100
lint.select = ["F", "I"]
[tool.ruff.lint.isort]
known-first-party = ["cut_cross_entropy"]