Skip to content
IJK

The Transformers Modeling Backend in vLLM: Who Does What

By IJK ·

What a Hugging Face post says the transformers modeling backend in vLLM is, how the work divides and which custom models are unlikely to work.

How the work divides

Transformers provides the modeling code, and vLLM provides extremely optimized inference techniques such as continuous batching and custom attention kernels. [1]

What does not work

Custom models where the code lives in a Hub repo are unlikely to work as they will not have been written compliantly. [2]

paired withlimited forTransformersprovides the modeling codevLLMprovides optimized inference: continuous batching...Custom models with code in a Hub repounlikely to work if not written compliantly
Who does what in the backend?

What the backend used to focus on

The transformers modeling backend for vLLM used to focus on attention as the bottleneck for inference. [3]

Sources

  1. The Hugging Face source says: Transformers provides the modeling code, and vLLM provides extremely optimized inference techniques such as continuous batching and custom attention kernels. Native-speed vLLM transformers modeling backend
  2. The Hugging Face source says: Custom models where the code lives in a Hub repo are unlikely to work as they will not have been written compliantly. Native-speed vLLM transformers modeling backend
  3. The Hugging Face source says: The transformers modeling backend for vLLM used to focus on attention as the bottleneck for inference. Native-speed vLLM transformers modeling backend

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

  • vllm
  • transformers
  • inference
  • hugging face