setup.py 2.26 KB
Newer Older
Leo Gao's avatar
Leo Gao committed
1
import setuptools
haileyschoelkopf's avatar
haileyschoelkopf committed
2
import itertools
Leo Gao's avatar
Leo Gao committed
3
4
5
6

with open("README.md", "r", encoding="utf-8") as fh:
    long_description = fh.read()

haileyschoelkopf's avatar
haileyschoelkopf committed
7
8
9
10
11
12
13
14
15
16
17

extras_require = {
    "dev": ["black", "flake8", "pre-commit", "pytest", "pytest-cov"],
    "linting": [
        "flake8",
        "pylint",
        "mypy",
        "pre-commit",
    ],
    "testing": ["pytest", "pytest-cov", "pytest-xdist"],
    "multilingual": ["nagisa>=0.2.7", "jieba>=0.42.1"],
haileyschoelkopf's avatar
haileyschoelkopf committed
18
    "sentencepiece": ["sentencepiece>=0.1.98", "protobuf>=4.22.1", "pycountry"],
haileyschoelkopf's avatar
haileyschoelkopf committed
19
20
21
22
23
24
25
26
27
28
    "promptsource": [
        "promptsource @ git+https://github.com/bigscience-workshop/promptsource.git#egg=promptsource"
    ],
    "gptq": ["auto-gptq[triton] @ git+https://github.com/PanQiWei/AutoGPTQ"],
    "anthropic": ["anthropic"],
    "openai": ["openai", "tiktoken"],
}
extras_require["all"] = list(itertools.chain.from_iterable(extras_require.values()))


Leo Gao's avatar
Leo Gao committed
29
setuptools.setup(
Leo Gao's avatar
Leo Gao committed
30
    name="lm_eval",
31
32
33
34
    version="1.0.0",
    author="EleutherAI",
    author_email="contact@eleuther.ai",
    description="A framework for evaluating language models",
Leo Gao's avatar
Leo Gao committed
35
36
37
38
    long_description=long_description,
    long_description_content_type="text/markdown",
    url="https://github.com/EleutherAI/lm-evaluation-harness",
    packages=setuptools.find_packages(),
39
40
    # required to include yaml files in pip installation
    package_data={
Eddy Yeo's avatar
Eddy Yeo committed
41
        "lm_eval": ["**/*.yaml", "tasks/**/*"],
Lintang Sutawika's avatar
Lintang Sutawika committed
42
        "examples": ["**/*.yaml"],
43
    },
44
45
46
    entry_points={
        "console_scripts": ["lm-eval = main:main", "lm_eval = main:main"],
    },
47
    include_package_data=True,
Leo Gao's avatar
Leo Gao committed
48
    classifiers=[
jon-tow's avatar
jon-tow committed
49
        "Development Status :: 3 - Alpha",
Leo Gao's avatar
Leo Gao committed
50
51
52
53
        "Programming Language :: Python :: 3",
        "License :: OSI Approved :: MIT License",
        "Operating System :: OS Independent",
    ],
54
    python_requires=">=3.9",
55
    install_requires=[
56
        "accelerate>=0.21.0",
haileyschoelkopf's avatar
haileyschoelkopf committed
57
        "evaluate",
jon-tow's avatar
jon-tow committed
58
        "datasets>=2.0.0",
nikuya3's avatar
nikuya3 committed
59
        "evaluate>=0.4.0",
jon-tow's avatar
jon-tow committed
60
61
        "jsonlines",
        "numexpr",
Xingjian Shi's avatar
Xingjian Shi committed
62
        "omegaconf>=2.2",
63
        "peft>=0.2.0",
jon-tow's avatar
jon-tow committed
64
65
66
        "pybind11>=2.6.2",
        "pytablewriter",
        "rouge-score>=0.0.4",
haileyschoelkopf's avatar
haileyschoelkopf committed
67
        "sacrebleu>=1.5.0",
68
        "scikit-learn>=0.24.1",
jon-tow's avatar
jon-tow committed
69
        "sqlitedict",
haileyschoelkopf's avatar
haileyschoelkopf committed
70
        "torch>=1.8",
jon-tow's avatar
jon-tow committed
71
        "tqdm-multiprocess",
72
        "transformers>=4.1",
jon-tow's avatar
jon-tow committed
73
        "zstandard",
74
    ],
haileyschoelkopf's avatar
haileyschoelkopf committed
75
    extras_require=extras_require,
Leo Gao's avatar
Leo Gao committed
76
)