forked from lm-sys/FastChat
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
65 lines (63 loc) · 2.2 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
from setuptools import setup, find_packages
setup(
name="fschatbsc",
version="0.1.0",
description="A platform to finetune models",
long_description=open("README.md").read(),
long_description_content_type="text/markdown",
license="Apache-2.0",
classifiers=[
"Programming Language :: Python :: 3",
"License :: OSI Approved :: Apache Software License",
],
python_requires=">=3.8",
packages=find_packages(include=["fastchat", "fastchat.*"]),
install_requires=[
"aiohttp",
"fastapi",
"httpx",
"markdown2[all]",
"nh3",
"numpy",
"prompt_toolkit>=3.0.0",
"pydantic<3,>=2.0.0",
"pydantic-settings",
"psutil",
"requests",
"rich>=10.0.0",
"shortuuid",
"tiktoken",
"uvicorn",
"packaging",
"wheel",
"deepsee",
"sentencepiece",
"protobuf"
],
extras_require={
"model_worker": ["accelerate>=0.21", "peft", "sentencepiece", "torch", "transformers>=4.31.0,<=4.44.0", "protobuf"],
"webui": ["gradio>=4.10"],
"train": ["einops", "deepspeed==0.14.4", "wandb", "mlflow", "flash-attn>=2.0"],
"llm_judge": ["openai<1", "anthropic>=0.3", "ray"],
"dev": ["black==23.3.0", "pylint==2.8.2"],
},
include_package_data=True,
package_data={
'fastchat': ['deepspeed_configs/*.json'],
},
zip_safe=False,
entry_points={
'console_scripts': [
'train=fastchat.train.train:train',
'train_baichuan=fastchat.train.train_baichuan:train_baichuan',
'train_lora=fastchat.train.train_lora:train_lora',
'train_mem=fastchat.train.train_mem:train_mem',
'train_with_template=fastchat.train.train_with_template:train_with_template',
'train_yuan2=fastchat.train.train_yuan2:train_yuan2',
'train_flant5=fastchat.train.train_flant5:train_flant5',
'train_lora_t5=fastchat.train.train_lora_t5:train_lora_t5',
'train_xformers=fastchat.train.train_xformers:train_xformers',
],
},
)
#pip install git+https://github.com/langtech-bsc/FastChat.git#egg=fschatbsc[model_worker,train]