-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
54 lines (46 loc) · 1.43 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
"""Cream
Copyright (c) 2023-present NAVER Cloud Corp.
MIT license"""
import os
from setuptools import find_packages, setup
ROOT = os.path.abspath(os.path.dirname(__file__))
def read_version():
data = {}
path = os.path.join(ROOT, "cream", "_version.py")
with open(path, "r", encoding="utf-8") as f:
exec(f.read(), data)
return data["__version__"]
def read_long_description():
path = os.path.join(ROOT, "README.md")
with open(path, "r", encoding="utf-8") as f:
text = f.read()
return text
setup(
name="cream-python",
version=read_version(),
license="MIT",
description="Visually-Situated Natural Language Understanding with Contrastive Reading Model and Frozen Large Language Models",
long_description=read_long_description(),
long_description_content_type="text/markdown",
author="Geewook Kim, Hodong Lee, Daehee Kim, Haeji Jung, Sanghee Park, Yoonsik Kim, Sangdoo Yun, Taeho Kil, Bado Lee, Seunghyun Park",
author_email="[email protected]",
packages=find_packages(
exclude=[
"tutorial",
"lightning_module.py",
"train.py",
"test.py",
"pyproject.toml",
]
),
python_requires=">=3.8",
install_requires=[
"torch",
"transformers==4.34.1",
"timm>=0.8.3.dev0",
"pytorch-lightning>=1.8.6,<=1.9.5",
"sentencepiece",
"Pillow",
"lmdb",
],
)