-
Notifications
You must be signed in to change notification settings - Fork 91
/
pyproject.toml
113 lines (98 loc) · 2.37 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
[tool.poetry]
name = "llm-toolkit"
version = "0.0.0"
description = "LLM Finetuning resource hub + toolkit"
authors = ["Benjamin Ye <[email protected]>"]
license = "Apache 2.0"
readme = "README.md"
packages = [{include = "llmtune"}]
repository = "https://github.com/georgian-io/LLM-Finetuning-Toolkit"
# homepage = ""
# documentation = ""
keywords = ["llm", "finetuning", "language models", "machine learning", "deep learning"]
classifiers = [
"Intended Audience :: Developers",
"Intended Audience :: Science/Research",
"Topic :: Scientific/Engineering :: Artificial Intelligence",
]
[tool.poetry.scripts]
llmtune = "llmtune.cli.toolkit:cli"
[tool.poetry-dynamic-versioning]
enable = true
vcs = "git"
style = "semver"
[tool.poetry-dynamic-versioning.substitution]
folders = [
{ path = "llmtune" }
]
[tool.poetry.dependencies]
python = ">=3.9, <=3.12"
transformers = "~4.40.2"
datasets = "^2.17.0"
peft = "^0.8.2"
pandas = "^2.2.0"
numpy = "^1.26.4"
ipdb = "^0.13.13"
evaluate = "^0.4.1"
wandb = "^0.16.3"
einops = "^0.7.0"
bitsandbytes = ">=0.43.2"
nltk = "^3.8.1"
accelerate = "^0.27.0"
trl = "~0.8.6"
rouge-score = "^0.1.2"
absl-py = "^2.1.0"
py7zr = "^0.20.8"
tiktoken = "^0.6.0"
ninja = "^1.11.1.1"
packaging = "^23.2"
sentencepiece = "^0.1.99"
protobuf = "^4.25.2"
ai21 = "^2.0.3"
openai = "^1.12.0"
ujson = "^5.9.0"
pyyaml = "^6.0.1"
ijson = "^3.2.3"
rich = "^13.7.0"
sqids = "^0.4.1"
pydantic = "^2.6.1"
typer = "^0.10.0"
shellingham = "^1.5.4"
langchain = "^0.2.5"
[tool.poetry.group.dev.dependencies]
ruff = "~0.3.5"
pytest = "^8.1.1"
pytest-cov = "^5.0.0"
pytest-mock = "^3.14.0"
[build-system]
requires = ["poetry-core", "poetry-dynamic-versioning>=1.0.0,<2.0.0"]
build-backend = "poetry_dynamic_versioning.backend"
[tool.ruff]
lint.ignore = ["C901", "E501", "E741", "F402", "F823" ]
lint.select = ["C", "E", "F", "I", "W"]
line-length = 119
exclude = [
"llama2",
"mistral",
]
[tool.ruff.lint.isort]
lines-after-imports = 2
known-first-party = ["llmtune"]
[tool.ruff.format]
quote-style = "double"
indent-style = "space"
skip-magic-trailing-comma = false
line-ending = "auto"
[tool.coverage.run]
omit = [
# Ignore UI for now as this might change quite often
"llmtune/ui/*",
"llmtune/utils/rich_print_utils.py"
]
[tool.coverage.report]
skip_empty = true
exclude_also = [
"pass",
]
[tool.pytest.ini_options]
addopts = "--cov=llmtune --cov-report term-missing"