optimum-rbln 0.2.0__py3-none-any.whl → 0.2.1a0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- optimum/rbln/__version__.py +2 -2
- optimum/rbln/transformers/utils/rbln_quantization.py +1 -1
- optimum/rbln/utils/import_utils.py +1 -1
- optimum/rbln/utils/logging.py +1 -1
- {optimum_rbln-0.2.0.dist-info → optimum_rbln-0.2.1a0.dist-info}/METADATA +9 -5
- {optimum_rbln-0.2.0.dist-info → optimum_rbln-0.2.1a0.dist-info}/RECORD +8 -8
- {optimum_rbln-0.2.0.dist-info → optimum_rbln-0.2.1a0.dist-info}/WHEEL +0 -0
- {optimum_rbln-0.2.0.dist-info → optimum_rbln-0.2.1a0.dist-info}/licenses/LICENSE +0 -0
optimum/rbln/__version__.py
CHANGED
@@ -52,7 +52,7 @@ class QuantizationManager:
|
|
52
52
|
) -> None:
|
53
53
|
context_info = f" for {context}" if context else ""
|
54
54
|
valid_values_str = ", ".join(valid_values)
|
55
|
-
raise ValueError(f"Invalid {key}: {value}{context_info}.
|
55
|
+
raise ValueError(f"Invalid {key}: {value}{context_info}. Supported values are: {valid_values_str}")
|
56
56
|
|
57
57
|
@staticmethod
|
58
58
|
def validate_quantization_config(quantize_config: Optional[dict]) -> Optional[dict]:
|
@@ -132,7 +132,7 @@ def is_rbln_available() -> bool:
|
|
132
132
|
def check_version_compats() -> None:
|
133
133
|
warnings.filterwarnings(action="always", category=ImportWarning, module="optimum.rbln")
|
134
134
|
my_version = importlib.metadata.version("optimum-rbln")
|
135
|
-
target_version = list(filter(lambda v: Version(my_version)
|
135
|
+
target_version = list(filter(lambda v: Version(my_version) >= Version(v), RBLN_VERSION_COMPATS.keys()))[0]
|
136
136
|
for compat in RBLN_VERSION_COMPATS[target_version]:
|
137
137
|
try:
|
138
138
|
dep_version = importlib.metadata.version(compat.package_name)
|
optimum/rbln/utils/logging.py
CHANGED
@@ -70,7 +70,7 @@ def _get_default_logging_level():
|
|
70
70
|
else:
|
71
71
|
logging.getLogger().warning(
|
72
72
|
f"Unknown option OPTIMUM_RBLN_VERBOSE={env_level_str}, "
|
73
|
-
f"has to be one of: {
|
73
|
+
f"has to be one of: {', '.join(log_levels.keys())}"
|
74
74
|
)
|
75
75
|
return _default_log_level
|
76
76
|
|
@@ -1,9 +1,10 @@
|
|
1
1
|
Metadata-Version: 2.3
|
2
2
|
Name: optimum-rbln
|
3
|
-
Version: 0.2.
|
3
|
+
Version: 0.2.1a0
|
4
4
|
Summary: Optimum RBLN is the interface between the Hugging Face 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.
|
5
5
|
Project-URL: Homepage, https://rebellions.ai
|
6
6
|
Project-URL: Documentation, https://docs.rbln.ai
|
7
|
+
Project-URL: Repository, https://github.com/rebellions-sw/optimum-rbln
|
7
8
|
Author-email: "Rebellions Inc." <support@rebellions.ai>
|
8
9
|
License: Apache
|
9
10
|
Keywords: atom,diffusers,inference,rbln,rebel,transformers
|
@@ -22,13 +23,11 @@ Classifier: Topic :: Scientific/Engineering :: Artificial Intelligence
|
|
22
23
|
Requires-Python: <3.13,>=3.9
|
23
24
|
Requires-Dist: accelerate>=1.0.1
|
24
25
|
Requires-Dist: diffusers<=0.31.0
|
25
|
-
Requires-Dist: einops>=0.8.0
|
26
|
-
Requires-Dist: halo>=0.0.31
|
27
26
|
Requires-Dist: packaging>=24.1
|
28
27
|
Requires-Dist: torch<=2.5.1
|
29
28
|
Requires-Dist: torchaudio<=2.5.1
|
30
29
|
Requires-Dist: torchvision<=0.20.1
|
31
|
-
Requires-Dist: transformers==4.
|
30
|
+
Requires-Dist: transformers==4.48.2
|
32
31
|
Description-Content-Type: text/markdown
|
33
32
|
|
34
33
|
|
@@ -39,7 +38,9 @@ Description-Content-Type: text/markdown
|
|
39
38
|
<img src="assets/rbln_logo.png" width="60%"/>
|
40
39
|
|
41
40
|
[](https://badge.fury.io/py/optimum-rbln)
|
42
|
-
[](https://docs.rbln.ai/software/optimum/optimum_rbln.html)
|
42
|
+
[](CODE_OF_CONDUCT.md)
|
43
|
+
|
43
44
|
|
44
45
|
</div>
|
45
46
|
|
@@ -95,6 +96,9 @@ Check out [the documentation of Optimum RBLN](https://docs.rbln.ai/software/opti
|
|
95
96
|
To install the latest release of this package:
|
96
97
|
```bash
|
97
98
|
pip install optimum-rbln
|
99
|
+
|
100
|
+
# CPU-only installation (recommended if you don't plan to use CUDA-enabled PyTorch)
|
101
|
+
pip install optimum-rbln --extra-index-url https://download.pytorch.org/whl/cpu
|
98
102
|
```
|
99
103
|
|
100
104
|
### Install from source
|
@@ -1,5 +1,5 @@
|
|
1
1
|
optimum/rbln/__init__.py,sha256=A0ydlEd6-L_ol6wfIFaKl3K93O1j6j9lCO9edPs7MJE,6430
|
2
|
-
optimum/rbln/__version__.py,sha256=
|
2
|
+
optimum/rbln/__version__.py,sha256=g6hYCmG5a0qiBpcPwa8bCxg_4_YR3PJcAHPGPixF6ho,413
|
3
3
|
optimum/rbln/modeling.py,sha256=96N6auaSUpxazRNYCOHv2CyC64T8regJrlcMFQGdwqg,8661
|
4
4
|
optimum/rbln/modeling_base.py,sha256=3EK3eyv011WK7BXT1vt7chZFpgtiOpdd_gF1uDEX5W8,20753
|
5
5
|
optimum/rbln/modeling_config.py,sha256=LxOVAJheEF_A0C3px7pKZCqm3yfTi3-ZGkXJTFBcSc8,11729
|
@@ -98,17 +98,17 @@ optimum/rbln/transformers/models/whisper/whisper_architecture.py,sha256=0JKv4GCD
|
|
98
98
|
optimum/rbln/transformers/models/xlm_roberta/__init__.py,sha256=NTj4hCpd8L2_i5DZuV5wp-h8OlTLYVUqTrJxzY_Dg9g,1047
|
99
99
|
optimum/rbln/transformers/models/xlm_roberta/modeling_xlm_roberta.py,sha256=H5SEtmCAuG6pL1ovl4eLPGZ3tx1IPOilsxKvnbFDN-E,3821
|
100
100
|
optimum/rbln/transformers/utils/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
101
|
-
optimum/rbln/transformers/utils/rbln_quantization.py,sha256=
|
101
|
+
optimum/rbln/transformers/utils/rbln_quantization.py,sha256=7islo6dn686UKyGrofvl1FKKibkmzHIxk7ZUGNF1j1E,7802
|
102
102
|
optimum/rbln/utils/__init__.py,sha256=F6hJP00eV1_hT_IVwqqYwLWcLQAvZbmmrNMJTia3mjI,1106
|
103
103
|
optimum/rbln/utils/decorator_utils.py,sha256=2yFVaMBDo4F1tHZxZnwcAkhaNm5Q9PXftbSGZWnHXFE,4139
|
104
104
|
optimum/rbln/utils/hub.py,sha256=o-nA2I_jnB0S2AX0-q9lSpSNcdP_TeqZbHv84Gxxvi4,4592
|
105
|
-
optimum/rbln/utils/import_utils.py,sha256=
|
106
|
-
optimum/rbln/utils/logging.py,sha256=
|
105
|
+
optimum/rbln/utils/import_utils.py,sha256=ZMRbqZ_UOt7kpTc3LMh8J0CEqgWPV0iz6GZP2nCF69o,4453
|
106
|
+
optimum/rbln/utils/logging.py,sha256=JI9rTxtC_7mJ8dVOGSF7Mmb8TO0YjzcRV9W_4gKLABQ,3847
|
107
107
|
optimum/rbln/utils/model_utils.py,sha256=Od3XYZyWIm2Kei_BgImSdtqv5zLW9Ilht7lbCWHyfL4,1672
|
108
108
|
optimum/rbln/utils/runtime_utils.py,sha256=oGpsxEwI1oEXXCEb3novE2_nRCF3Wh58-G2vk1ukyuI,4093
|
109
109
|
optimum/rbln/utils/save_utils.py,sha256=k2PwWStUT-eIY6btyM5A98lMxAAPFas3RxeemET6QI4,4001
|
110
110
|
optimum/rbln/utils/submodule.py,sha256=lzD0HYiuo0i5OGnHQgVFdvB4AwLWnPMRCTtMumGY4bc,4465
|
111
|
-
optimum_rbln-0.2.
|
112
|
-
optimum_rbln-0.2.
|
113
|
-
optimum_rbln-0.2.
|
114
|
-
optimum_rbln-0.2.
|
111
|
+
optimum_rbln-0.2.1a0.dist-info/METADATA,sha256=efBIm4ovTfE7kHguvu3rndjxjI88UwkFbcMEE38KCN8,5119
|
112
|
+
optimum_rbln-0.2.1a0.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
113
|
+
optimum_rbln-0.2.1a0.dist-info/licenses/LICENSE,sha256=q7yy_9ECqQIxXbh2yiG4Hjalfp0e2-2Pbdc7psKUVs8,18079
|
114
|
+
optimum_rbln-0.2.1a0.dist-info/RECORD,,
|
File without changes
|
File without changes
|