Skip to content

Question about streaming design and implementation #3

@winke88

Description

@winke88

Dear authors, thanks for your wonderful work!

I have a question about your streaming inference design and implementation. I notice that in inference.py, you implement the streaming inference similar to multi-turn conversation, which waits for user's response text, update the kv cache (keep recent text and vision tokens) and process the next video chunk.

However, from my perspective in a real world setting, video streams should be continually processed to meet the real-time requirements, and it may not be proper to wait for user's response and this will block the process of video streams. I admit that encoding user's responses as historical information will be beneficial for video understanding, is there any method that can do this in an asynchronous way?

Can you elaborate it with your design? Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions