-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
59 lines (57 loc) · 2.22 KB
/
setup.py
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
# Copyright 2023 AllenAI. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
from setuptools import find_packages, setup
setup(
name="rewardbench",
version="0.1.0.dev",
author="Nathan Lambert",
author_email="[email protected]",
description="Tools for evaluating reward models",
long_description=open("README.md").read(),
long_description_content_type="text/markdown",
url="https://github.com/allenai/rewardbench",
packages=find_packages(),
classifiers=[
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.10",
"License :: OSI Approved :: Apache 2.0 License",
"Operating System :: OS Independent",
],
python_requires=">=3.10",
install_requires=[
"accelerate",
"bitsandbytes",
"black==24.3.0",
"datasets",
"deepspeed",
"einops",
"flake8>=6.0",
"fschat[model_worker,webui]",
"huggingface_hub",
"isort>=5.12.0",
"pandas",
"peft",
"pytest",
# "ray", # for generative llm multi-gpu
"scipy",
"tabulate", # dependency for markdown rendering in pandas
"tokenizers",
"tiktoken==0.6.0", # added for llama 3
# "transformers @ git+https://github.com/huggingface/transformers.git@851f253f4d3fa2414451eeaac82b7a9ad6084675", # noqa
"transformers==4.40.0", # pinned at llama 3
"trl>=0.8.2", # fixed transformers import error
# TODO consider vllm in setup, currently only in dockerfile
# "vllm @ git+https://github.com/vllm-project/vllm.git@d87f39e9a9dd149f5dd7a58b4d98b21f713827b6", # noqa, # TODO pin version, Command R Plus is currently only in source install
],
)