Skip to content

Commit 9edd7a8

Browse files
ispobocktarinkk
authored andcommitted
Remove extra contiguous (sgl-project#5953)
1 parent 197d14d commit 9edd7a8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

python/sglang/srt/models/deepseek_v2.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -752,7 +752,7 @@ def forward_absorb(
752752
q_nope_out = q_nope_out.transpose(0, 1)
753753

754754
k_nope = latent_cache[..., : self.kv_lora_rank]
755-
k_nope = self.kv_a_layernorm(k_nope.contiguous()).unsqueeze(1)
755+
k_nope = self.kv_a_layernorm(k_nope).unsqueeze(1)
756756
k_pe = latent_cache[..., self.kv_lora_rank :].unsqueeze(1)
757757

758758
q_pe, k_pe = self.rotary_emb(positions, q_pe, k_pe)

0 commit comments

Comments
 (0)