Opt tp: tp attn support tp reduce scattered input (#10568)

This commit is contained in:
Yongfei Xu
2025-11-15 02:08:12 -08:00
committed by GitHub
parent 4a10e37ba7
commit d91b16eb16
7 changed files with 275 additions and 36 deletions
+6
View File
@@ -524,6 +524,7 @@ class ServerArgs:
numa_node: Optional[List[int]] = None
enable_deterministic_inference: bool = False
rl_on_policy_target: Optional[str] = None
enable_attn_tp_input_scattered: bool = False
# Dynamic batch tokenizer
enable_dynamic_batch_tokenizer: bool = False
@@ -3481,6 +3482,11 @@ class ServerArgs:
choices=RL_ON_POLICY_TARGET_CHOICES,
help="The training system that SGLang needs to match for true on-policy.",
)
parser.add_argument(
"--enable-attn-tp-input-scattered",
action="store_true",
help="Allow input of attention to be scattered when only using tensor parallelism, to reduce the computational load of operations such as qkv latent.",
)
# Dynamic batch tokenizer
parser.add_argument(