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

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

setuptools.setup(
Leo Gao's avatar
Leo Gao committed
7
    name="lm_eval",
8
9
10
11
    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
12
13
14
15
    long_description=long_description,
    long_description_content_type="text/markdown",
    url="https://github.com/EleutherAI/lm-evaluation-harness",
    packages=setuptools.find_packages(),
16
17
    # required to include yaml files in pip installation
    package_data={
lintangsutawika's avatar
lintangsutawika committed
18
        "lm_eval": ["**/*.yaml"],
Lintang Sutawika's avatar
Lintang Sutawika committed
19
        "examples": ["**/*.yaml"],
20
    },
21
22
23
    entry_points={
        "console_scripts": ["lm-eval = main:main", "lm_eval = main:main"],
    },
24
    include_package_data=True,
Leo Gao's avatar
Leo Gao committed
25
    classifiers=[
jon-tow's avatar
jon-tow committed
26
        "Development Status :: 3 - Alpha",
Leo Gao's avatar
Leo Gao committed
27
28
29
30
        "Programming Language :: Python :: 3",
        "License :: OSI Approved :: MIT License",
        "Operating System :: OS Independent",
    ],
31
    python_requires=">=3.9",
32
    install_requires=[
33
        "accelerate>=0.18.0",
haileyschoelkopf's avatar
haileyschoelkopf committed
34
        "evaluate",
jon-tow's avatar
jon-tow committed
35
        "datasets>=2.0.0",
nikuya3's avatar
nikuya3 committed
36
        "evaluate>=0.4.0",
jon-tow's avatar
jon-tow committed
37
38
39
        "jsonlines",
        "numexpr",
        "openai>=0.6.4",
Xingjian Shi's avatar
Xingjian Shi committed
40
        "omegaconf>=2.2",
41
        "peft>=0.2.0",
jon-tow's avatar
jon-tow committed
42
43
44
45
46
        "pybind11>=2.6.2",
        "pycountry",
        "pytablewriter",
        "rouge-score>=0.0.4",
        "sacrebleu==1.5.0",
47
        "scikit-learn>=0.24.1",
jon-tow's avatar
jon-tow committed
48
        "sqlitedict",
haileyschoelkopf's avatar
haileyschoelkopf committed
49
        "torch>=1.8",
jon-tow's avatar
jon-tow committed
50
        "tqdm-multiprocess",
51
        "transformers>=4.1",
jon-tow's avatar
jon-tow committed
52
        "zstandard",
53
    ],
jon-tow's avatar
jon-tow committed
54
55
    extras_require={
        "dev": ["black", "flake8", "pre-commit", "pytest", "pytest-cov"],
baberabb's avatar
baberabb committed
56
57
58
59
60
61
62
        "linting": [
            "flake8",
            "pylint",
            "mypy",
            "pre-commit",
        ],
        "testing": ["pytest", "pytest-cov", "pytest-xdist"],
jon-tow's avatar
jon-tow committed
63
        "multilingual": ["nagisa>=0.2.7", "jieba>=0.42.1"],
lintangsutawika's avatar
lintangsutawika committed
64
        "sentencepiece": ["sentencepiece>=0.1.98", "protobuf>=4.22.1"],
65
66
67
        "promptsource": [
            "promptsource @ git+https://github.com/bigscience-workshop/promptsource.git#egg=promptsource"
        ],
gk's avatar
gk committed
68
        "gptq": ["auto-gptq[triton] @ git+https://github.com/PanQiWei/AutoGPTQ"],
Jason Phang's avatar
Jason Phang committed
69
        "anthropic": ["anthropic"],
jon-tow's avatar
jon-tow committed
70
    },
Leo Gao's avatar
Leo Gao committed
71
)