---
id: pr-sglang-8782
repo: sgl-project/sglang
pr: 8782
title: 'feat: add trtllm-gen mha from direct call'
author: yyihuang
date: '2025-08-05'
url: https://github.com/sgl-project/sglang/pull/8782
source_category: upstream-code
architectures:
- sm100
tags:
- attention
techniques: []
hardware_features: []
kernel_types:
- attention
languages:
- python
captured_at: '2026-04-27'
status: merged
merge_sha: 40e3b2beebef63234ed17c40015677aa252b93b5
inclusion_reason: kernel file changes
changed_paths:
- python/sglang/srt/layers/attention/trtllm_mha_backend.py
- python/sglang/srt/managers/schedule_batch.py
- python/sglang/srt/model_executor/model_runner.py
- python/sglang/srt/server_args.py
head_ref_oid: ff5c686c5e5df06d950fdf191df451090758d3a6
artifact_dir: evidence/pull-bundles/sglang/gh-8782
---
# feat: add trtllm-gen mha from direct call

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

## Changed Paths

- `python/sglang/srt/layers/attention/trtllm_mha_backend.py`
- `python/sglang/srt/managers/schedule_batch.py`
- `python/sglang/srt/model_executor/model_runner.py`
- `python/sglang/srt/server_args.py`

## Evidence Bundle

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