From ab1929f5ff65ed5ca7f1c488009902cb15b29678 Mon Sep 17 00:00:00 2001 From: gaoziyuan <88373061+gzy19990617@users.noreply.github.com> Date: Fri, 5 Sep 2025 11:48:21 +0800 Subject: [PATCH] fix mem boom in ep (#3854) --- fastdeploy/model_executor/layers/utils.py | 8 -------- 1 file changed, 8 deletions(-) diff --git a/fastdeploy/model_executor/layers/utils.py b/fastdeploy/model_executor/layers/utils.py index 18e915715..85de8ec4c 100644 --- a/fastdeploy/model_executor/layers/utils.py +++ b/fastdeploy/model_executor/layers/utils.py @@ -193,14 +193,6 @@ def create_hadamard_matrix(hidden_size: int) -> paddle.Tensor: return hadamard_matrix -create_hadamard_matrix_map = {} -# Zkk: below key are used in 4.5T fp8. -create_hadamard_matrix_map[8192] = create_hadamard_matrix(8192) -create_hadamard_matrix_map[448] = create_hadamard_matrix(448) -create_hadamard_matrix_map[1024] = create_hadamard_matrix(1024) -create_hadamard_matrix_map[3584] = create_hadamard_matrix(3584) - - def ensure_divisibility(numerator, denominator): """ Ensure the numerator is divisible by the denominator.