Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion docs/design/plugin_system.md
Original file line number Diff line number Diff line change
Expand Up @@ -153,4 +153,3 @@ The interface for the model/module may change during vLLM's development. If you

!!! warning "Deprecations"
- `use_v1` parameter in `Platform.get_attn_backend_cls` is deprecated. It will be removed in v0.13.0 or v1.0.0.
- `_Backend` in `vllm.attention` is deprecated. It will be removed in v0.13.0 or v1.0.0. Please use `vllm.attention.backends.registry.register_backend` to add new attention backend to `AttentionBackendEnum` instead.
32 changes: 0 additions & 32 deletions vllm/attention/backends/registry.py
Original file line number Diff line number Diff line change
Expand Up @@ -252,35 +252,3 @@ def decorator(cls: type) -> type:
return lambda x: x

return decorator


# Backwards compatibility alias for plugins
class _BackendMeta(type):
"""Metaclass to provide deprecation warnings when accessing _Backend."""

def __getattribute__(cls, name: str):
if name not in ("__class__", "__mro__", "__name__"):
logger.warning(
"_Backend has been renamed to AttentionBackendEnum. "
"Please update your code to use AttentionBackendEnum instead. "
"_Backend will be removed in a future release."
)
return getattr(AttentionBackendEnum, name)

def __getitem__(cls, name: str):
logger.warning(
"_Backend has been renamed to AttentionBackendEnum. "
"Please update your code to use AttentionBackendEnum instead. "
"_Backend will be removed in a future release."
)
return AttentionBackendEnum[name]


class _Backend(metaclass=_BackendMeta):
"""Deprecated: Use AttentionBackendEnum instead.

This class is provided for backwards compatibility with plugins
and will be removed in a future release.
"""

pass
Loading