-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathsetup.py
More file actions
48 lines (46 loc) · 1.47 KB
/
setup.py
File metadata and controls
48 lines (46 loc) · 1.47 KB
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
from setuptools import setup, find_packages
import os
# Read the contents of the README file
with open("README.md", encoding="utf-8") as f:
long_description = f.read()
setup(
name="alignmap",
version="0.1.0",
author="Jingwen Ding",
author_email="dingj@example.com",
description="A framework for aligning language models with human values",
long_description=long_description,
long_description_content_type="text/markdown",
url="https://github.com/yourusername/alignmap",
project_urls={
"Bug Tracker": "https://github.com/yourusername/alignmap/issues",
"Documentation": "https://github.com/yourusername/alignmap#readme",
},
classifiers=[
"Programming Language :: Python :: 3",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
],
package_dir={"": "."},
packages=find_packages(where="."),
python_requires=">=3.8",
install_requires=[
"torch>=1.9.0",
"transformers>=4.20.0",
"numpy>=1.20.0",
"scikit-learn>=1.0.0",
"scipy>=1.7.0",
"pandas>=1.3.0",
"tqdm>=4.62.0",
"pyyaml>=6.0",
"datasets>=2.0.0",
"trl>=0.4.1",
],
entry_points={
"console_scripts": [
"alignmap-train=alignmap.cli.train:main",
"alignmap-align=alignmap.cli.align:main",
"alignmap-list-models=alignmap.models.reward_models:list_available_reward_models_cli",
],
},
)