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]
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
- 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
- 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
- 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