-
Notifications
You must be signed in to change notification settings - Fork 52
/
Copy pathsetup.py
76 lines (70 loc) · 1.54 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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
import os
from pathlib import Path
from setuptools import setup, find_packages
this_directory = Path(__file__).parent
long_description = (this_directory / "README.md").read_text()
version_folder = os.path.dirname(os.path.join(os.path.abspath(__file__)))
with open(os.path.join(version_folder, 'src/version')) as f:
__version__ = f.read().strip()
install_requires = [
# verl
'accelerate',
'codetiming',
'datasets',
'dill',
'hydra-core',
'numpy',
'pandas',
'peft',
'pyarrow>=15.0.0',
'pybind11',
'pylatexenc',
'ray[default]>=2.10',
'tensordict<=0.6.2',
'torchdata',
'transformers',
'vllm==0.8.4',
'wandb',
# flashrag
'datasets',
'base58',
'nltk',
'numpy',
'langid',
'openai',
'peft',
'PyYAML',
'rank_bm25',
'rouge',
'spacy',
'tiktoken',
'torch',
'tqdm',
'transformers>=4.40.0',
'bm25s[core]==0.2.0',
'fschat',
'streamlit',
'chonkie>=0.4.0',
'gradio>=5.0.0',
'rouge-chinese',
'jieba',
# others
'sglang',
'jsonlines',
]
setup(
name='re-call',
version=__version__,
package_dir={'': 'src'},
packages=find_packages(where='src'),
url='https://github.com/Agent-RL/ReCall',
license='MIT License',
author='Baichuan Inc.',
author_email='[email protected]',
description='ReCall: Learning to Reason with Tool Call for LLMs via Reinforcement Learning',
install_requires=install_requires,
package_data={'': ['**/*.yaml']},
include_package_data=True,
long_description=long_description,
long_description_content_type='text/markdown'
)