---
id: pr-sglang-4068
repo: sgl-project/sglang
pr: 4068
title: Support overlapping two batches
author: fzyzcjy
date: '2025-05-25'
url: https://github.com/sgl-project/sglang/pull/4068
source_category: upstream-code
architectures:
- sm100
tags:
- attention
- gemm
- quantization
techniques: []
hardware_features: []
kernel_types:
- attention
- gemm
- quantization
languages:
- cuda-cpp
- python
captured_at: '2026-04-27'
status: merged
merge_sha: 0d4778802576cb81add26aa4c8787a589e0d0076
inclusion_reason: kernel file changes
changed_paths:
- python/sglang/srt/layers/attention/tbo_backend.py
- python/sglang/srt/layers/quantization/deep_gemm.py
- python/sglang/srt/managers/schedule_batch.py
- python/sglang/srt/managers/scheduler.py
- python/sglang/srt/model_executor/cuda_graph_runner.py
- python/sglang/srt/model_executor/forward_batch_info.py
- python/sglang/srt/model_executor/model_runner.py
- python/sglang/srt/models/deepseek_v2.py
- python/sglang/srt/operations.py
- python/sglang/srt/operations_strategy.py
- python/sglang/srt/server_args.py
- python/sglang/srt/two_batch_overlap.py
- test/srt/test_two_batch_overlap.py
head_ref_oid: 30ca42052a22855fec105108a3a7ca73ebce2191
artifact_dir: evidence/pull-bundles/sglang/gh-4068
---
# Support overlapping two batches

- Repository: `sgl-project/sglang`
- PR: [4068](https://github.com/sgl-project/sglang/pull/4068)
- Decision: `kernel file changes`
- Reason: kernel file changes

## Changed Paths

- `python/sglang/srt/layers/attention/tbo_backend.py`
- `python/sglang/srt/layers/quantization/deep_gemm.py`
- `python/sglang/srt/managers/schedule_batch.py`
- `python/sglang/srt/managers/scheduler.py`
- `python/sglang/srt/model_executor/cuda_graph_runner.py`
- `python/sglang/srt/model_executor/forward_batch_info.py`
- `python/sglang/srt/model_executor/model_runner.py`
- `python/sglang/srt/models/deepseek_v2.py`
- `python/sglang/srt/operations.py`
- `python/sglang/srt/operations_strategy.py`
- `python/sglang/srt/server_args.py`
- `python/sglang/srt/two_batch_overlap.py`
- `test/srt/test_two_batch_overlap.py`

## Evidence Bundle

`evidence/pull-bundles/sglang/gh-4068`
