Kernels
adarshxs HF Staff commited on
Commit
94db4e0
·
verified ·
1 Parent(s): 7fe2a6f

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +2 -2
README.md CHANGED
@@ -19,7 +19,7 @@ pip install kernels
19
  ```python
20
  from kernels import get_kernel
21
 
22
- fa3 = get_kernel("kernels-community/sgl-flash-attn3", revision="V1")
23
 
24
  fa3.flash_attn_varlen_func(q, k, v, cu_seqlens_q, cu_seqlens_k, causal=True)
25
  fa3.flash_attn_with_kvcache(q, k_cache, v_cache, cache_seqlens=cache_seqlens, causal=True)
@@ -39,7 +39,7 @@ from sgl_kernel.flash_attn import flash_attn_with_kvcache as flash_attn_with_kvc
39
  Replace with:
40
  ```python
41
  from kernels import get_kernel
42
- _fa3_mod = get_kernel("kernels-community/sgl-flash-attn3", revision="V1")
43
  flash_attn_varlen_func_fa3 = _fa3_mod.flash_attn_varlen_func
44
  flash_attn_with_kvcache_fa3 = _fa3_mod.flash_attn_with_kvcache
45
  ```
 
19
  ```python
20
  from kernels import get_kernel
21
 
22
+ fa3 = get_kernel("kernels-community/sgl-flash-attn3", revision="v1")
23
 
24
  fa3.flash_attn_varlen_func(q, k, v, cu_seqlens_q, cu_seqlens_k, causal=True)
25
  fa3.flash_attn_with_kvcache(q, k_cache, v_cache, cache_seqlens=cache_seqlens, causal=True)
 
39
  Replace with:
40
  ```python
41
  from kernels import get_kernel
42
+ _fa3_mod = get_kernel("kernels-community/sgl-flash-attn3", revision="v1")
43
  flash_attn_varlen_func_fa3 = _fa3_mod.flash_attn_varlen_func
44
  flash_attn_with_kvcache_fa3 = _fa3_mod.flash_attn_with_kvcache
45
  ```