Baidu FastDeploy 2.0 Brings 2-Bit Quantization and PD Disaggregation to ERNIE 4.5
Summary:Baidu has released FastDeploy 2.0, a PaddlePaddle-based toolkit for high-performance inference and deployment of large models, with native support for the ERNIE 4.5 family. Its core stack combines expert parallelism, prefill-decode disaggregation, CUDA Graph capture, speculative decoding, context caching, and low-bit quantization for weights, activations, and KV Cache. The most striking result is the 2-bit deployment path for ERNIE-4.5-300B-A47B: reported weight storage falls from 600 GB to 89
Scope of the release
Baidu has released FastDeploy 2.0, a large-model inference and deployment toolkit built on PaddlePaddle rather than a new version of the ERNIE 4.5 model itself. It natively supports the ERNIE 4.5 family, exposes an OpenAI-compatible API, and is claimed to align with the vLLM interface. The toolkit covers offline execution, online services, quantization, caching, speculative decoding, expert parallelism, prefill-decode disaggregation, and heterogeneous hardware including NVIDIA GPUs, Kunlunxin P800, Iluvatar BI-V150, Hygon K100AI, and Enflame S60.
The supplied page body dates the product update to August 14, 2025, although the collection metadata says November 29, 2026. The latter should therefore be treated as a collection or page-update timestamp, not the release date of FastDeploy 2.0.
Core architecture: decomposing large MoE inference
Expert parallelism expands capacity, but adds All-to-All traffic
FastDeploy 2.0 uses Expert Parallelism (EP) to shard the experts in ERNIE-4.5-300B-A47B. After the router selects a small set of experts for each token, the runtime must dispatch tokens to the GPUs holding those experts, execute the expert layers, and combine the outputs back at the appropriate sequence positions. EP partitions expert weights rather than attention heads or conventional hidden dimensions, so non-expert layers, routing state, and some intermediate results may still be replicated or communicated.
The DeepEP engine handles cross-device dispatch and combination. In the documented low-latency path, local experts are reached over NVLink. For a remote expert, tokens first travel over RDMA to the destination rank and then move over NVLink to the target GPU. A two-stage optimization reportedly doubles communication performance, but that does not imply a twofold increase in end-to-end throughput. MoE inference remains constrained by expert-load skew, interserver bandwidth, slow ranks, and All-to-All tail latency.
Prefill-decode disaggregation matches different resource bottlenecks
Prefill processes long prompts with substantial matrix-multiplication parallelism, while decode generates tokens sequentially and is often limited by weight reads and memory bandwidth. Prefill-Decode Disaggregation, or PD, places those workloads in independently scalable pools so that long prompts do not block short-request decoding.
The trade-off is that prefill results must be transferred as KV Cache to decode workers. Ignoring paging, block alignment, and metadata overhead, a GQA model's KV Cache is approximately M_KV ≈ 2 × L × H_kv × S × B × b_kv / 8 bytes, where L is the number of layers, H_kv the number of KV heads, S sequence length, B batch size, and b_kv the bit width per KV element. Longer contexts and higher concurrency increase both transfer volume and memory pressure. PD is therefore most attractive when prompt length, output length, cache hit rate, and interconnect bandwidth materially affect queueing behavior.
Low-bit quantization reduces resident weight pressure
FastDeploy 2.0 provides 8-bit, 4-bit, and 2-bit paths for weights, activations, and KV Cache. It supports one-command online weight-only 8-bit, 4-bit, and FP8 quantization, plus static W4A8. CUTLASS kernels are selected according to model architecture and hardware, with support for both dynamic and static graph capture.
A simple parameter-based estimate gives 300B × 16 / 8 = 600 GB for a 300B model in BF16, matching the reported figure. At 2 bits, the raw estimate is about 75 GB. Baidu reports 89 GB in practice, leaving additional space for quantization parameters, codebooks, layout, and alignment. Whether a trillion-parameter model can run on one GPU therefore depends on more than weight size: KV Cache, runtime workspaces, communication buffers, and fragmentation must also be counted.
The 2-bit method uses convolutional encoding, drawing on Trellis Code Quantization and Bitshift Trellis while redesigning the codebook and encoding algorithm. Baidu claims better accuracy than conventional scalar quantization and faster inference than traditional vector quantization, but that comparison needs independent reproduction with matched kernels, hardware, and models.
Speculative decoding, CUDA Graph, and caching
The modular speculative-decoding framework uses draft proposals, parallel target-model verification, dynamic batching, and virtual padding. Virtual padding allows different effective lengths to be represented as fixed shapes, improving batching efficiency, although the benefit depends on draft acceptance rate. If acceptance is low, the target model's extra verification work can erase the expected speedup.
PaddlePaddle's dynamic-to-static conversion enables CUDA Graph capture, reducing per-layer kernel-launch and scheduling overhead. This is particularly visible on 0.3B and 0.6B models, for which Baidu reports more than a twofold average decoding improvement. Segmented prefill, context caching, and logical/physical address separation for the MTP module are also integrated to improve cache reuse across layers and decoding states, at the cost of more complex cache management.
Reported performance and how to interpret it
Baidu reports 56K tokens per second of input throughput and 21K tokens per second of output throughput with ERNIE 4.5. For ERNIE-4.5-300B-A47B, weight-only 4-bit inference reduces deployment to as few as four GPUs. In a single-GPU setup, QPS is about 23% higher than full-weight 8-bit inference; adding W4A8 and an 8-bit KV Cache produces another reported QPS gain of roughly 40%. Baidu also claims that TPS on one H800 exceeds an eight-GPU vLLM deployment of WINT4 DeepSeek by 198%.
For lightweight models at a 1.1K input length, the A3B model keeps TPOT below 25 ms on H800, while the 0.3B and 0.6B models remain below 16 ms on A30. FastDeploy is reported to deliver 5% and 12% more throughput than vLLM for the corresponding lightweight Qwen3 models. The lightweight ERNIE 4.5 MoE configurations are claimed to outperform similarly scaled Qwen3 models by 99% and 118%.
Quality cost of 2-bit quantization
| Benchmark | WINT4 | WINT2 | Change for WINT2 | |---|---:|---:|---:| | IFEval | 88.17 | 85.40 | -2.77 | | BBH | 94.43 | 92.02 | -2.41 | | DROP | 91.17 | 89.97 | -1.20 | | GSM8K | 96.21 | 95.98 | -0.23 | | CMath | 96.50 | 96.00 | -0.50 | | CMMLU | 89.92 | 86.22 | -3.70 |
Near-lossless does not mean lossless. WINT2 trails WINT4 by 0.23 to 3.70 points across these six tests, with larger regressions on CMMLU and IFEval. Code-generation, mathematical-reasoning, and strict instruction-following services should evaluate representative production samples rather than relying on an average score.
Engineering trade-offs
- Quantization trades capacity for accuracy: 2-bit weights sharply reduce memory-bandwidth and capacity pressure, but low-bit kernels, quantization error, and long-tail task stability still require dedicated validation.
- EP adds capacity but not automatic communication relief: More GPUs can host more experts while simultaneously increasing All-to-All traffic, load skew, and slow-rank effects.
- PD improves scheduling flexibility but adds coupling: The service must handle KV Cache transfer, node failure, version consistency, and cross-pool latency.
- Single-GPU feasibility is context-dependent: After allocating the reported 89 GB of weights on a 141 GB GPU, roughly 52 GB remains nominally, but KV Cache, activations, communication buffers, and runtime overhead must fit in that space.
- Heterogeneous support is more than a device list: Quantized operators, CUDA Graph behavior, EP communication, and fused-kernel maturity can differ across GPU models.
- Important benchmark context is missing: The release does not fully specify concurrency, input/output-length distributions, TTFT, TPOT tail latency, cache-hit rate, precision, power, or cost. The 198% H800 comparison also changes the model, GPU count, and serving framework simultaneously, so it cannot be generalized to other workloads.
Deployment guidance for developers
- Establish a W4A8 quality baseline: For quality-sensitive workloads, begin with 4-bit weights, 8-bit activations, and an 8-bit KV Cache. Evaluate WINT2 only when hardware budget or long-context capacity is a hard constraint.
- Choose a 300B topology from memory and SLA requirements: If four GPUs are acceptable, W4 is generally easier to keep at stable quality. For a mandatory single 141 GB GPU, calculate KV Cache usage from the real context length and concurrency before validating the quality regression.
- Enable PD according to request shape: PD is well suited to clusters with long prompts, short outputs, and uneven traffic. For short-request-dominated services, minimize scheduling and transfer overhead instead.
- Reproduce comparisons on the same machine: Lock model version, precision, input/output lengths, concurrency, cache state, and sampling parameters. Record TTFT, TPOT P50/P99, QPS, peak memory, network traffic, power, and cost per hour.
- Keep an API regression layer during migration: OpenAI API compatibility and vLLM interface alignment can reduce migration work, but streaming, tool calls, structured outputs, timeouts, retries, and error semantics still need explicit testing.
- Pin production versions and monitor expert load: Lock the FastDeploy, model, and quantization configurations, then track expert-routing skew, KV Cache hit rate, PD transfer latency, GPU utilization, and slow nodes.
- Verify licensing and release artifacts: The supplied material does not fully specify the license, container-image digests, operator coverage matrix, or long-term maintenance commitment. Enterprise adopters should close these compliance and operational gaps before deployment.
— END —Source: Baidu ERNIE Research (2026-11-29)
Tags: #FastDeploy 2.0 #ERNIE 4.5 #2-bit quantization #expert parallelism #prefill-decode disaggregation
Editorial & Fact-Checking Note: This article is compiled from primary research, official release documentation, and source papers by the ZICQ Newsroom pipeline with automated entity verification and human editorial review. If you notice any technical inaccuracy, please submit a correction via our corrections policy or email our editorial desk directly.
Community Comments