-
-
Notifications
You must be signed in to change notification settings - Fork 14
/
Copy pathsetup.py
55 lines (53 loc) · 1.81 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
import setuptools
from os import path
import subprocess
here = path.abspath(path.dirname(__file__))
with open(path.join(here, "README.md"), encoding="utf-8") as f:
long_description = f.read()
setuptools.setup(
name="transformers-stream-generator",
version="0.0.5",
license="MIT License",
author="LowinLi",
author_email="lowinli@outlook.com",
description="This is a text generation method which returns a generator, streaming out each token in real-time during inference, based on Huggingface/Transformers.",
long_description=long_description,
long_description_content_type="text/markdown",
url="https://github.com/LowinLi/transformers-stream-generator",
project_urls={
"Repo": "https://github.com/LowinLi/transformers-stream-generator",
"Bug Tracker": "https://github.com/LowinLi/transformers-stream-generator/issues",
},
keywords=[
"GPT",
"stream",
"transformers",
"NLP",
"model hub",
"transformer",
"text generation",
"summarization",
"translation",
"q&a",
"qg",
"machine learning",
"CausalLM",
],
packages=setuptools.find_packages(),
python_requires=">=3.5",
install_requires=[
"transformers>=4.26.1",
],
classifiers=[
"Intended Audience :: Developers",
"Topic :: Scientific/Engineering :: Artificial Intelligence",
"License :: OSI Approved :: Apache Software License",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.5",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
],
)