liangsu9988 commited on
Commit
118193f
·
1 Parent(s): 3cb6c08

Document v1 API scope and v2 compatibility plan

Browse files
Files changed (2) hide show
  1. CARD.md +32 -1
  2. README.md +32 -1
CARD.md CHANGED
@@ -33,7 +33,12 @@ msa = get_kernel(
33
  )
34
  ```
35
 
36
- ## Functions
 
 
 
 
 
37
 
38
  ### `has_native_ops() -> bool`
39
 
@@ -97,6 +102,32 @@ These are provided for local correctness checks:
97
  - `naive_flash_decode_with_topk_idx(...)`
98
  - `naive_flash_decode_with_gqa_share_sparse(...)`
99
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
100
  ## Minimal Decode Example
101
 
102
  ```python
 
33
  )
34
  ```
35
 
36
+ ## Current v1 Functions
37
+
38
+ This v1 Blackwell package intentionally exposes the subset that has already
39
+ been ported and validated on FlashRT's MiniMax-Spark decode path. It is not yet
40
+ a drop-in mirror of every public function exported by the upstream
41
+ [`MiniMaxAI/msa`](https://huggingface.co/kernels/MiniMaxAI/msa) SM100 package.
42
 
43
  ### `has_native_ops() -> bool`
44
 
 
102
  - `naive_flash_decode_with_topk_idx(...)`
103
  - `naive_flash_decode_with_gqa_share_sparse(...)`
104
 
105
+ ## Upstream API Compatibility Plan
106
+
107
+ The upstream `MiniMaxAI/msa` package currently exposes a broader SM100 API
108
+ surface:
109
+
110
+ - `sparse_atten_func`
111
+ - `sparse_atten_nvfp4_kv_func`
112
+ - `sparse_decode_atten_func`
113
+ - `SparseDecodePagedAttentionWrapper`
114
+ - `fp4_indexer_block_scores`
115
+ - `build_k2q_csr`
116
+ - `SparseK2qCsrBuilderSm100`
117
+ - `Nvfp4QuantizedTensor`
118
+ - `quantize_bf16_to_nvfp4_128x4`
119
+ - `quantize_kv_bf16_to_nvfp4_128x4`
120
+ - `dequantize_nvfp4_128x4_to_bf16`
121
+ - `swizzle_nvfp4_scale_to_128x4`
122
+ - `nvfp4_global_scale_from_amax`
123
+
124
+ Those names are not advertised as available in this v1 package unless they are
125
+ listed in the previous section. The v2 goal is to add a compatibility layer for
126
+ the official MiniMaxAI API names where the Blackwell implementation is ready,
127
+ starting with the decode path (`sparse_decode_atten_func` and
128
+ `SparseDecodePagedAttentionWrapper`), then expanding to indexing/CSR and NVFP4
129
+ helpers after separate correctness validation.
130
+
131
  ## Minimal Decode Example
132
 
133
  ```python
README.md CHANGED
@@ -33,7 +33,12 @@ msa = get_kernel(
33
  )
34
  ```
35
 
36
- ## Functions
 
 
 
 
 
37
 
38
  ### `has_native_ops() -> bool`
39
 
@@ -97,6 +102,32 @@ These are provided for local correctness checks:
97
  - `naive_flash_decode_with_topk_idx(...)`
98
  - `naive_flash_decode_with_gqa_share_sparse(...)`
99
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
100
  ## Minimal Decode Example
101
 
102
  ```python
 
33
  )
34
  ```
35
 
36
+ ## Current v1 Functions
37
+
38
+ This v1 Blackwell package intentionally exposes the subset that has already
39
+ been ported and validated on FlashRT's MiniMax-Spark decode path. It is not yet
40
+ a drop-in mirror of every public function exported by the upstream
41
+ [`MiniMaxAI/msa`](https://huggingface.co/kernels/MiniMaxAI/msa) SM100 package.
42
 
43
  ### `has_native_ops() -> bool`
44
 
 
102
  - `naive_flash_decode_with_topk_idx(...)`
103
  - `naive_flash_decode_with_gqa_share_sparse(...)`
104
 
105
+ ## Upstream API Compatibility Plan
106
+
107
+ The upstream `MiniMaxAI/msa` package currently exposes a broader SM100 API
108
+ surface:
109
+
110
+ - `sparse_atten_func`
111
+ - `sparse_atten_nvfp4_kv_func`
112
+ - `sparse_decode_atten_func`
113
+ - `SparseDecodePagedAttentionWrapper`
114
+ - `fp4_indexer_block_scores`
115
+ - `build_k2q_csr`
116
+ - `SparseK2qCsrBuilderSm100`
117
+ - `Nvfp4QuantizedTensor`
118
+ - `quantize_bf16_to_nvfp4_128x4`
119
+ - `quantize_kv_bf16_to_nvfp4_128x4`
120
+ - `dequantize_nvfp4_128x4_to_bf16`
121
+ - `swizzle_nvfp4_scale_to_128x4`
122
+ - `nvfp4_global_scale_from_amax`
123
+
124
+ Those names are not advertised as available in this v1 package unless they are
125
+ listed in the previous section. The v2 goal is to add a compatibility layer for
126
+ the official MiniMaxAI API names where the Blackwell implementation is ready,
127
+ starting with the decode path (`sparse_decode_atten_func` and
128
+ `SparseDecodePagedAttentionWrapper`), then expanding to indexing/CSR and NVFP4
129
+ helpers after separate correctness validation.
130
+
131
  ## Minimal Decode Example
132
 
133
  ```python