[Model Runner V2] Acceptance estimation for adaptive verification (#52228)
Signed-off-by: Giancarlo Delfin <gdelfin@inferact.ai>
This commit is contained in:
@@ -2120,6 +2120,10 @@ class GPUModelRunner(LoRAModelRunnerMixin):
|
||||
|
||||
if self.speculator is not None:
|
||||
assert self.sampler is not None
|
||||
if isinstance(self.speculator, DraftModelSpeculator):
|
||||
self.speculator.observe_verification(
|
||||
input_batch.idx_mapping, num_sampled, num_rejected
|
||||
)
|
||||
# Let the target override the hidden state fed to the drafter
|
||||
# (e.g. DeepSeek V4 MTP needs the pre-hc_head residual). The
|
||||
# target returns a persistent buffer sized at max_num_batched_tokens;
|
||||
|
||||
Reference in New Issue
Block a user