[Spec] Redo: split init_backends; account draft weights in --mem-fraction-static (#28855)

Co-authored-by: cctry <cctry@fb.com>
This commit is contained in:
cctry
2026-06-21 20:45:16 -07:00
committed by GitHub
co-authored by cctry
parent fd7874d11b
commit 0c065671c9
18 changed files with 167 additions and 106 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,