AI Pulse by Inblix

SGLang taps Hugging Face transformers as a backend, instantly unlocking models like Kyutai's Helium

Hugging Face Blog · Jun 23, 2025 · 2 min read · Read original article →

Curated by the Inblix editorial team


Featured image for article: SGLang taps Hugging Face transformers as a backend, instantly unlocking models like Kyutai's Helium

SGLang, the inference engine built for high-throughput and low-latency AI, just closed a major gap in its ecosystem. It now integrates with Hugging Face’s transformers library as a direct backend, a move that lets developers run virtually any model on the Hub with SGLang’s optimized performance from day one.

The practical upshot is simple: you no longer need to wait for SGLang’s team to build native support for a new or niche model. The engine can automatically fall back to a transformers implementation if it doesn’t recognize a model, or you can force it explicitly by setting impl="transformers". The team demonstrated this by spinning up Kyutai Team’s Helium-1-preview-2b, a model SGLang doesn’t natively support, using a single server launch command. That’s a significant unlock for teams who want to test cutting-edge models in production-like environments without the engineering overhead of writing custom serving code or waiting for integration pull requests.

This bridges two worlds that have often been at odds. The transformers library is the default for experimentation—it’s flexible, well-documented, and has a massive community. But it’s notoriously slow for production workloads. SGLang brings features like RadixAttention, a memory-efficient attention mechanism that shines under load, but until now it required models to be explicitly supported. This backend integration means you can prototype in a notebook with transformers and then deploy with SGLang’s performance advantages using the exact same model weights, though SGLang’s team is upfront that the transformers path currently lags behind native implementations in raw speed.

There are clear trade-offs here. The team explicitly states that performance improvements are their primary objective, and they’re working on closing the gap. They also teased upcoming support for LoRA adapters and Vision-Language Models (VLMs), which would make this integration far more versatile for multimodal applications. For now, any custom model that works with trust_remote_code=True and correctly implements attention should be compatible, provided you pass that flag when loading the engine. The OpenAI-compatible API also remains intact, so swapping this into existing pipelines is straightforward. It’s a pragmatic, if imperfect, step toward making high-performance inference the default, not an afterthought.

💡 Key Takeaways

  1. SGLang can now run any Hugging Face transformers model automatically, eliminating the wait for native support on new model releases.
  2. The integration currently carries a performance penalty compared to SGLang's native implementations, which the team is actively working to reduce.
  3. Developers can force the transformers backend with `impl="transformers"` and enable custom models by passing `trust_remote_code=True`.

Keep reading: See related articles below for more coverage on this topic.

Get smarter about AI

The sharpest AI news, curated daily. Delivered free to your inbox.

Learn more

Glossary terms

← Back to all articles