Skip to content

support of model preloading for multiple inferences #18

@CA-TT-AC

Description

@CA-TT-AC

I've been working with your ChartVLM model and noticed that the current implementation loads the model before each inference call. This appears to be inefficient for my use case where I need to perform multiple inferences.

Looking at the code in ChartVLM.py, each time infer_ChartVLM() is called, it seems to reload the adapter and decoders. I'm wondering if you have an alternative implementation to load the model components once and reuse them for multiple inferences?

This would significantly improve performance for batch processing scenarios.

Thank you for your time and for sharing this excellent work.

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