pyproject.toml 3.67 KB
Newer Older
1
2
3
4
5
6
[build-system]
requires = ["setuptools>=40.8.0", "wheel"]
build-backend = "setuptools.build_meta"

[project]
name = "lm_eval"
Baber Abbasi's avatar
Baber Abbasi committed
7
version = "0.4.9.1"
8
authors = [
Baber's avatar
Baber committed
9
    { name = "EleutherAI", email = "contact@eleuther.ai" }
10
11
12
13
14
15
16
17
18
]
description = "A framework for evaluating language models"
readme = "README.md"
classifiers = [
    "Development Status :: 3 - Alpha",
    "Programming Language :: Python :: 3",
    "License :: OSI Approved :: MIT License",
    "Operating System :: OS Independent",
]
Baber Abbasi's avatar
Baber Abbasi committed
19
requires-python = ">=3.9"
20
21
license = { "text" = "MIT" }
dependencies = [
Baber's avatar
Baber committed
22
23
24
25
26
27
28
29
30
31
32
33
34
35
    "accelerate>=0.26.0",
    "datasets>=2.16.0,<4.0",
    "evaluate>=0.4.0",
    "peft>=0.2.0",
    "pytablewriter",
    "rouge-score>=0.0.4",
    "sacrebleu>=1.5.0",
    "scikit-learn>=0.24.1",
    "sqlitedict",
    "torch>=1.8",
    "transformers>=4.1",
    "dill",
    "word2number",
    "more_itertools"
36
37
38
39
]

# required to include yaml files in pip installation
[tool.setuptools.package-data]
Hailey Schoelkopf's avatar
Hailey Schoelkopf committed
40
lm_eval = ["**/*.yaml", "tasks/**/*"]
41
42

[project.scripts]
haileyschoelkopf's avatar
haileyschoelkopf committed
43
44
lm-eval = "lm_eval.__main__:cli_evaluate"
lm_eval = "lm_eval.__main__:cli_evaluate"
45
46
47
48
49
50

[project.urls]
Homepage = "https://github.com/EleutherAI/lm-evaluation-harness"
Repository = "https://github.com/EleutherAI/lm-evaluation-harness"

[project.optional-dependencies]
Harsha's avatar
Harsha committed
51
acpbench = ["lark>=1.1.9", "tarski[clingo]==0.8.2", "pddl==0.4.2", "kstar-planner==1.4.2"]
Baber Abbasi's avatar
Baber Abbasi committed
52
api = ["requests", "aiohttp", "tenacity", "tqdm", "tiktoken"]
53
audiolm_qwen = ["librosa", "soundfile"]
54
dev = ["pytest", "pytest-cov", "pytest-xdist", "pre-commit", "requests", "aiohttp", "tenacity", "tqdm", "tiktoken", "sentencepiece"]
55
gptq = ["auto-gptq[triton]>=0.6.0"]
56
gptqmodel = ["gptqmodel>=1.0.9"]
Michael Feil's avatar
Michael Feil committed
57
hf_transfer = ["hf_transfer"]
58
ibm_watsonx_ai = ["ibm_watsonx_ai>=1.1.22", "python-dotenv"]
59
ifeval = ["langdetect", "immutabledict", "nltk>=3.9.1"]
60
61
ipex = ["optimum"]
japanese_leaderboard = ["emoji==2.14.0", "neologdn==0.5.3", "fugashi[unidic-lite]", "rouge_score>=0.1.2"]
Baber's avatar
Baber committed
62
longbench = ["jieba", "fuzzywuzzy", "rouge"]
Baber's avatar
Baber committed
63
libra = ["pymorphy2"]
64
mamba = ["mamba_ssm", "causal-conv1d==1.0.2", "torch"]
65
math = ["sympy>=1.12", "antlr4-python3-runtime==4.11", "math_verify[antlr4_11_0]"]
66
multilingual = ["nagisa>=0.2.7", "jieba>=0.42.1", "pycountry"]
67
neuronx = ["optimum[neuronx]"]
68
optimum = ["optimum[openvino]"]
69
promptsource = ["promptsource>=0.2.3"]
Baber Abbasi's avatar
Baber Abbasi committed
70
ruler = ["nltk", "wonderwords", "scipy"]
71
sae_lens = ["sae_lens"]
72
sentencepiece = ["sentencepiece>=0.1.98"]
73
sparsify = ["sparsify"]
74
discrim_eval = ["statsmodels==0.14.4"]
75
tasks = [
Baber's avatar
Baber committed
76
77
    "lm_eval[acpbench]",
    "lm_eval[discrim_eval]",
78
    "lm_eval[ifeval]",
Baber's avatar
Baber committed
79
80
    "lm_eval[japanese_leaderboard]",
    "lm_eval[longbench]",
81
82
    "lm_eval[libra]",
    "lm_eval[mamba]",
Baber's avatar
Baber committed
83
84
85
    "lm_eval[math]",
    "lm_eval[multilingual]",
    "lm_eval[ruler]"
86
]
Baber's avatar
Baber committed
87
88
89
90
91
92
testing = ["pytest", "pytest-cov", "pytest-xdist"]
unitxt = ["unitxt==1.22.0"]
vllm = ["vllm>=0.4.2"]
wandb = ["wandb>=0.16.3", "pandas", "numpy"]
zeno = ["pandas", "zeno-client"]

Kiersten Stokes's avatar
Kiersten Stokes committed
93
94
95
96
97
98
99
100
[tool.pymarkdown]
plugins.md013.enabled = false # line-length
plugins.md024.allow_different_nesting = true # no-duplicate-headers
plugins.md025.enabled = false # single-header
plugins.md028.enabled = false # no-blanks-blockquote
plugins.md029.allow_extended_start_values = true # ol-prefix
plugins.md034.enabled = false # no-bare-urls

Baber's avatar
Baber committed
101
102
[tool.ruff]
target-version = "py39"
Baber's avatar
Baber committed
103
lint.extend-select = ["I", "UP", "E", "C419", "F", "B", "SIM", "RUF034", "W605", "FURB"]
Baber's avatar
Baber committed
104
105
106
107
lint.fixable = ["I001", "F401", "UP"]
lint.ignore = ["E402", "E731", "E501", "E111", "E114", "E117", "E741"]

[tool.ruff.lint.extend-per-file-ignores]
108
"__init__.py" = ["F401", "F402", "F403", "F405"]
109

110
[tool.ruff.lint.isort]
Baber's avatar
Baber committed
111
combine-as-imports = true
112
known-first-party = ["lm_eval"]
Baber's avatar
Baber committed
113
lines-after-imports = 2
114

Baber's avatar
Baber committed
115
116
[tool.setuptools.packages.find]
include = ["lm_eval*"]