File tree Expand file tree Collapse file tree 2 files changed +4
-0
lines changed
tensorrt_llm/_torch/pyexecutor
tests/unittest/_torch/speculative Expand file tree Collapse file tree 2 files changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -1021,6 +1021,9 @@ def init_meta_tensor(t: torch.Tensor):
10211021
10221022 elif load_format == LoadFormat .DUMMY :
10231023 initialize_dummy_weights (model )
1024+ if self .spec_config is not None and self .spec_config .spec_dec_mode .need_load_draft_weights (
1025+ ):
1026+ model .draft_model .load_weights_from_target_model (model )
10241027
10251028 elif load_format == LoadFormat .VISION_ONLY :
10261029 # Vision weights are already loaded within the model.
Original file line number Diff line number Diff line change @@ -305,6 +305,7 @@ def test_multi_eagle3(use_one_model: bool):
305305 max_batch_size = max_batch_size ,
306306 kv_cache_config = kv_cache_config ,
307307 enable_chunked_prefill = enable_chunked_prefill ,
308+ load_format = "dummy" ,
308309 )
309310
310311 spec_config = EagleDecodingConfig (
You can’t perform that action at this time.
0 commit comments