-
Notifications
You must be signed in to change notification settings - Fork 5
/
pyproject.toml
98 lines (89 loc) · 2.79 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
# Code style
[tool.ruff]
line-length = 119
[tool.ruff.lint]
# Enable pycodestyle (`E`) and Pyflakes (`F`) codes by default.
# Never enforce `E501` (line length violations).
ignore = ["E501"]
select = ["C", "E", "F", "I", "W", "CPY"]
fixable = ["A", "B", "C", "D", "E", "F", "G", "I", "N", "Q", "S", "T", "W", "ANN", "ARG", "BLE", "COM", "DJ", "DTZ", "EM", "ERA", "EXE", "FBT", "ICN", "INP", "ISC", "NPY", "PD", "PGH", "PIE", "PL", "PT", "PTH", "PYI", "RET", "RSE", "RUF", "SIM", "SLF", "TCH", "TID", "TRY", "UP", "YTT"]
preview = true
[tool.ruff.lint.isort]
lines-after-imports = 2
known-first-party = ["indic_eval"]
[tool.ruff.format]
quote-style = "double" # Like Black, use double quotes for strings.
indent-style = "space" # Like Black, indent with spaces, rather than tabs.
skip-magic-trailing-comma = false # Like Black, respect magic trailing commas.
line-ending = "auto" # Like Black, automatically detect the appropriate line ending.
# Building package
[build-system]
requires = ["setuptools>=61.0"]
build-backend = "setuptools.build_meta"
[tool.setuptools.packages.find]
where = ["src"]
[project]
name = "indic_eval"
version = "0.1.0"
authors = [
{ name="Adithya S Kolavi", email="[email protected]" }
]
maintainers = [
{ name="Adithya S Kolavi", email="[email protected]" }
]
description = "A package to make LLM evaluation easier"
readme = "README.md"
requires-python = ">=3.10"
license = {text = "MIT License"}
classifiers = [
"Programming Language :: Python :: 3",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
]
keywords = ["evaluation", "nlp", "llm"]
dependencies = [
# Base dependencies
"art==6.1",
"requests",
"transformers>=4.38.0",
"huggingface_hub>=0.22.0",
"torch>=2.0",
"GitPython>=3.1.41", # for logging
"datasets>=2.14.0",
# Prettiness
"termcolor==2.3.0",
"pytablewriter",
"colorama",
# Extension of metrics
"aenum==3.1.15",
# Base metrics
"nltk==3.8.1",
"scikit-learn",
"spacy==3.7.2",
"sacrebleu",
"rouge_score==0.1.2",
"sentencepiece>=0.1.99",
"protobuf==3.20.*", # pinned for sentencepiece compat
"pycountry",
]
[project.optional-dependencies]
accelerate = ["accelerate"]
tgi = ["text-generation==0.6.0"]
optimum = ["optimum==1.12.0"]
quantization = ["bitsandbytes>=0.41.0", "auto-gptq>=0.4.2"]
adapters = ["peft==0.3.0"]
nanotron = [
"nanotron",
"tensorboardX"
]
quality = ["ruff==v0.2.2","pre-commit"]
tests = ["pytest==7.4.0"]
dev = ["indic_eval[accelerate,quality,tests]"]
extended_tasks = [
"langdetect", #ifeval
]
[project.urls]
Homepage = "https://github.com/adithya-s-k/indic_eval"
Issues = "https://github.com/adithya-s-k/indic_eval/issues"
# Documentation = ""
# Changelog = "https://github.com/adithya-s-k/indic_eval/blob/master/CHANGELOG.md"