-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathpyproject.toml
More file actions
151 lines (134 loc) · 5.12 KB
/
Copy pathpyproject.toml
File metadata and controls
151 lines (134 loc) · 5.12 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
[project]
name = "optimum-rbln"
description = """
Optimum RBLN is the interface between the HuggingFace Transformers and Diffusers libraries and RBLN accelerators.
It provides a set of tools enabling easy model loading and inference on single and multiple rbln device settings for different downstream tasks.
"""
authors = [
{name = "Rebellions Inc.", email = "support@rebellions.ai"},
]
requires-python = ">=3.10,<3.14"
readme = "README.md"
license = "Apache-2.0"
license-files = ["LICENSE"]
dynamic = ["version"]
classifiers = [
"Development Status :: 2 - Pre-Alpha",
"License :: OSI Approved :: Apache Software License",
"Intended Audience :: Developers",
"Intended Audience :: Education",
"Intended Audience :: Science/Research",
"Operating System :: POSIX :: Linux",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Topic :: Scientific/Engineering :: Artificial Intelligence",
]
keywords = ["transformers", "diffusers", "inference", "rbln", "atom", "rebel"]
dependencies = [
"torch==2.11.0+cpu",
"torchaudio==2.11.0; platform_machine == 'aarch64' and platform_python_implementation == 'CPython'",
"torchaudio==2.11.0+cpu; platform_machine == 'x86_64' and platform_python_implementation == 'CPython'",
"torchvision==0.26.0; platform_machine == 'aarch64' and platform_python_implementation == 'CPython'",
"torchvision==0.26.0+cpu; platform_machine == 'x86_64' and platform_python_implementation == 'CPython'",
"torchcodec==0.11.0; platform_machine == 'aarch64' and platform_python_implementation == 'CPython'",
"torchcodec==0.11.0+cpu; platform_machine == 'x86_64' and platform_python_implementation == 'CPython'",
"accelerate>=1.0.1",
"transformers==5.8.1",
"diffusers==0.38.0",
"packaging>=24.1",
"tokenizers==0.22.1",
]
[project.urls]
Homepage = "https://rebellions.ai"
Documentation = "https://docs.rbln.ai"
Repository = "https://github.com/rbln-sw/optimum-rbln"
[project.scripts]
optimum-rbln-cli = "optimum.rbln.cli:main"
[dependency-groups]
tests = [
"pytest>=8.4.2",
"pytest-xdist>=3.8.0",
"pytest-split>=0.9.0",
"psutil>=5.9.8",
"parameterized>=0.9.0",
"GitPython>=3.1.42",
"sentencepiece>=0.2.0",
"datasets>=2.18.0",
"sacremoses>=0.1.1",
"safetensors>=0.4.2",
"protobuf>=5.27.2",
"soundfile>=0.13.1",
"librosa>=0.11.0",
"simphile>=1.0.2",
]
quality = [
"ruff>=0.3.3",
"isort>=5.13.2",
"hf-doc-builder>=0.5.0",
]
deploy = [
"twine>=6.0.1",
]
[build-system]
requires = ["hatchling", "hatch-vcs"]
build-backend = "hatchling.build"
[tool.hatch.version]
source = "vcs"
[tool.hatch.build.hooks.vcs]
version-file = "src/optimum/rbln/__version__.py"
[tool.hatch.build.targets.wheel]
packages = ["src/optimum"]
[tool.hatch.metadata]
allow-direct-references = true
[tool.uv]
environments = [
"sys_platform == 'linux' and platform_machine == 'x86_64' and platform_python_implementation == 'CPython'",
"sys_platform == 'linux' and platform_machine == 'aarch64' and platform_python_implementation == 'CPython'",
]
cache-keys = [{ git = { commit = true } }]
constraint-dependencies = [
"torch==2.11.0+cpu",
"torchaudio==2.11.0; platform_machine == 'aarch64' and platform_python_implementation == 'CPython' and sys_platform == 'linux'",
"torchaudio==2.11.0+cpu; platform_machine == 'x86_64' and platform_python_implementation == 'CPython' and sys_platform == 'linux'",
"torchvision==0.26.0; platform_machine == 'aarch64' and platform_python_implementation == 'CPython' and sys_platform == 'linux'",
"torchvision==0.26.0+cpu; platform_machine == 'x86_64' and platform_python_implementation == 'CPython' and sys_platform == 'linux'",
"torchcodec==0.11.0; platform_machine == 'aarch64' and platform_python_implementation == 'CPython' and sys_platform == 'linux'",
"torchcodec==0.11.0+cpu; platform_machine == 'x86_64' and platform_python_implementation == 'CPython' and sys_platform == 'linux'",
]
[tool.uv.sources]
torch = { index = "pytorch-cpu" }
torchaudio = { index = "pytorch-cpu" }
torchvision = { index = "pytorch-cpu" }
torchcodec = { index = "pytorch-cpu" }
[[tool.uv.index]]
name = "pytorch-cpu"
url = "https://download.pytorch.org/whl/cpu"
explicit = true
[tool.isort]
default_section = "FIRSTPARTY"
ensure_newline_before_comments = true
force_grid_wrap = 0
include_trailing_comma = true
known_first_party = "optimum.rbln"
line_length = 119
lines_after_imports = 2
multi_line_output = 3
use_parentheses = true
[tool.pytest.ini_options]
doctest_optionflags = "NUMBER NORMALIZE_WHITESPACE ELLIPSIS"
[tool.ruff]
line-length = 119
[tool.ruff.lint]
# Never enforce `E501` (line length violations).
ignore = ["C901", "E501", "E741", "W605", "UP037"]
select = ["C", "E", "F", "I", "W", "B", "UP"]
[tool.ruff.lint.isort]
lines-after-imports = 2
known-first-party = ["optimum.rbln"]
known-third-party = ["optimum"]
[tool.ruff.lint.per-file-ignores]
# Ignore import violations in all `__init__.py` files.
"__init__.py" = ["E402", "F401", "F403", "F811"]