-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
68 lines (55 loc) · 1.62 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
[tool.poetry]
name = "pilota"
version = "3.4.1"
description = ""
authors = ["Yuta Hayashibe <[email protected]>"]
[tool.poetry.dependencies]
python = ">=3.9,<3.12"
transformers = "^4.31"
numpy = "^1.25.0"
torch = "^2.0.0, !=2.0.1" # https://github.com/pytorch/pytorch/issues/100974
huggingface-hub = ">=0.15.1"
more-itertools = ">=8.6.0"
pydantic = "^2.0.2"
bunkai = "^1.5.5"
asdc = {git = "https://github.com/megagonlabs/asdc", rev = "v4.9.0"}
protobuf = ">=3.20.2,<4" # To fix CVE-2022-1941
# For T5 and LINE-DistilBERT-Japanese
sentencepiece = ">=0.1.95"
# ja-line (for LINE-DistilBERT-Japanese)
fugashi = {version = "^1.2.1", optional = true}
unidic-lite = {version = "^1.0.8", optional = true}
# train
pytorch-lightning = {version = "^2.0.2", extras = ["extra"], optional = true}
sumeval = {version = ">=0.2.2", optional = true}
fairseq = {version = "^0.12.2", optional = true}
# web
fastapi = {version = ">=0.100.0b2", optional = true}
uvicorn = {version = ">=0.13.4", optional = true}
[tool.poetry.group.dev.dependencies]
coverage = ">=5.3"
flake8 = ">=3.8.4"
isort = ">=5.6.4"
yamllint = ">=1.25.0"
pydocstyle = ">=5.1.1"
black = ">=21.10b0"
toml = ">=0.10.2"
cffconvert = "^2.0.0"
[tool.poetry.extras]
ja-line = ["fugashi", "unidic-lite"]
train = ["pytorch-lightning", "sumeval", "fairseq"]
web = ["fastapi", "uvicorn"]
[build-system]
requires = ["poetry-core>=1.2.0"]
build-backend = "poetry.core.masonry.api"
[tool.poetry.scripts]
pilota = "pilota.cli:main"
[tool.pyright]
pythonVersion = "3.9"
typeCheckingMode = "basic"
reportUnusedVariable = "warning"
[tool.black]
line-length = 120
[tool.isort]
profile = "black"
line_length = 120