[ModelRunner V2] Speculative Decoding NGram GPU Implementations (#40704)
Signed-off-by: PatchouliTaisa <patchychen@tencent.com> Signed-off-by: PatchouliTaisa <pyramkar@gmail.com> Signed-off-by: Nick Hill <nickhill123@gmail.com> Signed-off-by: Xuanan Chen <xuananchenc@nvidia.com> Co-authored-by: PatchouliTaisa <patchychen@tencent.com> Co-authored-by: Nick Hill <nickhill123@gmail.com> Co-authored-by: Xuanan Chen <xuananchenc@nvidia.com> Co-authored-by: Giancarlo Delfin <32987265+TheEpicDolphin@users.noreply.github.com>
This commit is contained in:
co-authored by
PatchouliTaisa
Nick Hill
Xuanan Chen
Giancarlo Delfin
parent
dac35c5b66
commit
819852df6b
@@ -454,8 +454,8 @@ class ElasticEPScalingExecutor:
|
||||
torch.compiler.reset()
|
||||
with set_current_vllm_config(self.worker.vllm_config):
|
||||
reset_compile_wrapper(self.worker.model_runner.get_model())
|
||||
if speculator is not None:
|
||||
reset_compile_wrapper(speculator.model)
|
||||
if draft_model := getattr(speculator, "model", None):
|
||||
reset_compile_wrapper(draft_model)
|
||||
|
||||
gc.collect()
|
||||
torch.accelerator.synchronize()
|
||||
|
||||
Reference in New Issue
Block a user