Skip to content

Conversation

@mohiso22
Copy link
Contributor

No description provided.

if x.startswith("past_") or x.endswith("_RetainedState")
]
)

Copy link

@quic-xiyushi quic-xiyushi Oct 20, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shouldn't we skip vision embedding buffers after the prefill stage? Otherwise, those large inputs will dramatically increase the decode time. I suggested to Chulhee that he add the following lines here:

Suggested change
if not_mllama:
lang_session.skip_buffers(vision_outputs.keys())

And with this change, he was able to increase the decode rate from 13 t/s to 20 t/s.

Could you incorporate this change into the PR, and possibly apply a similar update to the kv_offload_generate function as well? Thank you!

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @quic-xiyushi, This is resolved, I have pushed the changes, pls check.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants