mirror of
https://github.com/PaddlePaddle/FastDeploy.git
synced 2025-10-04 16:22:57 +08:00
support w4afp8 EP inference (#3382)
This commit is contained in:
@@ -36,8 +36,8 @@ void w4afp8_gemm_M{M}_N{N}_TAILN{TAILN}_K{K}_B{BATCH}_P{PADDING}_{TYPE}(
|
||||
{cutlass_type} * out,
|
||||
const float *weight_scale,
|
||||
const float *input_row_sum,
|
||||
const int *tokens,
|
||||
const int max_tokens,
|
||||
const int64_t *tokens,
|
||||
const int64_t max_tokens,
|
||||
cudaStream_t stream);
|
||||
"""
|
||||
|
||||
@@ -54,8 +54,8 @@ void w4afp8_gemm_M{M}_N{N}_TAILN{TAILN}_K{K}_B{BATCH}_P{PADDING}_{TYPE}(
|
||||
{cutlass_type} * out,
|
||||
const float *weight_scale,
|
||||
const float *input_row_sum,
|
||||
const int *tokens,
|
||||
const int max_tokens,
|
||||
const int64_t *tokens,
|
||||
const int64_t max_tokens,
|
||||
cudaStream_t stream) {{
|
||||
|
||||
constexpr static int M = {M};
|
||||
@@ -204,4 +204,4 @@ for type in dtype:
|
||||
}"""
|
||||
)
|
||||
|
||||
template_head_file.close()
|
||||
template_head_file.close()
|
||||
|
Reference in New Issue
Block a user