---
title: "Baidu's PaddlePaddle 3.3 Beats FlexAttention by 2.1x With FlashMaskV3"
subtitle: "Baidu's PaddlePaddle 3.3 ships FlashMaskV3, a new checkpoint system, and dynamic GPU memory defragmentation for large-model training"
url: "https://alphasignal.ai/news/baidu-s-paddlepaddle-3-3-beats-flexattention-by-2-1x-with-flashmaskv3"
author: "AlphaSignal Newsroom"
author_url: "https://alphasignal.ai/editorial-team"
company: "AlphaSignal"
company_url: "https://alphasignal.ai/company/alphasignal"
published: "2026-06-19T01:38:13.000Z"
updated: "2026-06-20T16:33:35.647Z"
type: "Repo"
topics:
  - "Training Infra"
  - "Open Source"
subtopics:
  - "Distributed Training"
  - "Pretraining"
upvotes: 3943
source_url: "https://github.com/PaddlePaddle/Paddle"
comments: 0
truncated: true
---

# Baidu's PaddlePaddle 3.3 Beats FlexAttention by 2.1x With FlashMaskV3

> Baidu's PaddlePaddle 3.3 ships FlashMaskV3, a new checkpoint system, and dynamic GPU memory defragmentation for large-model training

[PaddlePaddle](https://github.com/PaddlePaddle/Paddle), Baidu's open-source deep learning framework, has published its 3.3.0 release on GitHub. The update is squarely aimed at the pain points of large-model training at scale: attention kernel performance, the cost of converting weights between training and inference configurations, and GPU memory fragmentation in Mixture-of-Experts (MoE) models. It also ships a new compatibility layer designed to make it easier to drop in third-party high-performance kernels without rewriting model code.

## FlashMaskV3: Beating FlexAttention on Sparse Attention

The headline kernel upgrade is **FlashMaskV3**, PaddlePaddle's column-sparse attention mask implementation. Sparse attention masks let you express patterns like causal masking, sliding-window attention, or document-boundary masking without materializing a full dense attention matrix , which matters a lot for long-context training.

The latest version, v3.3.1, was last published in March 2026\. The 3.3.0 release notes describe the core innovation in FlashMaskV3 as a new **Persistent Preemptive Tile (PPT) scheduler** , a GPU kernel scheduling strategy that balances compute load across streaming multiprocessors (SMs) at runtime rather than statically. The claimed results are significant:

* Up to **2.1x faster** than PyTorch's FlexAttention on a single GPU
* Up to **1.4x faster** than the previous FlashMask version
* **80% faster** than Megatron-LM's distributed attention implementation in context-parallel scenarios

The kernel also natively supports context parallelism (splitting long sequences across GPUs) and head dimensions larger than 128, which is relevant for models using grouped-query attention with wide heads.

_Preview only. Full text requires an AlphaSignal Pro account._

## Sources

- [PaddlePaddle 3.3.0 Release Notes · PaddlePaddle/Paddle](https://github.com/PaddlePaddle/Paddle/releases/tag/v3.3.0)
- [Releases · PaddlePaddle/Paddle](https://github.com/PaddlePaddle/Paddle/releases)
- [GitHub - PaddlePaddle/Paddle](https://github.com/PaddlePaddle/Paddle)
- [Latest releases for PaddlePaddle/Paddle - Release Alert](https://releasealert.dev/github/PaddlePaddle/Paddle)
