• Codex
  • Claude Code
  • VS Code
  • GitHub Copilot
  • Cursor
  • Cline
  • Windsurf
  • Google Anti-gravity
  • OpenCode
  • Pi
  • Gemini CLI
  • Hermes Agent
  • Zed
  • Junie
  • Qwen Code
  • Kiro
  • Kilo Code
  • Factory Droid

Set up GitHits for your agents

Run this command:

<> bash
npx githits@latest init

What happens next:

  1. Opens your browser to authorize GitHits
  2. Asks whether to set up GitHits at the user or project level
  3. Detects your supported AI coding tools
  4. Lets you choose which tools to configure
  5. Configures the selected tools
Back to blog

October 22, 2026 · 8 min read

DeepInfer vs vLLM: how they run language models

We read DeepInfer and vLLM with GitHits to compare how applications call them, how they schedule work, and which hardware they support.

If you’re building an application around a language model, you need software that loads the model and runs requests on your hardware. That software is an inference engine. Its design affects how you connect your application, which models and devices you can use, and how requests share the available computing power.

DeepSeek’s DeepInfer describes itself as the framework behind its production services. It credits vLLM, with inspiration from SGLang and TensorRT-LLM, and 23 files carry a comment saying they were derived from vLLM. We wanted to understand what that shared history means for someone evaluating the code today.

We used GitHits to read DeepInfer at commit 774ce244, vLLM v0.32.0, and the separate vllm-ascend plugin at v0.30.0rc2. These are the revisions this article describes. We didn’t run either engine, so the comparison covers their implementation and interfaces. Any performance figures below come from DeepSeek’s published measurements.

What an application can use

The first difference is how you send a request. At the revision we read, DeepInfer exposes a Python interface for one supported model, DeepSeek-V4.1-Flash. vLLM supports many model architectures and provides a server that applications can call over a network.

QuestionDeepInfer (774ce244)vLLM (v0.32.0)
Which models does it support?DeepSeek-V4.1-FlashMany architectures, including DeepSeek V2 through V4.1
How does an application call it?Python’s LLM.generate()Python calls, OpenAI-compatible HTTP routes, and gRPC
Which hardware does it target?NVIDIA SM100 and Ascend 950, with support in the same repositoryFive built-in hardware platforms, with additional devices supplied by plugins
How does it schedule requests?Coordinates workers to process prompts or generate output at each stepAllocates a token budget that can mix prompt processing and output generation
Can it adjust how much draft output to check?Yes, through an optional feature near the schedulerYes, through an optional feature on the GPU worker for the DSpark method

DeepInfer’s generate() adds requests and runs the engine until they finish. Its HTTP route, POST /profile, starts performance profiling. It doesn’t provide an HTTP route for generating responses at this revision.

vLLM offers both a Python interface and HTTP routes such as /v1/chat/completions. The latter lets an application send chat requests using the OpenAI API format. It also provides gRPC, another protocol for calls between programs. For a networked application, vLLM includes a serving layer that you would need to supply around this DeepInfer release.

The diagram traces those entry points into each engine. A scheduler decides which waiting requests the engine works on next; workers perform the model computation.

Both request paths, traced with GitHits at DeepInfer 774ce244 and vLLM v0.32.0.

How requests share the hardware

Generating a response has two main stages. Prefill processes the input prompt. Decode produces the response one token at a time, where a token is a small unit of text. Handling both efficiently matters when some users submit long prompts while others are already receiving answers.

DeepInfer’s C++ scheduler coordinates workers running separate batches of requests. These workers, called data-parallel ranks, agree on whether the next step will process prompts or generate output. They then perform the same kind of step together.

vLLM’s Python scheduler gives each step a token budget. It can use that budget for parts of long prompts and for ongoing responses. This splitting of prompts is called chunked prefill. The configuration class enables it by default, although the engine arguments normally set the value.

Hardware plugins can change this scheduling behavior. With its balance-scheduling option enabled, the Ascend plugin patches vLLM’s scheduler. Its comment says mixing prefill and decode can reduce throughput in some scenarios. That qualification matters when comparing the engines on Ascend hardware.

Both engines also manage a KV cache, stored intermediate calculations that the model reuses while generating text. DeepInfer’s block manager tracks available memory blocks and reports whether a request can proceed now, later, or never within the available capacity. vLLM’s block pool also tracks reusable prompt prefixes. Prefix caching is enabled by default, allowing matching prompt prefixes to reuse earlier calculations.

These are differences in how the engines organize work. Measuring their effect would require running the same workload on comparable hardware.

Hardware support and deployment settings

DeepInfer includes NVIDIA and Ascend support in the same repository. A hardware-specific implementation selects the low-level computation routines, also called kernels, while the model code uses shared names to call them. The PlatformGPU, PlatformNPU, and kernel dispatcher show that separation.

vLLM has five built-in platforms: TPU, CUDA, ROCm, XPU, and CPU. It also loads hardware plugins from installed packages. Ascend support comes from the separate vllm-ascend repository, which registers an NPUPlatform and supplies its own model code and startup patches. A deployment using that plugin needs to track both repositories and their compatible versions.

The diagram shows where the shared model code selects the hardware-specific implementation in each project.

Where the NVIDIA/Ascend split lives in each project. Paths at DeepInfer 774ce244, vLLM v0.32.0, vllm-ascend v0.30.0rc2.

The engines also expose different ways to divide computation across devices. In tensor parallelism, devices share the calculations within a model layer. In pipeline parallelism, devices handle different stages of the model. vLLM exposes settings for both. We found no corresponding settings in DeepInfer, and DeepSeek’s deployment notes say its production setup doesn’t use tensor parallelism. A vLLM deployment configuration therefore needs review before adapting it to DeepInfer.

Both projects support distributing work among model experts, specialized parts of the model used for different inputs. Expert load balancing copies busy experts onto more devices to spread the work. vLLM’s default policy credits DeepSeek’s work; DeepInfer has its own replication and placement implementation.

Checking draft output before accepting it

One way to speed up generation is to have a cheaper model draft several tokens, then ask the full model to check them together. This is speculative decoding. Checking too much draft text wastes work if the full model rejects it, so both projects have optional logic that adjusts how much to check.

DeepInfer’s ConfidenceHead estimates how likely each draft token is to be accepted. Its C++ MTPVarlen component chooses a verification batch size using those estimates and the median timings of the previous 5,000 steps. The feature is enabled with DEEPINFER_ENABLE_MTP_VARLEN.

vLLM’s Python AdaptiveVerificationManager makes a similar choice on the GPU worker. It uses confidence estimates and timing tables initialized by measurements at startup. This feature is off by default and applies to the DSpark drafting method.

Both try to choose the amount of draft text expected to produce the most accepted output for the time spent checking it. The diagram shows where that choice happens and how each implementation estimates the time required.

Both projects choose a variable verification length from draft confidence. GitHits found both implementations.

DeepSeek reports that its feature reduced draft tokens checked per step by about 30%, from 5.00 to 3.2–4.4, while keeping accepted output roughly unchanged. Its estimates show 4–7% more throughput at about 60 concurrent sequences per rank in its reported expert- and data-parallel configuration. Throughput here means output produced per unit of time; sequences are requests being processed, and ranks are participating workers. The same table shows a 1.5% loss at 16 sequences per rank. We didn’t reproduce these measurements or find comparable figures in vLLM’s source, so they don’t establish which engine is faster.

How much code still resembles vLLM?

The 23 file headers credit vLLM without naming a version. We compared each file with its counterpart at 16 vLLM releases, from v0.2.0 to v0.32.0, and counted non-comment lines that still matched exactly. Sixteen files matched most closely with a release between v0.2.0 and v0.5.0. The median overlap was 19%.

Some files retained more code: the shared-memory broadcast queue had 73% overlap with v0.6.6 and v0.7.3, and model_executor/models/__init__.py had 70%. These percentages describe matching text. They are a rough guide to shared implementation, with no measurement of performance or compatibility.

For example, vLLM v0.3.3’s 178-line CacheEngine moved cache blocks to CPU memory. DeepInfer’s 978-line version removes that behavior and adds a KVCacheManager and sliding-window state. Shared filenames can hide substantial changes in responsibilities.

For an application developer, the interfaces, supported models, hardware integration, and scheduling choices are more useful checks than the shared file headers. The source shows where those choices differ at the revisions we inspected.

Inspect a dependency with GitHits

This comparison came from searching and reading public source through GitHits. The API returns file locations that an agent can follow and cite, so you can inspect the code behind its explanation.

The API quickstart walks through a first request. Create a token in your GitHits account and follow the authentication guide to use it. The API overview describes the available operations and evaluation status of the v1 contract.

If you’re building agents that evaluate or integrate open-source dependencies, book a call to discuss the API.

Get started

GitHits in one command

Install GitHits or refresh an existing setup with the same command.

npx -y githits@latest init