mirror of
https://github.com/PaddlePaddle/FastDeploy.git
synced 2025-10-05 08:37:06 +08:00
Simplify the Config code (#2770)
* simplify the code * fix vl * delete config * fix * perfect code * fix ci * fix xpu * fix xpu * fix server * resolve conflict * fix mtp * resolve conflict * fix xpu * fix xpu * fix vl * fix log * fix qwen moe * fix qwen moe * fix qwen moe
This commit is contained in:
@@ -36,10 +36,9 @@ def check_tensor_parallel_prerequisites(
|
||||
safetensor_keys: List[str],
|
||||
) -> None:
|
||||
"""check_tensor_parallel_prerequisites"""
|
||||
if fd_config.parallel_config.tensor_parallel_degree > 1:
|
||||
if fd_config.parallel_config.tensor_parallel_size > 1:
|
||||
tensor_parallel_map = cls._get_tensor_parallel_mappings(
|
||||
fd_config.model_config, is_split=True
|
||||
)
|
||||
fd_config.model_config.pretrained_config, is_split=True)
|
||||
if not tensor_parallel_map:
|
||||
logger.error(
|
||||
"filtered_quant_map should not be empty. \
|
||||
|
Reference in New Issue
Block a user