mirror of
https://github.com/deepseek-ai/DeepSeek-V3.git
synced 2025-05-06 10:28:57 -04:00
mask标记声明
This commit is contained in:
parent
ee4c4ea32b
commit
7117f260e9
@ -115,6 +115,7 @@ class ParallelEmbedding(nn.Module):
|
||||
Raises:
|
||||
ValueError: If `world_size` is not defined.
|
||||
"""
|
||||
mask = torch.empty()
|
||||
if world_size > 1:
|
||||
mask = (x < self.vocab_start_idx) | (x >= self.vocab_end_idx)
|
||||
x = x - self.vocab_start_idx
|
||||
|
Loading…
Reference in New Issue
Block a user