Unverified Commit a344a5aa authored by Lucia Fang's avatar Lucia Fang Committed by GitHub
Browse files

[bugfix]fix MTP hidden states (#24056)


Signed-off-by: default avatarLu Fang <fanglu@fb.com>
parent 56853702
...@@ -220,6 +220,7 @@ class EagleProposer: ...@@ -220,6 +220,7 @@ class EagleProposer:
) )
if self.method in ("deepseek_mtp", "ernie_mtp"): if self.method in ("deepseek_mtp", "ernie_mtp"):
last_hidden_states = ret_hidden_states last_hidden_states = ret_hidden_states
hidden_states = last_hidden_states
else: else:
last_hidden_states, hidden_states = ret_hidden_states last_hidden_states, hidden_states = ret_hidden_states
sample_hidden_states = last_hidden_states[last_token_indices] sample_hidden_states = last_hidden_states[last_token_indices]
......
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