Skip to content

Commit 463efa3

Browse files
committed
fix tests
Signed-off-by: Izzy Putterman <[email protected]>
1 parent 15fad81 commit 463efa3

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

tensorrt_llm/_torch/pyexecutor/model_engine.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff 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.

tests/unittest/_torch/speculative/test_eagle3.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff 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(

0 commit comments

Comments
 (0)