optimum-rbln 0.1.13__py3-none-any.whl → 0.2.0__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.
Files changed (103) hide show
  1. optimum/rbln/__init__.py +41 -38
  2. optimum/rbln/__version__.py +16 -1
  3. optimum/rbln/diffusers/__init__.py +26 -2
  4. optimum/rbln/{modeling_diffusers.py → diffusers/modeling_diffusers.py} +97 -126
  5. optimum/rbln/diffusers/models/__init__.py +36 -3
  6. optimum/rbln/{transformers/generation → diffusers/models/autoencoders}/__init__.py +1 -2
  7. optimum/rbln/diffusers/models/{autoencoder_kl.py → autoencoders/autoencoder_kl.py} +73 -61
  8. optimum/rbln/diffusers/models/autoencoders/vae.py +83 -0
  9. optimum/rbln/diffusers/models/controlnet.py +54 -14
  10. optimum/rbln/diffusers/models/transformers/__init__.py +24 -0
  11. optimum/rbln/diffusers/models/transformers/transformer_sd3.py +203 -0
  12. optimum/rbln/diffusers/models/unets/__init__.py +24 -0
  13. optimum/rbln/diffusers/models/{unet_2d_condition.py → unets/unet_2d_condition.py} +82 -22
  14. optimum/rbln/diffusers/pipelines/__init__.py +23 -2
  15. optimum/rbln/diffusers/pipelines/controlnet/multicontrolnet.py +13 -33
  16. optimum/rbln/diffusers/pipelines/controlnet/pipeline_controlnet.py +17 -2
  17. optimum/rbln/diffusers/pipelines/controlnet/pipeline_controlnet_img2img.py +18 -2
  18. optimum/rbln/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl.py +18 -2
  19. optimum/rbln/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl_img2img.py +18 -2
  20. optimum/rbln/diffusers/pipelines/stable_diffusion/__init__.py +1 -0
  21. optimum/rbln/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion.py +2 -2
  22. optimum/rbln/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_img2img.py +1 -13
  23. optimum/rbln/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_inpaint.py +31 -0
  24. optimum/rbln/diffusers/pipelines/stable_diffusion_3/__init__.py +26 -0
  25. optimum/rbln/diffusers/pipelines/stable_diffusion_3/pipeline_stable_diffusion_3.py +31 -0
  26. optimum/rbln/diffusers/pipelines/stable_diffusion_3/pipeline_stable_diffusion_3_img2img.py +31 -0
  27. optimum/rbln/diffusers/pipelines/stable_diffusion_3/pipeline_stable_diffusion_3_inpaint.py +31 -0
  28. optimum/rbln/diffusers/pipelines/stable_diffusion_xl/__init__.py +24 -0
  29. optimum/rbln/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl.py +15 -8
  30. optimum/rbln/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_img2img.py +15 -8
  31. optimum/rbln/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_inpaint.py +31 -0
  32. optimum/rbln/modeling.py +238 -0
  33. optimum/rbln/modeling_base.py +186 -760
  34. optimum/rbln/modeling_config.py +31 -7
  35. optimum/rbln/ops/__init__.py +26 -0
  36. optimum/rbln/ops/attn.py +221 -0
  37. optimum/rbln/ops/flash_attn.py +70 -0
  38. optimum/rbln/ops/kv_cache_update.py +69 -0
  39. optimum/rbln/transformers/__init__.py +20 -2
  40. optimum/rbln/{modeling_alias.py → transformers/modeling_alias.py} +5 -1
  41. optimum/rbln/transformers/modeling_generic.py +385 -0
  42. optimum/rbln/transformers/models/auto/__init__.py +23 -0
  43. optimum/rbln/transformers/models/auto/auto_factory.py +117 -23
  44. optimum/rbln/transformers/models/auto/modeling_auto.py +36 -12
  45. optimum/rbln/transformers/models/bart/__init__.py +0 -1
  46. optimum/rbln/transformers/models/bart/bart_architecture.py +107 -464
  47. optimum/rbln/transformers/models/bart/modeling_bart.py +10 -9
  48. optimum/rbln/transformers/models/bert/modeling_bert.py +3 -6
  49. optimum/rbln/transformers/models/clip/modeling_clip.py +8 -25
  50. optimum/rbln/transformers/models/decoderonly/__init__.py +0 -10
  51. optimum/rbln/transformers/models/decoderonly/decoderonly_architecture.py +775 -514
  52. optimum/rbln/transformers/models/decoderonly/modeling_decoderonly.py +128 -260
  53. optimum/rbln/transformers/models/dpt/modeling_dpt.py +1 -1
  54. optimum/rbln/transformers/models/exaone/exaone_architecture.py +60 -45
  55. optimum/rbln/transformers/models/exaone/modeling_exaone.py +4 -2
  56. optimum/rbln/transformers/models/gemma/gemma_architecture.py +33 -104
  57. optimum/rbln/transformers/models/gpt2/gpt2_architecture.py +50 -238
  58. optimum/rbln/transformers/models/gpt2/modeling_gpt2.py +3 -2
  59. optimum/rbln/transformers/models/llama/llama_architecture.py +0 -1
  60. optimum/rbln/transformers/models/llava_next/modeling_llava_next.py +3 -75
  61. optimum/rbln/transformers/models/midm/midm_architecture.py +84 -238
  62. optimum/rbln/transformers/models/midm/modeling_midm.py +5 -6
  63. optimum/rbln/transformers/models/mistral/mistral_architecture.py +0 -1
  64. optimum/rbln/transformers/models/phi/phi_architecture.py +60 -261
  65. optimum/rbln/transformers/models/qwen2/qwen2_architecture.py +0 -1
  66. optimum/rbln/transformers/models/seq2seq/modeling_seq2seq.py +58 -103
  67. optimum/rbln/transformers/models/seq2seq/seq2seq_architecture.py +498 -0
  68. optimum/rbln/transformers/models/t5/__init__.py +0 -1
  69. optimum/rbln/transformers/models/t5/modeling_t5.py +106 -5
  70. optimum/rbln/transformers/models/t5/t5_architecture.py +106 -448
  71. optimum/rbln/transformers/models/wav2vec2/modeling_wav2vec2.py +1 -1
  72. optimum/rbln/transformers/models/whisper/generation_whisper.py +42 -0
  73. optimum/rbln/transformers/models/whisper/modeling_whisper.py +78 -55
  74. optimum/rbln/transformers/models/whisper/whisper_architecture.py +219 -312
  75. optimum/rbln/transformers/models/xlm_roberta/modeling_xlm_roberta.py +3 -35
  76. optimum/rbln/transformers/utils/rbln_quantization.py +120 -4
  77. optimum/rbln/utils/decorator_utils.py +51 -11
  78. optimum/rbln/utils/hub.py +131 -0
  79. optimum/rbln/utils/import_utils.py +22 -1
  80. optimum/rbln/utils/logging.py +37 -0
  81. optimum/rbln/utils/model_utils.py +52 -0
  82. optimum/rbln/utils/runtime_utils.py +10 -4
  83. optimum/rbln/utils/save_utils.py +17 -0
  84. optimum/rbln/utils/submodule.py +137 -0
  85. optimum_rbln-0.2.0.dist-info/METADATA +117 -0
  86. optimum_rbln-0.2.0.dist-info/RECORD +114 -0
  87. {optimum_rbln-0.1.13.dist-info → optimum_rbln-0.2.0.dist-info}/WHEEL +1 -1
  88. optimum_rbln-0.2.0.dist-info/licenses/LICENSE +288 -0
  89. optimum/rbln/transformers/cache_utils.py +0 -107
  90. optimum/rbln/transformers/generation/streamers.py +0 -139
  91. optimum/rbln/transformers/generation/utils.py +0 -397
  92. optimum/rbln/transformers/models/exaone/hf_hub_cached/configuration_exaone.py +0 -181
  93. optimum/rbln/transformers/models/exaone/hf_hub_cached/modeling_exaone.py +0 -1725
  94. optimum/rbln/transformers/models/midm/hf_hub_cached/configuration_midm.py +0 -22
  95. optimum/rbln/transformers/models/midm/hf_hub_cached/midm_bitext_tokenization.py +0 -304
  96. optimum/rbln/transformers/models/midm/hf_hub_cached/modeling_midm.py +0 -1469
  97. optimum/rbln/transformers/models/midm/hf_hub_cached/rotary_position_embedding.py +0 -98
  98. optimum/rbln/utils/context.py +0 -58
  99. optimum/rbln/utils/timer_utils.py +0 -43
  100. optimum_rbln-0.1.13.dist-info/METADATA +0 -120
  101. optimum_rbln-0.1.13.dist-info/RECORD +0 -107
  102. optimum_rbln-0.1.13.dist-info/entry_points.txt +0 -4
  103. optimum_rbln-0.1.13.dist-info/licenses/LICENSE +0 -201
@@ -1,98 +0,0 @@
1
- # coding=utf-8
2
- # Copyright (c) 2022, NVIDIA CORPORATION. All rights reserved.
3
- #
4
- # Licensed under the Apache License, Version 2.0 (the "License");
5
- # you may not use this file except in compliance with the License.
6
- # You may obtain a copy of the License at
7
- #
8
- # http://www.apache.org/licenses/LICENSE-2.0
9
- #
10
- # Unless required by applicable law or agreed to in writing, software
11
- # distributed under the License is distributed on an "AS IS" BASIS,
12
- # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
- # See the License for the specific language governing permissions and
14
- # limitations under the License.
15
-
16
- import torch
17
- from einops import rearrange
18
- from torch import einsum, nn
19
-
20
-
21
- __all__ = ["RotaryEmbedding", "apply_rotary_pos_emb"]
22
-
23
-
24
- class RotaryEmbedding(nn.Module):
25
- """
26
- Implements Rotary Position Embedding from https://arxiv.org/abs/2104.09864.
27
- """
28
-
29
- def __init__(
30
- self, dim: int, seq_len_interpolation_factor: int = None, pretrained_max_position_embeddings: int = None
31
- ):
32
- """
33
- Args:
34
-
35
- dim (int): rotary embedding dimension
36
- seq_len_interpolation_factor (int): if not None, discrete positions will be interpolated
37
- by this factor via the trick in https://arxiv.org/abs/2306.15595.
38
- pretrained_max_position_embeddings (int): pre-trained max_position_embeddings before position interpolation.
39
- """
40
- super().__init__()
41
- self.seq_len_interpolation_factor = seq_len_interpolation_factor
42
- inv_freq = 1.0 / (10000 ** (torch.arange(0, dim, 2).float() / dim))
43
- self.register_buffer("inv_freq", inv_freq)
44
- self.pretrained_max_position_embeddings = pretrained_max_position_embeddings
45
-
46
- def forward(self, max_seq_len, offset=0):
47
- seq = torch.arange(max_seq_len, device=self.inv_freq.device) + offset
48
- seq = seq.type_as(self.inv_freq)
49
-
50
- if self.pretrained_max_position_embeddings is not None and self.seq_len_interpolation_factor is not None:
51
- if max_seq_len > self.pretrained_max_position_embeddings * self.seq_len_interpolation_factor:
52
- # dynamic linear scaling (length > position we have learned)
53
- seq *= 1 / (max_seq_len / self.pretrained_max_position_embeddings)
54
- else:
55
- # fixed linear scaling
56
- seq *= 1 / self.seq_len_interpolation_factor
57
-
58
- freqs = einsum("i , j -> i j", seq, self.inv_freq)
59
- # first part even vector components, second part odd vector components,
60
- # 2 * dim in dimension size
61
- emb = torch.cat((freqs, freqs), dim=-1)
62
- # emb [seq_length, .., dim]
63
- return rearrange(emb, "n d -> n 1 1 d")
64
-
65
-
66
- def _rotate_half(x):
67
- """
68
- change sign so the last dimension
69
- [A, B, C, D] -> [-C, -D, A, B]
70
- """
71
- x = rearrange(x, "... (j d) -> ... j d", j=2)
72
- x1, x2 = x.unbind(dim=-2)
73
- return torch.cat((-x2, x1), dim=-1)
74
-
75
-
76
- def apply_rotary_pos_emb(t, freqs):
77
- """
78
- input tensor t is of shape [seq_length, ..., dim]
79
- rotary positional embeding tensor freqs is of shape [seq_length, ..., dim]
80
- check https://kexue.fm/archives/8265 for detailed formulas
81
- """
82
- # Changes from the original RoPE implementation
83
- # 1. The original NeMo implementation assumes the input tensor of shape
84
- # [seq_length, ..., dim], but the HF layout is [..., seq_length, dim].
85
- # Thus freqs needs to be viewed as [..., seq_length, dim].
86
- freqs = freqs.permute(1, 2, 0, 3)
87
- # 2. Support for queries which past tokens are truncated
88
- assert freqs.shape[-2] >= t.shape[-2]
89
- if freqs.shape[-2] != t.shape[-2]:
90
- freqs = freqs[:, :, -t.shape[-2] :, :]
91
-
92
- rot_dim = freqs.shape[-1]
93
- # ideally t_pass is empty so rotary pos embedding is applied to all tensor t
94
- t, t_pass = t[..., :rot_dim], t[..., rot_dim:]
95
- # first part is cosine component
96
- # second part is sine component, need to change signs with _rotate_half method
97
- t = (t * freqs.cos()) + (_rotate_half(t) * freqs.sin())
98
- return torch.cat((t, t_pass), dim=-1)
@@ -1,58 +0,0 @@
1
- # Copyright 2024 Rebellions Inc.
2
-
3
- # Licensed under the Apache License, Version 2.0 (the "License");
4
- # you may not use this file except in compliance with the License.
5
- # You may obtain a copy of the License at:
6
-
7
- # http://www.apache.org/licenses/LICENSE-2.0
8
-
9
- # Unless required by applicable law or agreed to in writing, software
10
- # distributed under the License is distributed on an "AS IS" BASIS,
11
- # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
- # See the License for the specific language governing permissions and
13
- # limitations under the License.
14
-
15
- # Portions of this software are licensed under the Apache License,
16
- # Version 2.0. See the NOTICE file distributed with this work for
17
- # additional information regarding copyright ownership.
18
-
19
- # All other portions of this software, including proprietary code,
20
- # are the intellectual property of Rebellions Inc. and may not be
21
- # copied, modified, or distributed without prior written permission
22
- # from Rebellions Inc.
23
-
24
- from contextlib import contextmanager
25
- from pathlib import Path
26
- from typing import Union
27
-
28
- from optimum.exporters import TasksManager
29
- from transformers import AutoConfig, AutoModel
30
-
31
-
32
- @contextmanager
33
- def override_auto_classes(config_func=None, model_func=None, skip_taskmanager=True):
34
- """Temporarily override Auto classes with original model classes"""
35
- original_config = AutoConfig.from_pretrained
36
- original_model = AutoModel.from_pretrained
37
- original_get_model_from_task = TasksManager.get_model_from_task
38
-
39
- def get_model_from_task(
40
- task: str,
41
- model_name_or_path: Union[str, Path],
42
- **kwargs,
43
- ):
44
- return model_func(model_name_or_path, **kwargs)
45
-
46
- def none_func(*args, **kwargs):
47
- return None
48
-
49
- try:
50
- AutoConfig.from_pretrained = config_func or none_func
51
- AutoModel.from_pretrained = model_func or none_func
52
- if skip_taskmanager:
53
- TasksManager.get_model_from_task = none_func if model_func is None else get_model_from_task
54
- yield
55
- finally:
56
- AutoConfig.from_pretrained = original_config
57
- AutoModel.from_pretrained = original_model
58
- TasksManager.get_model_from_task = original_get_model_from_task
@@ -1,43 +0,0 @@
1
- import os
2
- from datetime import datetime
3
-
4
- from halo import Halo
5
-
6
- from .logging import get_logger
7
-
8
-
9
- logger = get_logger()
10
-
11
-
12
- def rbln_timer(print_name):
13
- def decorator(function):
14
- def wrapper(*args, **kwargs):
15
- disable = os.getenv("OPTIMUM_RBLN_DISABLE_SPIN", "False").lower() in ("true", "1", "t")
16
- if disable:
17
- logger.info(f"{print_name} ...")
18
-
19
- spinner = Halo(text=f"{print_name} ...", spinner="dots", color="green", enabled=(not disable))
20
- spinner.start()
21
-
22
- # Start timer
23
- tick = datetime.now()
24
- try:
25
- result = function(*args, **kwargs)
26
- except Exception as e:
27
- spinner.fail(f"{print_name} failed.")
28
- raise e
29
-
30
- # Print elapsed time.
31
- if disable:
32
- logger.info(f"{print_name} done. Elasped time: {format_elapsed_time(tick)}")
33
-
34
- spinner.stop()
35
- spinner.succeed(text=f"{print_name} done. Elasped time: {format_elapsed_time(tick)}")
36
- return result
37
-
38
- return wrapper
39
-
40
- def format_elapsed_time(start_time: datetime) -> str:
41
- return str(datetime.now() - start_time)[:7]
42
-
43
- return decorator
@@ -1,120 +0,0 @@
1
- Metadata-Version: 2.1
2
- Name: optimum-rbln
3
- Version: 0.1.13
4
- Summary: Optimum RBLN is the interface between the Hugging Face Transformers and Diffusers libraries and RBLN accelerators.
5
- It provides a set of tools enabling easy model loading and inference on single and multiple rbln device settings for different downstream tasks.
6
-
7
- Keywords: transformers,diffusers,inference,rbln,atom,rebel
8
- Author-Email: "Rebellions Inc." <support@rebellions.ai>
9
- License: Apache
10
- Classifier: Development Status :: 2 - Pre-Alpha
11
- Classifier: License :: OSI Approved :: Apache Software License
12
- Classifier: Intended Audience :: Developers
13
- Classifier: Intended Audience :: Education
14
- Classifier: Intended Audience :: Science/Research
15
- Classifier: Operating System :: POSIX :: Linux
16
- Classifier: Programming Language :: Python :: 3 :: Only
17
- Classifier: Programming Language :: Python :: 3.9
18
- Classifier: Programming Language :: Python :: 3.10
19
- Classifier: Programming Language :: Python :: 3.11
20
- Classifier: Programming Language :: Python :: 3.12
21
- Classifier: Topic :: Scientific/Engineering :: Artificial Intelligence
22
- Project-URL: Homepage, https://rebellions.ai
23
- Project-URL: Documentation, https://docs.rbln.ai
24
- Requires-Python: <3.13,>=3.9
25
- Requires-Dist: torch<=2.5.1
26
- Requires-Dist: torchvision<=0.20.1
27
- Requires-Dist: torchaudio<=2.5.1
28
- Requires-Dist: optimum==1.23.1
29
- Requires-Dist: accelerate>=0.28.0
30
- Requires-Dist: transformers==4.45.2
31
- Requires-Dist: diffusers<=0.31.0
32
- Requires-Dist: einops>=0.8.0
33
- Requires-Dist: packaging>=24.1
34
- Requires-Dist: halo
35
- Provides-Extra: tests
36
- Requires-Dist: pytest>=8.1.1; extra == "tests"
37
- Requires-Dist: psutil>=5.9.8; extra == "tests"
38
- Requires-Dist: parameterized>=0.9.0; extra == "tests"
39
- Requires-Dist: GitPython>=3.1.42; extra == "tests"
40
- Requires-Dist: sentencepiece>=0.2.0; extra == "tests"
41
- Requires-Dist: datasets>=2.18.0; extra == "tests"
42
- Requires-Dist: sacremoses>=0.1.1; extra == "tests"
43
- Requires-Dist: safetensors>=0.4.2; extra == "tests"
44
- Provides-Extra: quality
45
- Requires-Dist: ruff>=0.3.3; extra == "quality"
46
- Requires-Dist: isort>=5.13.2; extra == "quality"
47
- Requires-Dist: hf-doc-builder>=0.5.0; extra == "quality"
48
- Description-Content-Type: text/markdown
49
-
50
- <!---
51
- Copyright 2023 The HuggingFace Team. All rights reserved.
52
-
53
- Licensed under the Apache License, Version 2.0 (the "License");
54
- you may not use this file except in compliance with the License.
55
- You may obtain a copy of the License at
56
-
57
- http://www.apache.org/licenses/LICENSE-2.0
58
-
59
- Unless required by applicable law or agreed to in writing, software
60
- distributed under the License is distributed on an "AS IS" BASIS,
61
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
62
- See the License for the specific language governing permissions and
63
- limitations under the License.
64
- -->
65
-
66
- # Optimum RBLN
67
-
68
- 🤗 Optimum RBLN is the interface between the 🤗 Transformers library and RBLN Accelerators including [ATOM](https://atom_link) and [REBEL](https://rebel_link).
69
- It provides a set of tools enabling easy model loading and inference on single- and multi-Accelerator settings for different downstream tasks.
70
- The list of officially validated models and tasks is available [here](https://docs.rbln.ai/software/optimum/optimum_rbln.html). Users can try other models and tasks with only few changes.
71
-
72
- ## Install from PyPI
73
-
74
- To install the latest release of this package:
75
-
76
- - Export environment variables to access to RBLN private PyPI.
77
- ```bash
78
- export REBEL_PYPI_USERNAME=<username>
79
- export REBEL_PYPI_PASSWORD=<password>
80
- ```
81
-
82
- - Install optimum-rbln package:
83
- ```bash
84
- pip install --index-url https://pypi.rebellions.in/simple optimum-rbln
85
- ```
86
-
87
- ## Install from source
88
-
89
- ### Prerequisites
90
-
91
- - Install [PDM](https://pdm-project.org/latest/) (refer [this link](https://pdm-project.org/latest/#installation) for detailed commands)
92
-
93
- The below command installs optimum-rbln along with its dependencies.
94
-
95
- ```bash
96
- git clone https://github.com/rebellions-sw/optimum-rbln.git
97
- cd optimum-rbln
98
- pdm install
99
- ```
100
-
101
- To install optional dependencies from all groups, specify `-G:all` option.
102
-
103
- ```bash
104
- pdm install -G:all
105
- ```
106
-
107
- If you want to install optimum-rbln as [editable mode](https://pip.pypa.io/en/stable/topics/local-project-installs/#editable-installs) in existing venv,
108
- ```bash
109
- (venv) pip install -e .
110
- ```
111
-
112
- ## How to use it?
113
-
114
- ### Quick Start
115
-
116
- 🤗 Optimum RBLN was designed with one goal in mind: **to make inference straightforward for any 🤗 Transformers user while leveraging the complete power of RBLN Accelerators**.
117
-
118
- ### Documentation
119
-
120
- Check out [the documentation of Optimum RBLN](https://docs.rbln.ai/software/optimum/optimum_rbln.html) for more advanced usage.
@@ -1,107 +0,0 @@
1
- optimum/rbln/__init__.py,sha256=QcWA83wvYEp0MGNvxP8_nMziofD0MZNGCt73KLheOhY,6459
2
- optimum/rbln/__version__.py,sha256=jGw4tQiBX4GF6k-kjNLN011jLkBRZrHCX6wC2au3JJ8,22
3
- optimum/rbln/diffusers/__init__.py,sha256=w4W7Wy-Mmh8CQZ5M9JnrrE5bN0UsfNehZI41QadE-hk,2605
4
- optimum/rbln/diffusers/models/__init__.py,sha256=aY6Llq_31dZjdB9HPBDvi7sXVtdQT9r11gokXG5ffxA,1139
5
- optimum/rbln/diffusers/models/autoencoder_kl.py,sha256=Nqczw1nn1azoiTlBCbmjfLx2uJ4leVfJpOWiHnvXriM,8373
6
- optimum/rbln/diffusers/models/controlnet.py,sha256=Nlp1l1X_F2sOa3nO1O4S2i7LQJRYUFaOUWIASyVJTtM,8607
7
- optimum/rbln/diffusers/models/unet_2d_condition.py,sha256=Bi0KzXR6pBqhHZotiD21p1t2xCztM_JLRa7rByxJ80Y,11250
8
- optimum/rbln/diffusers/pipelines/__init__.py,sha256=M-I5HSUN7YTiY1zfaKxDPjxFzBTYi5fRwru_dI1z2Fw,2289
9
- optimum/rbln/diffusers/pipelines/controlnet/__init__.py,sha256=k0govvSBxBUR5qpxUGxRMHuQCMX7hXHVZ4EqVRw1LWk,1377
10
- optimum/rbln/diffusers/pipelines/controlnet/multicontrolnet.py,sha256=qm5EtOEtp2LMLlyT61CVj8jChCXPI49mwtLGbmqZVWg,5365
11
- optimum/rbln/diffusers/pipelines/controlnet/pipeline_controlnet.py,sha256=xlfDdKxgIK1DvIQAbOipA00LAMni8f7z8urpeOAyEkE,34884
12
- optimum/rbln/diffusers/pipelines/controlnet/pipeline_controlnet_img2img.py,sha256=_r1B2xasytCUcth4fUF4RNVdVt5zHlnw9hszWY9DkrI,33307
13
- optimum/rbln/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl.py,sha256=KwfoTDpZCJ6Y8e_v5ZEc7HAEly9KzoW-N9IdcGTjwC0,44409
14
- optimum/rbln/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl_img2img.py,sha256=Xa8spvzhmj9rToseCX5hP6Dv3w7z9xFpXQf1BEvIInQ,45715
15
- optimum/rbln/diffusers/pipelines/stable_diffusion/__init__.py,sha256=qf_uMWSwD-CyRMRC73y1QsTMyl_qCMreIdg0a8rhJuA,1142
16
- optimum/rbln/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion.py,sha256=gt1h5zg4258NeKfvfmMlJVECOex8Lqw5jN9NkoF3Xuk,1317
17
- optimum/rbln/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_img2img.py,sha256=SpT38WG4uYRrWa57PRT8o2Dq8lnR5zewL6umprsAEP0,1958
18
- optimum/rbln/diffusers/pipelines/stable_diffusion_xl/__init__.py,sha256=8MDMHIVsDrM6lZAyvpjFtWOFwiY_IoSxzCQe-gJYTPI,159
19
- optimum/rbln/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl.py,sha256=GyaOv18zZlPImCQLpkGnEGPokAsmkxlFLUWRoDhiB4s,1024
20
- optimum/rbln/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_img2img.py,sha256=jUEjw64Oh29_wI7OzoV7LdTfsetcQj-aeRBl-gN_nHM,1052
21
- optimum/rbln/modeling.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
22
- optimum/rbln/modeling_alias.py,sha256=lvyUxIrrXWgV2o0ymbeFkhz_ou8S9_CRRfQ_EfAvQZU,2133
23
- optimum/rbln/modeling_base.py,sha256=S6kbesSHzE0XtYqB5A72j07dfYUGVyQzf91X65GdZnw,44094
24
- optimum/rbln/modeling_config.py,sha256=va58Gpbn3rolqKu9y2u3vYVT6kynBGpox_jod6cs-j0,10612
25
- optimum/rbln/modeling_diffusers.py,sha256=3DiPbbgB9YzU9SrR58DZfdBfL7sSuLQJiPWrubXFA2A,17816
26
- optimum/rbln/transformers/__init__.py,sha256=Ga_NISWJftvExXepKjXCcNHQs5Ogw0Y60MLLIl9csbI,3859
27
- optimum/rbln/transformers/cache_utils.py,sha256=Ak6yJlzkXsu5jQ-kWIgO97GrsLpoCezpEgQoZnvjmec,3796
28
- optimum/rbln/transformers/generation/__init__.py,sha256=6MmqS9D21ir4dcH6_fq8kRsX1VK3QspSn6Qw83F4ORE,1081
29
- optimum/rbln/transformers/generation/streamers.py,sha256=X-dEmL1L_0Oy0QSFj2RNdamb_xbDWLXd-Ms8ckx6OZ4,5778
30
- optimum/rbln/transformers/generation/utils.py,sha256=XqPbYQCe6cEuWssG9iHpbbL-wgSQTcyKHabGwKj7lnE,19462
31
- optimum/rbln/transformers/modeling_rope_utils.py,sha256=ob8haNW5f0tPq26xd4sTg-rMrBT9M2VDP7wxt-PkvYY,13087
32
- optimum/rbln/transformers/models/__init__.py,sha256=gffOrFFYG3W8ypxpDiUotU-McvjhytffeuUzunjv4nQ,3971
33
- optimum/rbln/transformers/models/auto/__init__.py,sha256=zMqaMIdGwuZJq4gLjRC-69M2mGUKrd0aRpmb4Rpm6-g,435
34
- optimum/rbln/transformers/models/auto/auto_factory.py,sha256=Up052AXID12uqa5UgLRW89EkYXDpuXR70Bt-xNHEZto,3159
35
- optimum/rbln/transformers/models/auto/modeling_auto.py,sha256=zET3k5GiqREvPuc_d9Sauea7rITlP6Wl32xdlCFqdhY,3165
36
- optimum/rbln/transformers/models/bart/__init__.py,sha256=-mrB4kmPpEIVk713yEIRtC57AZ7kZ23g4bsOKcvBFNE,1138
37
- optimum/rbln/transformers/models/bart/bart_architecture.py,sha256=W6XeumvuKv1i7p4YzKM0NgpO3NCnc1qwGXknZZrPlP0,21298
38
- optimum/rbln/transformers/models/bart/modeling_bart.py,sha256=-ulamfBSlXDL67Q1Bzo4Q8sGuuzJBjut9XPRTeQhCbA,5261
39
- optimum/rbln/transformers/models/bert/__init__.py,sha256=divBpVNrRAdNAPgnQkGiEZI4oJHCJtLuwdYpMbD3dMM,1034
40
- optimum/rbln/transformers/models/bert/modeling_bert.py,sha256=F5FKVgiIBdDFq-Ql8AmE0WT_mjL0gFfr1AGE_frTexs,4228
41
- optimum/rbln/transformers/models/clip/__init__.py,sha256=iXZfPPIztzMDOkY3fbEzx9dCkFKKtWYXCpLGfjEUeZE,1092
42
- optimum/rbln/transformers/models/clip/modeling_clip.py,sha256=vLT8u13wrW64CnQRF7r94Eb6-dAcYiemLOLjJxMuMDA,6679
43
- optimum/rbln/transformers/models/decoderonly/__init__.py,sha256=-t8W6DtDa9z6FhDtEYuVbA9Ke71EZpJstJAEVPyZLk0,1299
44
- optimum/rbln/transformers/models/decoderonly/decoderonly_architecture.py,sha256=iYYey7UGA7DhNkun8Zocfgp3yVr4iFOoZ6loAsqou1o,27560
45
- optimum/rbln/transformers/models/decoderonly/modeling_decoderonly.py,sha256=o2G5r5_P1eT3Kg10CO5VvEVEKIqb30JGZiQZpVugRwo,29814
46
- optimum/rbln/transformers/models/dpt/__init__.py,sha256=R8OHDxOAYPjkk5t8osaPqRh85Pf1Cg1BtzqesqFRcTI,1045
47
- optimum/rbln/transformers/models/dpt/modeling_dpt.py,sha256=pKQ2vmR50GyEyKK0aV7p33PqTuksiorDhC0cH5qUYiw,3810
48
- optimum/rbln/transformers/models/exaone/__init__.py,sha256=CuWNwnZrbd_cLU7jDDPqC0kZIqx1ii_BYyQ98CKDag0,1253
49
- optimum/rbln/transformers/models/exaone/exaone_architecture.py,sha256=jBrEohavlSgQz_mBnfnG3KJk23oqzKZbqNQ0CImZdUI,3051
50
- optimum/rbln/transformers/models/exaone/hf_hub_cached/configuration_exaone.py,sha256=cKtUHugxwnbR6JOtD2a0912a2iepRpX9dEAWDeSu194,10537
51
- optimum/rbln/transformers/models/exaone/hf_hub_cached/modeling_exaone.py,sha256=CUd-z7f-BMIe8WPRVx-u5A60ljW2C6u8CzrAuw__d5M,80983
52
- optimum/rbln/transformers/models/exaone/modeling_exaone.py,sha256=x-yrv1SObC3GjgHvTRbbVzhA7Xj3QPE2RVkqoBixOI4,2155
53
- optimum/rbln/transformers/models/gemma/__init__.py,sha256=L1Qfr6dufWtoUZND_ofwxXPSxivEvPR8exy16a_nM2o,1042
54
- optimum/rbln/transformers/models/gemma/gemma_architecture.py,sha256=3OFXjt4E4uUXiXVS5Y0ts-Unj-Mvyu9EjZfTQJtUiLk,5002
55
- optimum/rbln/transformers/models/gemma/modeling_gemma.py,sha256=floBHXgogv3iAPyjhjKzbjFHeH67L3FYUKs_wtRm-gM,1924
56
- optimum/rbln/transformers/models/gpt2/__init__.py,sha256=jsOKYXUclG9G6cwUTUX4eeKqjCPfQUwev7TTFIMXS4Y,1040
57
- optimum/rbln/transformers/models/gpt2/gpt2_architecture.py,sha256=nXCITctShY2OTw7chGGSdIOECv8zAd-sxqbYuvSuoK8,10410
58
- optimum/rbln/transformers/models/gpt2/modeling_gpt2.py,sha256=uKVDrfQb1O6HSrAH1e1evthG0AMW1I78JpLQDeaDRzI,1878
59
- optimum/rbln/transformers/models/llama/__init__.py,sha256=5mX-MuKzVBj6WQeVxyPhtvFTv0jeZXAFfg4RZ2nVUh0,1042
60
- optimum/rbln/transformers/models/llama/llama_architecture.py,sha256=j4mifSOaIk7wwV9fL9wQSt5kR3rpnvjtxd3VzhMNdgY,1123
61
- optimum/rbln/transformers/models/llama/modeling_llama.py,sha256=D9efkBVUr7TaOkAkiN_qrtQC0AyzLK7cb7UbZpo4XwI,1924
62
- optimum/rbln/transformers/models/llava_next/__init__.py,sha256=3vi2rmTeKBydGRFOtxELhxWixZggFMpGex6xqfMgi-I,1064
63
- optimum/rbln/transformers/models/llava_next/modeling_llava_next.py,sha256=Bdza5gOwBIxCzfdVHmGcMY9zQQ6qZ4yCOzGVrbfPVWA,28863
64
- optimum/rbln/transformers/models/midm/__init__.py,sha256=_6kYchy47frGMZ8uoUspZ9IwrmCBQJ-8kVfXM7xOMew,1249
65
- optimum/rbln/transformers/models/midm/hf_hub_cached/configuration_midm.py,sha256=P5JqTTcx56HOccxKbR14ZjA67BI0RNnJycG738JMaJ4,833
66
- optimum/rbln/transformers/models/midm/hf_hub_cached/midm_bitext_tokenization.py,sha256=5lhMXfqnIak1PJ9YL-vUxIdY_3DUr3IBXzTqf3ofpmI,12835
67
- optimum/rbln/transformers/models/midm/hf_hub_cached/modeling_midm.py,sha256=54__wd9EXwGxmaHDksTTcUD2aWl6WoszYsR8dlL1wfE,61031
68
- optimum/rbln/transformers/models/midm/hf_hub_cached/rotary_position_embedding.py,sha256=5ywaUVKTvqO8GRsHOSXOOGlbiEn-DbGkpJs59_dFb18,4059
69
- optimum/rbln/transformers/models/midm/midm_architecture.py,sha256=DCYf7TdvzGe-rn4Qr6feFqfZHJE4uqsExenq3SuQngw,11107
70
- optimum/rbln/transformers/models/midm/modeling_midm.py,sha256=HPWax1NWJ90OzqluuPDVTe5aru3DR41wQ76HZy8FnQY,2154
71
- optimum/rbln/transformers/models/mistral/__init__.py,sha256=XtuOmzBITjj-H1yctXobJjHF908x1Wlxr_p4hi06v8I,1046
72
- optimum/rbln/transformers/models/mistral/mistral_architecture.py,sha256=LCvY4L0Wq1VruKhZ3JTSiuZJqQRJlTae5A2bKsUBGAg,1128
73
- optimum/rbln/transformers/models/mistral/modeling_mistral.py,sha256=i3X3HKGNee2ocEmpxdHMxuq7UAOgUs-QWlq2OizqA4g,1954
74
- optimum/rbln/transformers/models/phi/__init__.py,sha256=LrGFTUo1oQnsPSTlxJqAJVVNUdUwq4u_Bf60RUgjLz4,1038
75
- optimum/rbln/transformers/models/phi/modeling_phi.py,sha256=JfpuUB6cign-lqcUoprgq3gbQclZFT9HGV-NYVkSads,1910
76
- optimum/rbln/transformers/models/phi/phi_architecture.py,sha256=iCAIicuN-YFG02ZOT6-VN5ZMw_saNryXAFmh10DKGfs,12777
77
- optimum/rbln/transformers/models/qwen2/__init__.py,sha256=1PLl1rlF14C6eSk3EZaDfyEHPaC4DZ2vwVlrklTkOYg,1042
78
- optimum/rbln/transformers/models/qwen2/modeling_qwen2.py,sha256=8ldxWKk85snFX_EViA7kgcgKAZ_QSbmQxhlO4yFvhOA,1924
79
- optimum/rbln/transformers/models/qwen2/qwen2_architecture.py,sha256=-X9OZ4HUCYDtwKnvidkWzCMPh_Xuu1wj-wRXIsQ9Pjg,1115
80
- optimum/rbln/transformers/models/seq2seq/__init__.py,sha256=Oa11lBWDNQWahqvDco3JIsZldYS-lO8qjpnaGKSfR00,1045
81
- optimum/rbln/transformers/models/seq2seq/modeling_seq2seq.py,sha256=ytDTNTTW221ShVRXClfQQBQV96NW-oYWwRjlbv9aXZU,18403
82
- optimum/rbln/transformers/models/t5/__init__.py,sha256=H1ns7mquQDkImSI1KT4oTe4owK4s_n28YqVxmZ31TF0,1133
83
- optimum/rbln/transformers/models/t5/modeling_t5.py,sha256=FlYH-x-p9YmYOKKyTLN-AVDCFmFrmk3sjEJq4D2X1XI,3952
84
- optimum/rbln/transformers/models/t5/t5_architecture.py,sha256=k3ROGNSGGuF1gFNV-LxoFFgfxo7ab5GSQA4GIi5MLsI,21074
85
- optimum/rbln/transformers/models/wav2vec2/__init__.py,sha256=mz4cXqG9b0tDpTAw3qYn3FaJuolX601VmKBE3gohLSw,1043
86
- optimum/rbln/transformers/models/wav2vec2/modeling_wav2vec2.py,sha256=lTtLGKuAxuVNguqSc2y0D0MsE6eHCraDS7-l2-0QJEY,4236
87
- optimum/rbln/transformers/models/whisper/__init__.py,sha256=PZ8qeAAFMas2MizwVYFxlpFWd5k1Pe1x-0IJfYAMhT8,1059
88
- optimum/rbln/transformers/models/whisper/generation_whisper.py,sha256=Kwwskbp48wJxEkFGQLlm0L252rO7tx_YLYmOA-_IPwI,3387
89
- optimum/rbln/transformers/models/whisper/modeling_whisper.py,sha256=pIwMH06JUWk9oYrwEhQeo-_Y_D2ari0sxmoiHFSCl60,15360
90
- optimum/rbln/transformers/models/whisper/whisper_architecture.py,sha256=OQzkGa2WSUn3OVQ1DYVOY49N46QvxO1hdEbQ7Ke-o_c,17203
91
- optimum/rbln/transformers/models/xlm_roberta/__init__.py,sha256=NTj4hCpd8L2_i5DZuV5wp-h8OlTLYVUqTrJxzY_Dg9g,1047
92
- optimum/rbln/transformers/models/xlm_roberta/modeling_xlm_roberta.py,sha256=8xLhJvuFSCmURyKWpB3O1GLLUn00ewwdAdbzJCV7B78,4929
93
- optimum/rbln/transformers/utils/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
94
- optimum/rbln/transformers/utils/rbln_quantization.py,sha256=X03egWZPycrcBAUgSmuW2bEPuDu7bMtMkmpgufr4FyU,3551
95
- optimum/rbln/utils/__init__.py,sha256=F6hJP00eV1_hT_IVwqqYwLWcLQAvZbmmrNMJTia3mjI,1106
96
- optimum/rbln/utils/context.py,sha256=NylAkP-AdPaZrlAeuukaU9rLEMrFITU1IBA-rsoXgDk,2212
97
- optimum/rbln/utils/decorator_utils.py,sha256=Fp3_hD0PeCzdq1wSzKlPRwS8EeUJcGUbbASNRYmstkM,2093
98
- optimum/rbln/utils/import_utils.py,sha256=mIA5o4byYHlLFhYUq3KCvmmzTCgLxSmMPF0MjwGhzVg,3955
99
- optimum/rbln/utils/logging.py,sha256=xIcLmUQoIJoBj3owkXN5_WQkQljcos6J6KSdX35IApw,2271
100
- optimum/rbln/utils/runtime_utils.py,sha256=RUYpDbp5PuWQ00pBqlL-URElZZKaNFA2qngTmpyGzec,3814
101
- optimum/rbln/utils/save_utils.py,sha256=eFIPtmiblCJ3MvtxEPxmAR3iuLEUrzpyzwtVotDauhw,3283
102
- optimum/rbln/utils/timer_utils.py,sha256=o6EI-7-pcr3LhvCGJ1HIs1KH17yF2CaNpTsbHHbHmzc,1229
103
- optimum_rbln-0.1.13.dist-info/METADATA,sha256=otsCzUqeDLZOIwDPusqhubMaG4Mw3wU9kOjKZtrygZM,4653
104
- optimum_rbln-0.1.13.dist-info/WHEEL,sha256=thaaA2w1JzcGC48WYufAs8nrYZjJm8LqNfnXFOFyCC4,90
105
- optimum_rbln-0.1.13.dist-info/entry_points.txt,sha256=6OYgBcLyFCUgeqLgnvMyOJxPCWzgy7se4rLPKtNonMs,34
106
- optimum_rbln-0.1.13.dist-info/licenses/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
107
- optimum_rbln-0.1.13.dist-info/RECORD,,
@@ -1,4 +0,0 @@
1
- [console_scripts]
2
-
3
- [gui_scripts]
4
-
@@ -1,201 +0,0 @@
1
- Apache License
2
- Version 2.0, January 2004
3
- http://www.apache.org/licenses/
4
-
5
- TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
6
-
7
- 1. Definitions.
8
-
9
- "License" shall mean the terms and conditions for use, reproduction,
10
- and distribution as defined by Sections 1 through 9 of this document.
11
-
12
- "Licensor" shall mean the copyright owner or entity authorized by
13
- the copyright owner that is granting the License.
14
-
15
- "Legal Entity" shall mean the union of the acting entity and all
16
- other entities that control, are controlled by, or are under common
17
- control with that entity. For the purposes of this definition,
18
- "control" means (i) the power, direct or indirect, to cause the
19
- direction or management of such entity, whether by contract or
20
- otherwise, or (ii) ownership of fifty percent (50%) or more of the
21
- outstanding shares, or (iii) beneficial ownership of such entity.
22
-
23
- "You" (or "Your") shall mean an individual or Legal Entity
24
- exercising permissions granted by this License.
25
-
26
- "Source" form shall mean the preferred form for making modifications,
27
- including but not limited to software source code, documentation
28
- source, and configuration files.
29
-
30
- "Object" form shall mean any form resulting from mechanical
31
- transformation or translation of a Source form, including but
32
- not limited to compiled object code, generated documentation,
33
- and conversions to other media types.
34
-
35
- "Work" shall mean the work of authorship, whether in Source or
36
- Object form, made available under the License, as indicated by a
37
- copyright notice that is included in or attached to the work
38
- (an example is provided in the Appendix below).
39
-
40
- "Derivative Works" shall mean any work, whether in Source or Object
41
- form, that is based on (or derived from) the Work and for which the
42
- editorial revisions, annotations, elaborations, or other modifications
43
- represent, as a whole, an original work of authorship. For the purposes
44
- of this License, Derivative Works shall not include works that remain
45
- separable from, or merely link (or bind by name) to the interfaces of,
46
- the Work and Derivative Works thereof.
47
-
48
- "Contribution" shall mean any work of authorship, including
49
- the original version of the Work and any modifications or additions
50
- to that Work or Derivative Works thereof, that is intentionally
51
- submitted to Licensor for inclusion in the Work by the copyright owner
52
- or by an individual or Legal Entity authorized to submit on behalf of
53
- the copyright owner. For the purposes of this definition, "submitted"
54
- means any form of electronic, verbal, or written communication sent
55
- to the Licensor or its representatives, including but not limited to
56
- communication on electronic mailing lists, source code control systems,
57
- and issue tracking systems that are managed by, or on behalf of, the
58
- Licensor for the purpose of discussing and improving the Work, but
59
- excluding communication that is conspicuously marked or otherwise
60
- designated in writing by the copyright owner as "Not a Contribution."
61
-
62
- "Contributor" shall mean Licensor and any individual or Legal Entity
63
- on behalf of whom a Contribution has been received by Licensor and
64
- subsequently incorporated within the Work.
65
-
66
- 2. Grant of Copyright License. Subject to the terms and conditions of
67
- this License, each Contributor hereby grants to You a perpetual,
68
- worldwide, non-exclusive, no-charge, royalty-free, irrevocable
69
- copyright license to reproduce, prepare Derivative Works of,
70
- publicly display, publicly perform, sublicense, and distribute the
71
- Work and such Derivative Works in Source or Object form.
72
-
73
- 3. Grant of Patent License. Subject to the terms and conditions of
74
- this License, each Contributor hereby grants to You a perpetual,
75
- worldwide, non-exclusive, no-charge, royalty-free, irrevocable
76
- (except as stated in this section) patent license to make, have made,
77
- use, offer to sell, sell, import, and otherwise transfer the Work,
78
- where such license applies only to those patent claims licensable
79
- by such Contributor that are necessarily infringed by their
80
- Contribution(s) alone or by combination of their Contribution(s)
81
- with the Work to which such Contribution(s) was submitted. If You
82
- institute patent litigation against any entity (including a
83
- cross-claim or counterclaim in a lawsuit) alleging that the Work
84
- or a Contribution incorporated within the Work constitutes direct
85
- or contributory patent infringement, then any patent licenses
86
- granted to You under this License for that Work shall terminate
87
- as of the date such litigation is filed.
88
-
89
- 4. Redistribution. You may reproduce and distribute copies of the
90
- Work or Derivative Works thereof in any medium, with or without
91
- modifications, and in Source or Object form, provided that You
92
- meet the following conditions:
93
-
94
- (a) You must give any other recipients of the Work or
95
- Derivative Works a copy of this License; and
96
-
97
- (b) You must cause any modified files to carry prominent notices
98
- stating that You changed the files; and
99
-
100
- (c) You must retain, in the Source form of any Derivative Works
101
- that You distribute, all copyright, patent, trademark, and
102
- attribution notices from the Source form of the Work,
103
- excluding those notices that do not pertain to any part of
104
- the Derivative Works; and
105
-
106
- (d) If the Work includes a "NOTICE" text file as part of its
107
- distribution, then any Derivative Works that You distribute must
108
- include a readable copy of the attribution notices contained
109
- within such NOTICE file, excluding those notices that do not
110
- pertain to any part of the Derivative Works, in at least one
111
- of the following places: within a NOTICE text file distributed
112
- as part of the Derivative Works; within the Source form or
113
- documentation, if provided along with the Derivative Works; or,
114
- within a display generated by the Derivative Works, if and
115
- wherever such third-party notices normally appear. The contents
116
- of the NOTICE file are for informational purposes only and
117
- do not modify the License. You may add Your own attribution
118
- notices within Derivative Works that You distribute, alongside
119
- or as an addendum to the NOTICE text from the Work, provided
120
- that such additional attribution notices cannot be construed
121
- as modifying the License.
122
-
123
- You may add Your own copyright statement to Your modifications and
124
- may provide additional or different license terms and conditions
125
- for use, reproduction, or distribution of Your modifications, or
126
- for any such Derivative Works as a whole, provided Your use,
127
- reproduction, and distribution of the Work otherwise complies with
128
- the conditions stated in this License.
129
-
130
- 5. Submission of Contributions. Unless You explicitly state otherwise,
131
- any Contribution intentionally submitted for inclusion in the Work
132
- by You to the Licensor shall be under the terms and conditions of
133
- this License, without any additional terms or conditions.
134
- Notwithstanding the above, nothing herein shall supersede or modify
135
- the terms of any separate license agreement you may have executed
136
- with Licensor regarding such Contributions.
137
-
138
- 6. Trademarks. This License does not grant permission to use the trade
139
- names, trademarks, service marks, or product names of the Licensor,
140
- except as required for reasonable and customary use in describing the
141
- origin of the Work and reproducing the content of the NOTICE file.
142
-
143
- 7. Disclaimer of Warranty. Unless required by applicable law or
144
- agreed to in writing, Licensor provides the Work (and each
145
- Contributor provides its Contributions) on an "AS IS" BASIS,
146
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
147
- implied, including, without limitation, any warranties or conditions
148
- of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
149
- PARTICULAR PURPOSE. You are solely responsible for determining the
150
- appropriateness of using or redistributing the Work and assume any
151
- risks associated with Your exercise of permissions under this License.
152
-
153
- 8. Limitation of Liability. In no event and under no legal theory,
154
- whether in tort (including negligence), contract, or otherwise,
155
- unless required by applicable law (such as deliberate and grossly
156
- negligent acts) or agreed to in writing, shall any Contributor be
157
- liable to You for damages, including any direct, indirect, special,
158
- incidental, or consequential damages of any character arising as a
159
- result of this License or out of the use or inability to use the
160
- Work (including but not limited to damages for loss of goodwill,
161
- work stoppage, computer failure or malfunction, or any and all
162
- other commercial damages or losses), even if such Contributor
163
- has been advised of the possibility of such damages.
164
-
165
- 9. Accepting Warranty or Additional Liability. While redistributing
166
- the Work or Derivative Works thereof, You may choose to offer,
167
- and charge a fee for, acceptance of support, warranty, indemnity,
168
- or other liability obligations and/or rights consistent with this
169
- License. However, in accepting such obligations, You may act only
170
- on Your own behalf and on Your sole responsibility, not on behalf
171
- of any other Contributor, and only if You agree to indemnify,
172
- defend, and hold each Contributor harmless for any liability
173
- incurred by, or claims asserted against, such Contributor by reason
174
- of your accepting any such warranty or additional liability.
175
-
176
- END OF TERMS AND CONDITIONS
177
-
178
- APPENDIX: How to apply the Apache License to your work.
179
-
180
- To apply the Apache License to your work, attach the following
181
- boilerplate notice, with the fields enclosed by brackets "[]"
182
- replaced with your own identifying information. (Don't include
183
- the brackets!) The text should be enclosed in the appropriate
184
- comment syntax for the file format. We also recommend that a
185
- file or class name and description of purpose be included on the
186
- same "printed page" as the copyright notice for easier
187
- identification within third-party archives.
188
-
189
- Copyright [yyyy] [name of copyright owner]
190
-
191
- Licensed under the Apache License, Version 2.0 (the "License");
192
- you may not use this file except in compliance with the License.
193
- You may obtain a copy of the License at
194
-
195
- http://www.apache.org/licenses/LICENSE-2.0
196
-
197
- Unless required by applicable law or agreed to in writing, software
198
- distributed under the License is distributed on an "AS IS" BASIS,
199
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
200
- See the License for the specific language governing permissions and
201
- limitations under the License.