Skip to content

Commit 438a22f

Browse files
committed
merge main
1 parent 49929cd commit 438a22f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lmdeploy/pytorch/nn/rotary_embedding.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -261,7 +261,8 @@ def update_num_kv_heads(num_key_value_heads: int):
261261
from lmdeploy.pytorch.distributed import get_dist_manager
262262
dist_mgr = get_dist_manager()
263263
dist_ctx = dist_mgr.current_context()
264-
tp = dist_ctx.dist_config.attn_config.tp
264+
tp = dist_ctx.dist_config.attn_tp
265+
# tp = dist_ctx.dist_config.attn_config.tp
265266
if tp > 1:
266267
num_key_value_heads = max(1, num_key_value_heads // tp)
267268
return num_key_value_heads, tp

0 commit comments

Comments
 (0)