---
id: pr-sglang-7634
repo: sgl-project/sglang
pr: 7634
title: '[Feature] Layer-wise Prefill'
author: jason-fxz
date: '2025-07-16'
url: https://github.com/sgl-project/sglang/pull/7634
source_category: upstream-code
architectures:
- sm100
tags:
- gemm
- moe
- prefill
techniques: []
hardware_features: []
kernel_types:
- gemm
- moe
- prefill
languages:
- python
captured_at: '2026-04-27'
status: merged
merge_sha: 570d33437bf0b4ac42e00ad468ddc43f9e0b376f
inclusion_reason: kernel file changes
changed_paths:
- python/sglang/srt/managers/schedule_batch.py
- python/sglang/srt/model_executor/forward_batch_info.py
- python/sglang/srt/model_executor/model_runner.py
- python/sglang/srt/models/gemma.py
- python/sglang/srt/models/gemma2.py
- python/sglang/srt/models/gemma3_causal.py
- python/sglang/srt/models/llama.py
- python/sglang/srt/models/qwen.py
- python/sglang/srt/models/qwen2.py
- python/sglang/srt/models/qwen2_moe.py
- python/sglang/srt/models/qwen3.py
- python/sglang/srt/models/qwen3_moe.py
- python/sglang/srt/two_batch_overlap.py
head_ref_oid: 652298f0a7b8c25efa24b494eed72f3d01512d79
artifact_dir: evidence/pull-bundles/sglang/gh-7634
---
# [Feature] Layer-wise Prefill

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

## Changed Paths

- `python/sglang/srt/managers/schedule_batch.py`
- `python/sglang/srt/model_executor/forward_batch_info.py`
- `python/sglang/srt/model_executor/model_runner.py`
- `python/sglang/srt/models/gemma.py`
- `python/sglang/srt/models/gemma2.py`
- `python/sglang/srt/models/gemma3_causal.py`
- `python/sglang/srt/models/llama.py`
- `python/sglang/srt/models/qwen.py`
- `python/sglang/srt/models/qwen2.py`
- `python/sglang/srt/models/qwen2_moe.py`
- `python/sglang/srt/models/qwen3.py`
- `python/sglang/srt/models/qwen3_moe.py`
- `python/sglang/srt/two_batch_overlap.py`

## Evidence Bundle

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