-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathsetup.py
54 lines (52 loc) · 1.6 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
# -*- coding: utf-8 -*-
from setuptools import find_packages, setup
setup(
name='lmcsc',
version='1.0.0',
author='Houquan Zhou',
author_email='[email protected]',
license='MIT',
description='Turn a causal language model into a Chinese Spelling Corrector',
long_description=open('README.md', 'r', encoding='utf-8').read(),
long_description_content_type='text/markdown',
url='https://github.com/Jacob-Zhou/llm-csc',
packages=find_packages(),
classifiers=[
'Development Status :: 4 - Beta',
'Intended Audience :: Developers',
'Intended Audience :: Science/Research',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.10',
'Programming Language :: Python :: 3.11',
'Programming Language :: Python :: 3.12',
'License :: OSI Approved :: MIT License',
'Operating System :: OS Independent',
'Topic :: Scientific/Engineering :: Artificial Intelligence',
'Topic :: Text Processing :: Linguistic'
],
setup_requires=[
'setuptools',
],
install_requires=[
'pypinyin',
'pypinyin-dict',
'torch>=2.0.1',
'transformers>=4.27.0',
'sentencepiece',
'numpy==1.24.4',
'accelerate',
'bitsandbytes',
'modelscope',
'opencc-python-reimplemented',
'streamlit',
'uvicorn',
'fastapi',
'loguru',
'sse_starlette',
'starlette>=0.40.0,<0.42.0'
],
extras_require={},
python_requires='>=3.7',
zip_safe=False,
include_package_data=True
)