Skip to content

Commit eeed7bf

Browse files
committed
polish
Signed-off-by: h-guo18 <67671475+h-guo18@users.noreply.github.com>
1 parent a35a042 commit eeed7bf

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

modelopt/torch/speculative/plugins/megatron_eagle.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -750,8 +750,6 @@ def modify(
750750
with FakeTensorMode():
751751
d2t = torch.load(draft_vocab_cache, mmap=True)
752752
self.eagle_config.draft_vocab_size = d2t.shape[0]
753-
else:
754-
self.eagle_config.draft_vocab_size = self.vocab_size
755753

756754
if self.eagle_config.draft_vocab_size != self.eagle_config.vocab_size:
757755
assert eagle_self_logit_distillation, (

0 commit comments

Comments
 (0)