mirror of
https://github.com/hpcaitech/ColossalAI.git
synced 2025-06-19 12:12:46 +00:00
fix
This commit is contained in:
parent
37e35230ff
commit
10e4f7da72
@ -121,7 +121,8 @@ class ColoAttention:
|
|||||||
)
|
)
|
||||||
|
|
||||||
if size >= MEMORY_BOUND:
|
if size >= MEMORY_BOUND:
|
||||||
ColoAttention._flash_kernel_dispatch = ColoAttention._flash_kernel_dispatch.load()
|
if isinstance(ColoAttention._flash_kernel_dispatch, KernelLoader):
|
||||||
|
ColoAttention._flash_kernel_dispatch = ColoAttention._flash_kernel_dispatch.load()
|
||||||
# lazy load
|
# lazy load
|
||||||
if isinstance(ColoAttention._kernel_dispatch_map[dtype][mask_type], KernelLoader):
|
if isinstance(ColoAttention._kernel_dispatch_map[dtype][mask_type], KernelLoader):
|
||||||
ColoAttention._kernel_dispatch_map[dtype][mask_type] = ColoAttention._kernel_dispatch_map[dtype][
|
ColoAttention._kernel_dispatch_map[dtype][mask_type] = ColoAttention._kernel_dispatch_map[dtype][
|
||||||
|
Loading…
Reference in New Issue
Block a user