[Misc] Add float16 to CacheDType (#37199)

Signed-off-by: Matthew Bonanni <mbonanni@redhat.com>
This commit is contained in:
Matthew Bonanni
2026-03-16 13:24:48 -07:00
committed by GitHub
parent 2cc26c3a99
commit 93f3c8e531
19 changed files with 55 additions and 22 deletions
+5 -1
View File
@@ -51,7 +51,11 @@ class AttentionBackend(ABC):
# makes sure the output tensor is allocated inside the cudagraph.
accept_output_buffer: bool = False
supported_dtypes: ClassVar[list[torch.dtype]] = [torch.float16, torch.bfloat16]
supported_kv_cache_dtypes: ClassVar[list["CacheDType"]] = ["auto", "bfloat16"]
supported_kv_cache_dtypes: ClassVar[list["CacheDType"]] = [
"auto",
"float16",
"bfloat16",
]
# Does attention's forward() include kv cache update?
forward_includes_kv_cache_update: bool = True