File size: 2,792 Bytes
901795c
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
# -*- coding: utf-8 -*-

# from .abc import chunk_abc
# from .attn import parallel_attn
# from .based import fused_chunk_based, parallel_based
# from .comba import chunk_comba, fused_recurrent_comba
# from .delta_rule import chunk_delta_rule, fused_chunk_delta_rule, fused_recurrent_delta_rule
# from .forgetting_attn import parallel_forgetting_attn
# from .gated_delta_rule import chunk_gated_delta_rule, fused_recurrent_gated_delta_rule
# from .generalized_delta_rule import (
#     chunk_dplr_delta_rule,
#     chunk_iplr_delta_rule,
#     fused_recurrent_dplr_delta_rule,
#     fused_recurrent_iplr_delta_rule
# )
# from .gla import chunk_gla, fused_chunk_gla, fused_recurrent_gla
# from .gsa import chunk_gsa, fused_recurrent_gsa
# from .hgrn import fused_recurrent_hgrn
# from .lightning_attn import chunk_lightning_attn, fused_recurrent_lightning_attn
# from .linear_attn import chunk_linear_attn, fused_chunk_linear_attn, fused_recurrent_linear_attn
# from .log_linear_attn import chunk_log_linear_attn
# from .mesa_net import chunk_mesa_net
# from .nsa import parallel_nsa
# from .path_attn import parallel_path_attn
# from .retention import chunk_retention, fused_chunk_retention, fused_recurrent_retention, parallel_retention
# from .rwkv6 import chunk_rwkv6, fused_recurrent_rwkv6
# from .rwkv7 import chunk_rwkv7, fused_recurrent_rwkv7
# from .simple_gla import chunk_simple_gla, fused_chunk_simple_gla, fused_recurrent_simple_gla, parallel_simple_gla
from .mask_gated_delta_rule_t import mask_gated_chunk_delta_rule,mask_fused_recurrent_gated_delta_rule

# __all__ = [
#     'chunk_abc',
#     'parallel_attn',
#     'fused_chunk_based', 'parallel_based',
#     'chunk_delta_rule', 'fused_chunk_delta_rule', 'fused_recurrent_delta_rule',
#     'parallel_forgetting_attn',
#     'chunk_gated_delta_rule', 'fused_recurrent_gated_delta_rule',
#     'chunk_comba', 'fused_recurrent_comba',
#     'chunk_dplr_delta_rule', 'chunk_iplr_delta_rule',
#     'fused_recurrent_dplr_delta_rule', 'fused_recurrent_iplr_delta_rule',
#     'chunk_gla', 'fused_chunk_gla', 'fused_recurrent_gla',
#     'chunk_gsa', 'fused_recurrent_gsa',
#     'fused_recurrent_hgrn',
#     'chunk_lightning_attn', 'fused_recurrent_lightning_attn',
#     'chunk_linear_attn', 'fused_chunk_linear_attn', 'fused_recurrent_linear_attn',
#     'chunk_log_linear_attn',
#     'chunk_mesa_net',
#     'parallel_nsa',
#     'parallel_path_attn',
#     'chunk_retention', 'fused_chunk_retention', 'fused_recurrent_retention', 'parallel_retention',
#     'chunk_rwkv6', 'fused_recurrent_rwkv6',
#     'chunk_rwkv7', 'fused_recurrent_rwkv7',
#     'chunk_simple_gla', 'fused_chunk_simple_gla', 'fused_recurrent_simple_gla', 'parallel_simple_gla',
#     'mask_gated_chunk_delta_rule','mask_fused_recurrent_delta_rule',
# ]