Skip to content
IJK

Optimum-Intel's OV Wrappers: How the API Maps to Transformers

By IJK ·

What a Hugging Face post says Optimum-Intel supports as a backend, how its wrappers are named and how its API compares to Transformers.

What backend it supports

Optimum-Intel supports OpenVINO as an inference backend and its API has wrappers for various model architectures built on top of OpenVINO inference API. [1]

How wrappers are named

All of these wrappers start from OV prefix, for example, OVModelForCausalLM. [2]

exposed asused likeOpenVINO as an inference backendsupported by Optimum-IntelWrappers with an OV prefixfor example OVModelForCausalLMOtherwise similar to the Transformers APIas the post puts it
How do the wrappers relate to Transformers?

How it compares to Transformers

Otherwise, it is similar to the API of 🤗 Transformers library. [3]

Sources

  1. The Hugging Face source says: Optimum-Intel supports OpenVINO as an inference backend and its API has wrappers for various model architectures built on top of OpenVINO inference API. Optimize and deploy with Optimum-Intel and OpenVINO GenAI
  2. The Hugging Face source says: All of these wrappers start from OV prefix, for example, OVModelForCausalLM. Optimize and deploy with Optimum-Intel and OpenVINO GenAI
  3. The Hugging Face source says: Otherwise, it is similar to the API of 🤗 Transformers library. Optimize and deploy with Optimum-Intel and OpenVINO GenAI

Editorial (AI-assisted; automatically checked, not human-reviewed). Each statement is linked to its source; check the source before relying on a detail.

  • optimum intel
  • openvino
  • inference
  • hugging face