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.