CloudCodeTree LogoCloudCodeTree
AI NewsTutorialsAbout
CloudCodeTree Logo
CloudCodeTree
  • AI News
  • Tutorials
  • About
← Back to AI News
Any Hugging Face Model at Native vLLM Speed: One Flag Changes Everything

Any Hugging Face Model at Native vLLM Speed: One Flag Changes Everything

Chris Harper

2 min read

Jul 13, 2026 · 12:12 UTC

AI
News
Self-Hosting
LLM
HuggingFace

Hugging Face's July 8 update makes any compatible model on the Hub serve at native vLLM throughput with --model-impl transformers — no custom vLLM implementation required.

Until now, getting native vLLM performance required either waiting for the vLLM team to write a dedicated modeling_xxx.py for your architecture, or writing it yourself. That gap closed on July 8.

The transformers modeling backend now uses torch.fx to statically analyze a model's computation graph at load time and replace standard layers with optimized vLLM kernel implementations — the same fusions previously requiring hand-written vLLM code. Benchmarks on three Qwen3 variants (4B single-GPU, 32B tensor-parallel, 235B FP8 MoE) show the transformers backend "meets or beats" native throughput.

# Single GPU — any compatible HF model
vllm serve Qwen/Qwen3-4B --model-impl transformers

# Tensor-parallel across 2 GPUs
vllm serve Qwen/Qwen3-32B --model-impl transformers --tensor-parallel-size 2

# Large MoE with data + expert parallelism
vllm serve Qwen/Qwen3-235B-A22B-FP8 \
  --model-impl transformers \
  --data-parallel-size 8 \
  --enable-expert-parallel

The second win: because transformers model code works for training, eval, and RL rollouts as well, you can use the same modeling_xxx.py across the full stack — fine-tune with Unsloth, eval with lm-eval-harness, serve with vLLM, all from the same code. No more maintaining a separate vLLM fork.

Why it matters: The gap between "model on the Hub" and "model serving at production speed" just collapsed. Teams doing domain-specific fine-tuning no longer need a custom vLLM port to get production throughput — push to the Hub, add one flag.

Sources: Native-speed vLLM transformers backend — Hugging Face blog · Transformers as modeling backend — HF docs