forked from xjdr-alt/entropix
-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
67 lines (58 loc) · 1.41 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
[tool.poetry]
name = "entropix"
version = "0.1.0"
description = ""
authors = ['xjdr']
readme = "README.md"
[tool.poetry.dependencies]
python = "^3.11"
jax = {version = "^0.4.33", extras = ["cuda12"], markers = "platform_system != 'Darwin'"}
jaxlib = {version = "^0.4.33", extras = ["cpu"], markers = "platform_system == 'Darwin'"}
flax = "^0.9.0"
tiktoken = "0.4.0"
pydantic = "^2.9.2"
blobfile = "^3.0.0"
ml-dtypes = "^0.5.0"
rich = "^13.8.1"
torch = {version = "^2.4.1", source = "pytorch", extras = ["+cu124"], optional = true, markers = "platform_system != 'Darwin'"}
chex = "^0.1.87"
tyro = "^0.8.11"
[tool.poetry.group.dev.dependencies]
pytest = "^8.3.2"
ruff = "^0.6.2"
transformers = "^4.45.1"
huggingface-hub = {extras = ["cli"], version = "^0.25.1"}
[tool.poetry.group.test.dependencies]
torch = "^2.4.1"
fairscale = "^0.4.13"
[[tool.poetry.source]]
name = "pytorch"
url = "https://download.pytorch.org/whl/cu124"
priority = "explicit"
[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"
[tool.ruff]
extend-exclude = ["tests/**"]
lint.select = [
# pycodestyle
"E",
# Pyflakes
"F",
# pyupgrade
"UP",
# flake8-bugbear
"B",
# flake8-simplify
"SIM",
# isort
"I",
# Ruff
"RUF",
]
lint.ignore = [
"E501", # ignore line-length (e.g. long docstring)
"SIM117", # ignore combine with statements (it leads to harder to read code)
]
line-length = 88
indent-width = 2