Skip to content

Conversation

@tomasruizt
Copy link
Contributor

@tomasruizt tomasruizt commented Sep 26, 2025

I'm trying to understand how prepare_inputs() works.

  • prepare_inputs_padded() states that it updates common_attn_metadata. However, the code seems rather to make a copy only.
  • I introduced assertions checking that all content is the same, and even make the method return the unmodified common_attn_metadata. Its has no negative impact.
  • I run pytest tests/v1/spec_decode/test_eagle.py all tests pass (some are skipped).
=== 29 passed, 20 skipped, 2 warnings in 44.02s ===
  • I run pytest tests/v1/e2e/test_spec_decode.py -k test_eagle_correctness -s, all tests pass (some are skipped).
image

Am I missing something? If not this is an opportunity to simplify the prepare_inputs_padded() method.

Signed-off-by: Tomas Ruiz <tomas.ruiz.te@gmail.com>
Signed-off-by: Tomas Ruiz <tomas.ruiz.te@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

1 participant