[Attention] Remove imports from vllm/attention/__init__.py (#29342)

Signed-off-by: Matthew Bonanni <mbonanni@redhat.com>
This commit is contained in:
Matthew Bonanni
2025-11-26 10:53:15 -07:00
committed by GitHub
parent c4c0354eec
commit 430dd4d9eb
96 changed files with 120 additions and 121 deletions
+1 -1
View File
@@ -5,8 +5,8 @@ import numpy as np
import pytest
import torch
from vllm.attention import Attention
from vllm.attention.backends.abstract import MultipleOf
from vllm.attention.layer import Attention
from vllm.config import (
CacheConfig,
ModelConfig,
+2 -2
View File
@@ -7,7 +7,7 @@ from vllm.v1.worker.utils import bind_kv_cache
def test_bind_kv_cache():
from vllm.attention import Attention
from vllm.attention.layer import Attention
ctx = {
"layers.0.self_attn": Attention(32, 128, 0.1),
@@ -35,7 +35,7 @@ def test_bind_kv_cache():
def test_bind_kv_cache_non_attention():
from vllm.attention import Attention
from vllm.attention.layer import Attention
# example from Jamba PP=2
ctx = {