vllm - 💡(How to fix) Fix [Feature]: FA4 Attention Sinks [1 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
vllm-project/vllm#36804Fetched 2026-04-08 00:34:33
View on GitHub
Comments
0
Participants
1
Timeline
3
Reactions
0
Participants
Timeline (top)
subscribed ×2labeled ×1
RAW_BUFFERClick to expand / collapse

🚀 The feature, motivation and pitch

In order to run GPT-OSS-120b efficiently on the blackwell architecture it requires attention sink support in FA4

Alternatives

Eager attention :(

Additional context

No response

Before submitting a new issue...

  • Make sure you already searched for relevant issues, and asked the chatbot living at the bottom right corner of the documentation page, which can answer lots of frequently asked questions.

extent analysis

Fix Plan

To add attention sink support in FA4 for running GPT-OSS-120b efficiently on the blackwell architecture, we need to implement the following steps:

  • Modify the FA4 configuration to include attention sink support
  • Update the model architecture to utilize the attention sink

Code Changes

Here's an example code snippet in Python to demonstrate the changes:

# Import necessary libraries
import torch
import torch.nn as nn

# Define the attention sink module
class AttentionSink(nn.Module):
    def __init__(self):
        super(AttentionSink, self).__init__()
        self.attention = nn.MultiHeadAttention()

    def forward(self, x):
        return self.attention(x, x)

# Update the FA4 model to include attention sink support
class FA4Model(nn.Module):
    def __init__(self):
        super(FA4Model, self).__init__()
        self.attention_sink = AttentionSink()

    def forward(self, x):
        x = self.attention_sink(x)
        # Rest of the model architecture remains the same
        return x

Configuration Changes

Update the FA4 configuration file to include the attention sink support:

model:
  architecture: FA4
  attention_sink: true

Verification

To verify that the fix worked, run the GPT-OSS-120b model on the blackwell architecture and check for improved performance.

Extra Tips

  • Ensure that the attention sink module is properly integrated with the rest of the model architecture.
  • Monitor the model's performance and adjust the attention sink configuration as needed.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING

vllm - 💡(How to fix) Fix [Feature]: FA4 Attention Sinks [1 participants]