Commit ba29eebb authored by lizhigong's avatar lizhigong
Browse files

fix self.drafter error

parent 2fe2d237
...@@ -38,8 +38,9 @@ class V1ZeroModelRunner(GPUModelRunner): ...@@ -38,8 +38,9 @@ class V1ZeroModelRunner(GPUModelRunner):
self.last_draft_event = torch.cuda.Event(enable_timing=False) self.last_draft_event = torch.cuda.Event(enable_timing=False)
self.spec_sampler_event = torch.cuda.Event(enable_timing=False) self.spec_sampler_event = torch.cuda.Event(enable_timing=False)
self.spec_scheduler_max_num_tokens = 0 self.spec_scheduler_max_num_tokens = 0
self.drafter = V1ZeroEagleProposer(self.vllm_config, self.device, if hasattr(self, 'drafter') and isinstance(self.drafter, EagleProposer):
self) self.drafter = V1ZeroEagleProposer(self.vllm_config, self.device,
self)
def _prepare_inputs( def _prepare_inputs(
self, self,
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment