Skip to content

Commit 6fbe8d8

Browse files
committed
fix
1 parent 22c5996 commit 6fbe8d8

File tree

2 files changed

+1
-6
lines changed

2 files changed

+1
-6
lines changed

lightllm/utils/envs_utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -234,7 +234,7 @@ def enable_huge_page():
234234
def get_added_mtp_kv_layer_num() -> int:
235235
# mtp 模式下需要在mem manger上扩展draft model使用的layer
236236
added_mtp_layer_num = 0
237-
if get_env_start_args().mtp_mode in ["eagle_with_att"]:
237+
if get_env_start_args().mtp_mode == "eagle_with_att":
238238
added_mtp_layer_num += 1
239239
elif get_env_start_args().mtp_mode == "vanilla_with_att":
240240
added_mtp_layer_num += get_env_start_args().mtp_step

lightllm/utils/log_utils.py

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -115,8 +115,3 @@ def log_time_ready(mark_name, time_count: int):
115115
return True
116116
else:
117117
return False
118-
119-
# print_rank0 use the same as print, but only print on rank 0 in distributed setting
120-
def print_rank0(*args, **kwargs):
121-
if int(os.environ.get("LIGHTLLM_GLOBAL_RANK", "0")) == 0:
122-
print(*args, **kwargs)

0 commit comments

Comments
 (0)