mirror of
https://github.com/karpathy/nanochat.git
synced 2026-04-02 05:35:19 +00:00
Add back docstring for clarification
This commit is contained in:
parent
535f664cc2
commit
345935c5f3
|
|
@ -26,6 +26,8 @@ def _load_flash_attention_3():
|
|||
if not torch.cuda.is_available():
|
||||
return None
|
||||
try:
|
||||
# FA3 kernels are currently compiled for Hopper (sm90) and Ampere (sm80/sm86)
|
||||
# Ada (sm89), Blackwell (sm100) need SDPA fallback until FA3 is recompiled
|
||||
from kernels import get_kernel, has_kernel
|
||||
supported = has_kernel(hf_kernel)
|
||||
if not supported:
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user