ofen

View on PyPIReverse Dependencies (0)

0.0.1 ofen-0.0.1-py3-none-any.whl

Wheel Details

Project: ofen
Version: 0.0.1
Filename: ofen-0.0.1-py3-none-any.whl
Download: [link]
Size: 73782
MD5: b29c11b9ac6af0d4889ef0dffc421492
SHA256: 5bbba285dc34dbc015371c0b0cb08ae495907174a6cd29d863a698595d3b06f7
Uploaded: 2024-08-13 00:19:51 +0000

dist-info

METADATA

Metadata-Version: 2.1
Name: ofen
Version: 0.0.1
Summary: Making transformers production ready
Author-Email: Julius Lipp <julius[at]mixedbread.ai>, Rui Huang <rui[at]mixedbread.ai>
Maintainer-Email: Mixedbread AI <info[at]mixedbread.ai>
License: Apache License Version 2.0, January 2004 http://www.apache.org/licenses/ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION 1. Definitions. "License" shall mean the terms and conditions for use, reproduction, and distribution as defined by Sections 1 through 9 of this document. "Licensor" shall mean the copyright owner or entity authorized by the copyright owner that is granting the License. "Legal Entity" shall mean the union of the acting entity and all other entities that control, are controlled by, or are under common control with that entity. For the purposes of this definition, "control" means (i) the power, direct or indirect, to cause the direction or management of such entity, whether by contract or otherwise, or (ii) ownership of fifty percent (50%) or more of the outstanding shares, or (iii) beneficial ownership of such entity. "You" (or "Your") shall mean an individual or Legal Entity exercising permissions granted by this License. "Source" form shall mean the preferred form for making modifications, including but not limited to software source code, documentation source, and configuration files. "Object" form shall mean any form resulting from mechanical transformation or translation of a Source form, including but not limited to compiled object code, generated documentation, and conversions to other media types. "Work" shall mean the work of authorship, whether in Source or Object form, made available under the License, as indicated by a copyright notice that is included in or attached to the work (an example is provided in the Appendix below). "Derivative Works" shall mean any work, whether in Source or Object form, that is based on (or derived from) the Work and for which the editorial revisions, annotations, elaborations, or other modifications represent, as a whole, an original work of authorship. For the purposes of this License, Derivative Works shall not include works that remain separable from, or merely link (or bind by name) to the interfaces of, the Work and Derivative Works thereof. "Contribution" shall mean any work of authorship, including the original version of the Work and any modifications or additions to that Work or Derivative Works thereof, that is intentionally submitted to Licensor for inclusion in the Work by the copyright owner or by an individual or Legal Entity authorized to submit on behalf of the copyright owner. For the purposes of this definition, "submitted" means any form of electronic, verbal, or written communication sent to the Licensor or its representatives, including but not limited to communication on electronic mailing lists, source code control systems, and issue tracking systems that are managed by, or on behalf of, the Licensor for the purpose of discussing and improving the Work, but excluding communication that is conspicuously marked or otherwise designated in writing by the copyright owner as "Not a Contribution." "Contributor" shall mean Licensor and any individual or Legal Entity on behalf of whom a Contribution has been received by Licensor and subsequently incorporated within the Work. 2. Grant of Copyright License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable copyright license to reproduce, prepare Derivative Works of, publicly display, publicly perform, sublicense, and distribute the Work and such Derivative Works in Source or Object form. 3. Grant of Patent License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable (except as stated in this section) patent license to make, have made, use, offer to sell, sell, import, and otherwise transfer the Work, where such license applies only to those patent claims licensable by such Contributor that are necessarily infringed by their Contribution(s) alone or by combination of their Contribution(s) with the Work to which such Contribution(s) was submitted. If You institute patent litigation against any entity (including a cross-claim or counterclaim in a lawsuit) alleging that the Work or a Contribution incorporated within the Work constitutes direct or contributory patent infringement, then any patent licenses granted to You under this License for that Work shall terminate as of the date such litigation is filed. 4. Redistribution. You may reproduce and distribute copies of the Work or Derivative Works thereof in any medium, with or without modifications, and in Source or Object form, provided that You meet the following conditions: (a) You must give any other recipients of the Work or Derivative Works a copy of this License; and (b) You must cause any modified files to carry prominent notices stating that You changed the files; and (c) You must retain, in the Source form of any Derivative Works that You distribute, all copyright, patent, trademark, and attribution notices from the Source form of the Work, excluding those notices that do not pertain to any part of the Derivative Works; and (d) If the Work includes a "NOTICE" text file as part of its distribution, then any Derivative Works that You distribute must include a readable copy of the attribution notices contained within such NOTICE file, excluding those notices that do not pertain to any part of the Derivative Works, in at least one of the following places: within a NOTICE text file distributed as part of the Derivative Works; within the Source form or documentation, if provided along with the Derivative Works; or, within a display generated by the Derivative Works, if and wherever such third-party notices normally appear. The contents of the NOTICE file are for informational purposes only and do not modify the License. You may add Your own attribution notices within Derivative Works that You distribute, alongside or as an addendum to the NOTICE text from the Work, provided that such additional attribution notices cannot be construed as modifying the License. You may add Your own copyright statement to Your modifications and may provide additional or different license terms and conditions for use, reproduction, or distribution of Your modifications, or for any such Derivative Works as a whole, provided Your use, reproduction, and distribution of the Work otherwise complies with the conditions stated in this License. 5. Submission of Contributions. Unless You explicitly state otherwise, any Contribution intentionally submitted for inclusion in the Work by You to the Licensor shall be under the terms and conditions of this License, without any additional terms or conditions. Notwithstanding the above, nothing herein shall supersede or modify the terms of any separate license agreement you may have executed with Licensor regarding such Contributions. 6. Trademarks. This License does not grant permission to use the trade names, trademarks, service marks, or product names of the Licensor, except as required for reasonable and customary use in describing the origin of the Work and reproducing the content of the NOTICE file. 7. Disclaimer of Warranty. Unless required by applicable law or agreed to in writing, Licensor provides the Work (and each Contributor provides its Contributions) on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied, including, without limitation, any warranties or conditions of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A PARTICULAR PURPOSE. You are solely responsible for determining the appropriateness of using or redistributing the Work and assume any risks associated with Your exercise of permissions under this License. 8. Limitation of Liability. In no event and under no legal theory, whether in tort (including negligence), contract, or otherwise, unless required by applicable law (such as deliberate and grossly negligent acts) or agreed to in writing, shall any Contributor be liable to You for damages, including any direct, indirect, special, incidental, or consequential damages of any character arising as a result of this License or out of the use or inability to use the Work (including but not limited to damages for loss of goodwill, work stoppage, computer failure or malfunction, or any and all other commercial damages or losses), even if such Contributor has been advised of the possibility of such damages. 9. Accepting Warranty or Additional Liability. While redistributing the Work or Derivative Works thereof, You may choose to offer, and charge a fee for, acceptance of support, warranty, indemnity, or other liability obligations and/or rights consistent with this License. However, in accepting such obligations, You may act only on Your own behalf and on Your sole responsibility, not on behalf of any other Contributor, and only if You agree to indemnify, defend, and hold each Contributor harmless for any liability incurred by, or claims asserted against, such Contributor by reason of your accepting any such warranty or additional liability. END OF TERMS AND CONDITIONS Copyright 2024 mixedbread ai inc. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Keywords: AI,Multimodal,Embeddings,Content Understanding
Classifier: Development Status :: 4 - Beta
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Requires-Python: >=3.9
Requires-Dist: huggingface-hub (>=0.16.4)
Requires-Dist: tokenizers (>=0.13.3)
Requires-Dist: simsimd
Requires-Dist: numpy (>=1.20.0)
Requires-Dist: jmespath
Requires-Dist: torch (>=1.13.1); extra == "all"
Requires-Dist: transformers (>=4.36.2); extra == "all"
Requires-Dist: onnx (>=1.15.0); extra == "all"
Requires-Dist: onnxruntime (>=1.17.1); extra == "all"
Requires-Dist: onnxsim; extra == "all"
Requires-Dist: onnxconverter-common; extra == "all"
Requires-Dist: pytest; extra == "all"
Requires-Dist: pandas; extra == "all"
Requires-Dist: ruff; extra == "all"
Requires-Dist: datasets; extra == "all"
Requires-Dist: pytest; extra == "dev"
Requires-Dist: pandas; extra == "dev"
Requires-Dist: ruff; extra == "dev"
Requires-Dist: datasets; extra == "dev"
Requires-Dist: pre-commit; extra == "dev"
Requires-Dist: onnx (>=1.15.0); extra == "onnx"
Requires-Dist: onnxruntime (>=1.17.1); extra == "onnx"
Requires-Dist: onnxsim; extra == "onnx"
Requires-Dist: onnxconverter-common; extra == "onnx"
Requires-Dist: onnx (>=1.15.0); extra == "onnx-gpu"
Requires-Dist: onnxruntime-gpu (>=1.17.1); extra == "onnx-gpu"
Requires-Dist: onnxsim; extra == "onnx-gpu"
Requires-Dist: onnxconverter-common; extra == "onnx-gpu"
Requires-Dist: torch (>=1.13.1); extra == "torch"
Requires-Dist: transformers (>=4.36.2); extra == "torch"
Provides-Extra: all
Provides-Extra: dev
Provides-Extra: onnx
Provides-Extra: onnx-gpu
Provides-Extra: torch
Description-Content-Type: text/markdown
License-File: LICENSE
[Description omitted; length: 1002 characters]

WHEEL

Wheel-Version: 1.0
Generator: setuptools (72.1.0)
Root-Is-Purelib: true
Tag: py3-none-any

RECORD

Path Digest Size
ofen/__init__.py sha256=U4S_2y3zgLZVfMenHRaJFBW8yqh2mUBuI291LGQVOJ8 35
ofen/constants.py sha256=Owu40nUTmmYkyfPC5xOaDEX3NU0LHG1T8NT_8D2GBRg 38
ofen/enums.py sha256=wAlY6ldlJA87Y8rJUORztFrfCzMs7ZF2zPNA0vB88lQ 3675
ofen/exceptions.py sha256=wPv2QMAulWGzNaSuWTJ2jOv5q0E3jvkk7C_XRWAqyn0 3040
ofen/logger.py sha256=yOt48GA7YdR-kYu0Ets7WqMPlmwG3ocu3YfUHKtCRJc 51
ofen/pretrainable.py sha256=cklZRBAz7KiNX_panO7xZ96U-rAwW4mhvWCIrR5zlxs 1620
ofen/types.py sha256=Ovejz9RzH3gZucPnvg3gxar0Tn3JY0GQWJGs-fglrT8 727
ofen/batch_processor/__init__.py sha256=MuQFGQUdXFARC7Dhy17jskElbpJie7YJzGvuM2jgUlg 66
ofen/batch_processor/batch_generator.py sha256=aH0BJiVfc5QVfxQ2ymXvO0-3gbCEUZxLKwMSHaIGEIg 2391
ofen/batch_processor/batch_processor.py sha256=OvLUnJ-I45sEoq05-N7L7L2ffLovZAwR_pkh79BUv00 8749
ofen/batch_processor/generator/__init__.py sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU 0
ofen/batch_processor/generator/batch_generator.py sha256=OFYNdQ1lxD_dhSxlzuVoLT3uFEDjy1Y3xWMdBfq59iU 2367
ofen/batch_processor/generator/batch_processor.py sha256=3eMx8-8TqavI184Srtw9sk2MV_NFeutshT0HgwqgiX0 7850
ofen/common/__init__.py sha256=AbpHGcgLb-kRsJGnwFEktk7uzpZOCcBY74-YBdrKVGs 1
ofen/common/gpu_utils.py sha256=0M8DewPjsXm91CeVfvYH7y6hh0g6t8P0a53tlro6BrI 4238
ofen/common/hf_utils.py sha256=JucncUCuRoq3o8jqWZHLuAXX5BilyrHPDcUFQmr8Ib4 7524
ofen/common/model_checker.py sha256=4XVg3wh5MBUyljjw1dU1pet4i49GE8-nPU9eyPqTh9k 1571
ofen/common/numpy_utils.py sha256=NinbxiLyR61taNzY5zn73jgOI6aiDOhjheDrdR-22wo 3930
ofen/common/onnx_utils.py sha256=NSmWbVpSQ4H90ZDkWUjMhBpQTJJQdqUA-ipz1Pcgxiw 10162
ofen/common/ray_utils.py sha256=aC_VS61GDqTErd7nqUq0qubqZ3weL6Vdq-tV8E-N3EU 6072
ofen/common/tensor_utils.py sha256=YB0Mv4VS4ytK7CNKK5bOp3JcylMddoC2R4c6jGNQmJ0 9298
ofen/common/utils.py sha256=msUv9_x1f91cwSI5bS6tMM4u7KhKIiXsWwav--CGHaA 7710
ofen/configs/__init__.py sha256=U4S_2y3zgLZVfMenHRaJFBW8yqh2mUBuI291LGQVOJ8 35
ofen/configs/optimization_config.py sha256=0twF-rbF8s-9cownkM_HZOXEt0JUfmTNsUAj9qa2l7Q 647
ofen/configs/base/__init__.py sha256=U4S_2y3zgLZVfMenHRaJFBW8yqh2mUBuI291LGQVOJ8 35
ofen/configs/base/base_config.py sha256=JCpj5v1Jd1A3msnXFKsKBBoDEcVfNVuWfxrI6d5otQg 890
ofen/models/__init__.py sha256=57Rwtf20m6f7HAx7Tc-Z3sfaoAlyx6ULk4MqtHiaSbE 81
ofen/models/base/__init__.py sha256=U4S_2y3zgLZVfMenHRaJFBW8yqh2mUBuI291LGQVOJ8 35
ofen/models/base/cross_encoder.py sha256=4-9-VTrFd9drc6KyReKYpbZIhzbZ5wwfzfqQ5RvFimk 6251
ofen/models/base/encoder.py sha256=pO8yxBrK7a2ys0DI-9-9oPFaXu205dKSuFFAYW5Nz_w 10394
ofen/models/base/model.py sha256=BFL7YafJUre_1zm9Hxmj-_8X7IJqoieMo-CpYDpO4vk 3058
ofen/models/base/ort_model.py sha256=8dra-zItHwiQjp7LbOtqwRpBP_EPVHiYbUAbaxekIMI 6232
ofen/models/base/text_encoder.py sha256=jFSfQ2rfF9Ql1SYbNrqhZNFjo2mAF_Sm9rC_G6mraAg 3367
ofen/models/mixins/__init__.py sha256=U4S_2y3zgLZVfMenHRaJFBW8yqh2mUBuI291LGQVOJ8 35
ofen/models/mixins/onnx_exportable.py sha256=lLJOfHjxcbYF-Bm42PZ8vwzi5OnYl6-q4T3ENET8xYA 3057
ofen/models/mixins/torch_optimizer.py sha256=ZVN2AND6ZMdR5DTaplqMXlHh9_N_0TN1WTQtNrx-0LY 3218
ofen/models/onnx/__init__.py sha256=sbd8HwO3fkrD2MHUA5FPIkOncl_hKUu7gq5W4t8k5gE 128
ofen/models/onnx/ort_cross_encoder.py sha256=rbd9XduREW50J4M9Eq_hOiaKIh_4Nw-2j1i-u6KBHdU 2136
ofen/models/onnx/ort_text_encoder.py sha256=K1gIa6BxRPG2cMqcP79zyHhE3DV6OLcv3SDJ_cajtKM 2070
ofen/models/torch/__init__.py sha256=E4PzJqTaPYvdSzf28JoQEuWfkfa9DX92MlIgRcZt-nA 114
ofen/models/torch/clip_encoder.py sha256=Cymeg2qJwgImL9dJbYMV9lwZHeD7VA7yFAFgFKBEwWY 7541
ofen/models/torch/colbert.py sha256=QYJgATE2Cl3X5StnIZXpQa_VyWgu4y4HJNZUNO-jetU 7449
ofen/models/torch/cross_encoder.py sha256=mbJktUKxXiDjW6x_Hkw-X7kZ5Q6lafHGMg5zA0AJM7U 6038
ofen/models/torch/text_encoder.py sha256=zN7sizv3KVtLCpzWcLkW3M04vmX5Nyh5dr-hlj6Xcvk 8622
ofen/models/torch/layers/__init__.py sha256=Y7jvh6l9PGufJV85vSfsWImWXgGGFdivBqIvCR8VnTQ 243
ofen/models/torch/layers/activation_layer.py sha256=gtceIprNITDArI2uGIE5hU3quktwCeE7amQlF3upUXc 2157
ofen/models/torch/layers/normalization_layer.py sha256=crtSLgqxXrxTZoS-PNdrYmndMFDBMdI4osWQqLnVr9M 2506
ofen/models/torch/layers/pooling_layer.py sha256=9SIfSipkurxJxy4uoBYPcxiBp7S-yNfKHBgdRZtU8us 7208
ofen/processors/__init__.py sha256=Yjj_Vhsj5Twv_2-Q5TQY16e3Adat8vDFkx6JLT5y8To 107
ofen/processors/base.py sha256=4aprK9rxtUKVZ-LYE0-D-l4TNRSQiMmq7OpmlvpsK6Y 1790
ofen/processors/colbert_processor.py sha256=TycfAHgchX9A84j_yj4iEZyL7lSkBUiIZvisINNIlII 3565
ofen/processors/text_processor.py sha256=vHzE7ew5xb0JRx1C-ihQnVKqwiA7GaLbMUTRegl4wkw 14244
ofen/runners/__init__.py sha256=U4S_2y3zgLZVfMenHRaJFBW8yqh2mUBuI291LGQVOJ8 35
ofen/runners/base.py sha256=GmLFwIvMhAoUmYKSoMOxeUtgkuDFLeKMy8DHD2LtELA 2653
ofen/runners/ray_runner.py sha256=RRoNa0MCXXg_79o-kp376v4YJqKadiausEQIMI0rp2A 5065
ofen/runners/runner.py sha256=6JvXNUPeGLZQ3fhO6C1RbiDjswS4GrHWMwYxB1g3Rwk 6806
ofen-0.0.1.dist-info/LICENSE sha256=Ve6d8J-hGOTazTiw1KdMwUtWN41pLzMXvW4cOepW3wM 10763
ofen-0.0.1.dist-info/METADATA sha256=6bGjyRGPOwTw6N4BJG5TxX7D566LAHFzrD0AdBQTzQk 15348
ofen-0.0.1.dist-info/WHEEL sha256=R0nc6qTxuoLk7ShA2_Y-UWkN8ZdfDBG2B6Eqpz2WXbs 91
ofen-0.0.1.dist-info/top_level.txt sha256=PC20_RbK2Lf1l0h3ZWJPj1h5I7_hSiaLjDlGA3RFcn0 5
ofen-0.0.1.dist-info/RECORD

top_level.txt

ofen