|
5 | 5 | # For a list of all contributors, visit: |
6 | 6 | # https://github.com/fla-org/flash-linear-attention/graphs/contributors |
7 | 7 |
|
8 | | -from .abc import chunk_abc |
9 | | -from .attn import parallel_attn |
10 | | -from .attnres import fused_attnres |
11 | | -from .based import fused_chunk_based, parallel_based |
12 | | -from .comba import chunk_comba, fused_recurrent_comba |
13 | | -from .delta_rule import chunk_delta_rule, fused_chunk_delta_rule, fused_recurrent_delta_rule |
14 | | -from .forgetting_attn import parallel_forgetting_attn |
15 | | -from .gated_delta_rule import chunk_gated_delta_rule, chunk_gdn, fused_recurrent_gated_delta_rule, fused_recurrent_gdn |
16 | | -from .generalized_delta_rule import ( |
17 | | - chunk_dplr_delta_rule, |
18 | | - chunk_iplr_delta_rule, |
19 | | - fused_recurrent_dplr_delta_rule, |
20 | | - fused_recurrent_iplr_delta_rule, |
21 | | -) |
22 | | -from .gla import chunk_gla, fused_chunk_gla, fused_recurrent_gla |
23 | | -from .gsa import chunk_gsa, fused_recurrent_gsa |
24 | | -from .hgrn import fused_recurrent_hgrn |
25 | | -from .kda import chunk_kda, fused_recurrent_kda |
26 | | -from .lightning_attn import chunk_lightning_attn, fused_recurrent_lightning_attn |
27 | | -from .linear_attn import chunk_linear_attn, fused_chunk_linear_attn, fused_recurrent_linear_attn |
28 | | -from .log_linear_attn import chunk_log_linear_attn |
29 | | -from .mesa_net import chunk_mesa_net |
30 | | -from .nsa import parallel_nsa |
31 | | -from .parallax import parallel_parallax |
32 | | -from .path_attn import parallel_path_attn |
33 | | -from .retention import chunk_retention, fused_chunk_retention, fused_recurrent_retention, parallel_retention |
34 | | -from .rwkv6 import chunk_rwkv6, fused_recurrent_rwkv6 |
35 | | -from .rwkv7 import chunk_rwkv7, fused_recurrent_rwkv7 |
36 | | -from .simple_gla import chunk_simple_gla, fused_chunk_simple_gla, fused_recurrent_simple_gla, parallel_simple_gla |
37 | | -from .wall_attn import parallel_wall_attn, parallel_wall_attn_decode |
| 8 | +from fla.ops import cp, kda, utils |
38 | 9 |
|
39 | | -__all__ = [ |
40 | | - 'chunk_abc', |
41 | | - 'chunk_comba', |
42 | | - 'chunk_delta_rule', |
43 | | - 'chunk_dplr_delta_rule', |
44 | | - 'chunk_gated_delta_rule', |
45 | | - 'chunk_gdn', |
46 | | - 'chunk_gla', |
47 | | - 'chunk_gsa', |
48 | | - 'chunk_iplr_delta_rule', |
49 | | - 'chunk_kda', |
50 | | - 'chunk_lightning_attn', |
51 | | - 'chunk_linear_attn', |
52 | | - 'chunk_log_linear_attn', |
53 | | - 'chunk_mesa_net', |
54 | | - 'chunk_retention', |
55 | | - 'chunk_rwkv6', |
56 | | - 'chunk_rwkv7', |
57 | | - 'chunk_simple_gla', |
58 | | - 'fused_attnres', |
59 | | - 'fused_chunk_based', |
60 | | - 'fused_chunk_delta_rule', |
61 | | - 'fused_chunk_gla', |
62 | | - 'fused_chunk_linear_attn', |
63 | | - 'fused_chunk_retention', |
64 | | - 'fused_chunk_simple_gla', |
65 | | - 'fused_recurrent_comba', |
66 | | - 'fused_recurrent_delta_rule', |
67 | | - 'fused_recurrent_dplr_delta_rule', |
68 | | - 'fused_recurrent_gated_delta_rule', |
69 | | - 'fused_recurrent_gdn', |
70 | | - 'fused_recurrent_gla', |
71 | | - 'fused_recurrent_gsa', |
72 | | - 'fused_recurrent_hgrn', |
73 | | - 'fused_recurrent_iplr_delta_rule', |
74 | | - 'fused_recurrent_kda', |
75 | | - 'fused_recurrent_lightning_attn', |
76 | | - 'fused_recurrent_linear_attn', |
77 | | - 'fused_recurrent_retention', |
78 | | - 'fused_recurrent_rwkv6', |
79 | | - 'fused_recurrent_rwkv7', |
80 | | - 'fused_recurrent_simple_gla', |
81 | | - 'parallel_attn', |
82 | | - 'parallel_based', |
83 | | - 'parallel_forgetting_attn', |
84 | | - 'parallel_nsa', |
85 | | - 'parallel_parallax', |
86 | | - 'parallel_path_attn', |
87 | | - 'parallel_retention', |
88 | | - 'parallel_simple_gla', |
89 | | - 'parallel_wall_attn', |
90 | | - 'parallel_wall_attn_decode', |
91 | | -] |
| 10 | +__all__ = ["cp", "kda", "utils"] |
0 commit comments