---
id: pr-sglang-6230
repo: sgl-project/sglang
pr: 6230
title: Enable FlashInfer support encoder models and add head_dim padding workaround
author: ccs96307
date: '2025-07-20'
url: https://github.com/sgl-project/sglang/pull/6230
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: cbdfb77123e020aa6d45e423b283f9a3d96e4f96
inclusion_reason: kernel file changes
changed_paths:
- python/sglang/srt/layers/attention/flashinfer_backend.py
- test/srt/models/test_encoder_embedding_models.py
head_ref_oid: e8b01fe6b4620412cb771455e3d93ee4646e3ebf
artifact_dir: evidence/pull-bundles/sglang/gh-6230
---
# Enable FlashInfer support encoder models and add head_dim padding workaround

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

## Changed Paths

- `python/sglang/srt/layers/attention/flashinfer_backend.py`
- `test/srt/models/test_encoder_embedding_models.py`

## Evidence Bundle

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