[Spec] Split init_backends; account draft weights in --mem-fraction-static (#28683)

This commit is contained in:
cctry
2026-06-21 01:22:26 -07:00
committed by GitHub
parent 6d4ca9bc54
commit 9691a29fe0
12 changed files with 148 additions and 99 deletions
+2 -1
View File
@@ -324,7 +324,8 @@ def load_model(server_args, port_args, gpu_id, tp_rank):
else:
model_runner = ModelRunner(**runner_kwargs)
model_runner.alloc_memory_pool()
model_runner.init_backends()
model_runner.init_attention_backends()
model_runner.init_cuda_graphs()
rank_print(f"max_total_num_tokens={model_runner.max_total_num_tokens}")
tokenizer = get_tokenizer(
server_args.tokenizer_path,