Skip to content

Explanations about mtmd are needed (critical problem found) #1337

@aropb

Description

@aropb

Description

@SignalRT Thanks a lot for MTMD!

I am trying to use qwen3 VL in multimodal mode for a web application (many sessions). MtmdWeights.ClearMedia() is confusing; It turns out that you need to create MtmdWeights for each user? Is it impossible to use one instance for all users?

I would really like to have one instance of the model!

Adding media to executor:
// without adding to _pendingMedia
using SafeMtmdEmbed embed = MtmdWeights.LoadMedia(memoryStream.ToArray());
executor.Embeds.Add(embed);

embed - It has nothing to do with the model, but just a resource.

Ideally, there should be a SafeMtmdEmbed method:
TokenCount()

Is it possible?
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