model: prune comments and redundant tests in dsv41 vision CP

This commit is contained in:
Xinyuan Tong
2026-09-23 14:36:01 +08:00
committed by minke.yu
parent b48e2cb1eb
commit 6833498646
4 changed files with 1 additions and 32 deletions
-2
View File
@@ -4922,8 +4922,6 @@ class DeepseekV4ForCausalLM(nn.Module):
self.image_start = nn.Parameter(torch.empty(config.hidden_size))
self.image_end = nn.Parameter(torch.empty(config.hidden_size))
self.image_newline = nn.Parameter(torch.empty(config.hidden_size))
# Ranks of this group run identical image chunks; one owner encodes each
# span and broadcasts it. None keeps the replicated encoder.
self.mm_owner_group = (
select_owner_group(get_parallel())
if self.vision is not None and _is_cuda