optimum: Optimum Library is an extension of the Hugging Face Transformers library, providing a framework to integrate third-party libraries from Hardware Partners and interface with their specific functionality. · Pythie
Optimum Library is an extension of the Hugging Face Transformers library, providing a framework to integrate third-party libraries from Hardware Partners and interface with their specific functionality.
Actively maintained.Last release 4 months ago, commits in 13 of the last 26 weeks. A safe choice.
Optimum is an extension of Transformers 🤖 Diffusers 🧨 TIMM 🖼️ and Sentence-Transformers 🤗, providing a set of optimization tools and enabling maximum efficiency to train and run models on targeted hardware, while keeping things easy to use.
Installation
Optimum can be installed using pip as follows:
python -m pip install optimum
If you'd like to use the accelerator-specific features of Optimum, you can check the documentation and install the required dependencies according to the table below:
It is possible to export Transformers, Diffusers, Sentence Transformers and Timm models to the ONNX format and perform graph optimization as well as quantization easily.
For more information on the ONNX export, please check the documentation.
Once the model is exported to the ONNX format, we provide Python classes enabling you to run the exported ONNX model in a seamless manner using ONNX Runtime in the backend.
For this make sure you have ONNX Runtime installed, fore more information check out the installation instructions.
More details on how to run ONNX models with ORTModelForXXX classes here.
Use together with optimum: extensions, drivers, servers and companion tools.
torchPythie’s Index: 89Tensors and Dynamic neural networks in Python with strong GPU acceleration59.1M downloads/mo
transformersPythie’s Index: 90Transformers: the model-definition framework for state-of-the-art machine learning models in text, vision, audio, and multimodal models, for both inference and training.122.3M downloads/mo
onnxruntimePythie’s Index: 86ONNX Runtime is a runtime accelerator for Machine Learning models155.1M downloads/mo
huggingface-hubPythie’s Index: 91Client library to download and publish models, datasets and other repos on the huggingface.co hub303.7M downloads/mo
optuna-integrationPythie’s Index: 90Integration libraries of Optuna.771.8K downloads/mo
optimum-onnxPythie’s Index: 49Optimum ONNX is an interface between the Hugging Face libraries and ONNX / ONNX Runtime214.9K downloads/mo