forked from flagos-ai/FlagGems
-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathpyproject.toml
More file actions
176 lines (140 loc) · 4.32 KB
/
pyproject.toml
File metadata and controls
176 lines (140 loc) · 4.32 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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
[build-system]
# cmake locks to '>=3.20,<4.0' to sync with FlagTree
requires = ["setuptools==82.0.1", "scikit-build-core==0.12.2", "pybind11==3.0.3", "cmake==3.31.10", "ninja==1.13.0"]
build-backend = "scikit_build_core.build"
[project]
name = "flag_gems"
version = "5.0.1.rc.0"
description = "FlagGems is a function library written in Triton language."
readme = { file = "README.md", content-type = "text/markdown" }
requires-python = ">=3.8.0"
license = { text = "Apache Software License" }
authors = [
{ name = "Zhixin Li", email = "strongspoon@outlook.com" },
{ name = "Tongxin Bai", email = "waffle.bai@gmail.com" },
{ name = "Yuming Huang", email = "jokmingwong@gmail.com" },
{ name = "Feiyu Chen", email = "iclementine@outlook.com" },
{ name = "Ruilin Yang", email = "rlyanger01@gmail.com"},
{ name = "Zhen Wang", email = "516310189@qq.com"},
{ name = "Hui Guo", email = "sunnycase@live.cn"},
{ name = "Xiaoyan Liu", email = "18811205590@163.com"},
{ name = "Chunlie Men", email = "menchunlei@163.com"},
{ name = "Hang Xiao", email = "vincent.xiao.me@gmail.com"},
{ name = "Yiqun Huang", email = "huangyiqun@mail.bnu.edu.cn"},
{ name = "Jinjin Tian", email = "kiddyjinjin@gmail.com"},
{ name = "Yang Zheng", email = "zhengyang_pku@163.com"},
{ name = "Jinjie Liu", email = "sgjzfzzf@gmail.com"},
]
classifiers = [
"Development Status :: 3 - Alpha",
"Programming Language :: Python :: 3",
"License :: OSI Approved :: Apache Software License",
]
dependencies = [
"packaging==26.0",
"PyYAML==6.0.3",
"sqlalchemy==2.0.48",
"numpy==1.26.4",
]
[project.optional-dependencies]
# Backend specific packages
official_torch_290 = [
"torch==2.9.0",
"torchvision==0.24.0",
"torchaudio==2.9.0",
]
official_torch_270 = [
"torch==2.7.0",
"torchvision==0.22.0",
"torchaudio==2.7.0",
]
iluvatar = [
"torch==2.7.1+corex.4.4.0",
"torchaudio==2.7.1+corex.4.4.0",
"torchvision==0.22.1+corex.4.4.0",
"triton==3.1.0+corex.4.4.0",
]
mthreads = [
"torch==2.7.1+musa.4.0.0",
"torch_musa==2.7.1",
"triton==3.1.0+musa.4.0.0",
"numpy==1.26.4",
"mkl==2024.0.0",
]
nvidia = [
"flag_gems[official_torch_290]",
]
tsingmicro = [
"flag_gems[official_torch_270]",
"torch_txda==0.1.0+20260225.008333cf",
"txops==0.1.0+20260225.5cc33e4e",
"triton==3.3.0+git6b95f337",
]
# Test packages
test = [
"distro==1.9.0",
"pytest==9.0.2",
"scipy>=1.15.3",
]
# Package for running example tests
example = [
"transformers>=4.40.2",
]
[project.urls]
Repository = "https://github.com/flagos-ai/FlagGems"
Documentation = "https://flagos-ai.github.io/FlagGems"
"Bug Tracker" = "https://github.com/flagos-ai/FlagGems/issues"
[tool.setuptools.packages.find]
where = ["src"]
[tool.setuptools.package-data]
"flag_gems.runtime" = ["*/**/*.yaml"]
[tool.scikit-build]
build.verbose = true
logging.level = "INFO"
wheel.install-dir = "flag_gems"
build-dir = "build/{cache_tag}"
[tool.uv]
# Tell 'uv' that each index has an equal importance for each package,
# in other words, don't treat the first index with a matching package
# as the best one.
index-strategy = "first-index"
conflicts = [
[
{ group = "iluvatar" },
{ group = "mthreads" },
{ group = "nvidia" },
{ group = "tsingmicro" },
]
]
# Source for Iluvatar packages
[[tool.uv.index]]
name = "iluvatar-pypi"
url = "https://resource.flagos.net/repository/flagos-pypi-iluvatar/simple"
explicit = true
# Source for Mthreads packages
[[tool.uv.index]]
name = "mthreads-pypi"
url = "https://resource.flagos.net/repository/flagos-pypi-mthreads/simple"
explicit = true
# Source for TsingMicro packages
[[tool.uv.index]]
name = "tsingmicro-pypi"
url = "https://resource.flagos.net/repository/flagos-pypi-tsingmicro/simple"
explicit = true
# Source for Pytorch CU12.8
[[tool.uv.index]]
name = "torch-pypi"
url = "https://download.pytorch.org/whl/cu128"
explicit = true
# Source for common packages
[[tool.uv.index]]
name = "default"
url = "https://mirrors.aliyun.com/pypi/simple/"
explicit = true
[tool.uv.sources]
# Mapping from optional groups to index servers
iluvatar = { index = "iluvatar-pypi" }
mthreads = { index = "mthreads-pypi" }
tsingmicro = { index = "tsingmicro-pypi" }
official_torch_290 = { index = "torch-pypi" }
official_torch_270 = { index = "torch-pypi" }