Replies: 1 comment
-
|
Your understanding is mostly correct, but there is an important distinction. From the implementation and documentation, So conceptually the runtime expects something like: rather than taking The If you're simply passing arbitrary embeddings through
If any of those are incorrect, the model will happily run but typically produce nonsensical output, which sounds similar to what you're observing. I also couldn't find much documentation describing the C++ execution path for this API. The release notes only mention that a multimodal embedding field was added to One question that would help narrow this down:
If they're custom embeddings, there may be additional assumptions (positioning, projector, special tokens, etc.) that the runtime does not enforce automatically. If this answer helped or pointed you in the right direction, I'd appreciate it if you could mark it as the accepted answer so it's easier for others with the same issue to find. Also, if you found my contribution useful, I'd appreciate it if you could check out my GitHub profile, follow me, and star any repositories you find interesting. GitHub: https://github.com/Advait251206 |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I'm using this function to try and pass multimodal embeddings: https://github.com/NVIDIA/TensorRT-LLM/blob/release/0.20/tensorrt_llm/llmapi/llm.py#L341
I'm assuming the fusing behaviour to be like here: https://github.com/NVIDIA/TensorRT-LLM/blob/release/0.20/tensorrt_llm/_torch/models/modeling_multimodal_utils.py#L31
Is my thinking accurate? Based on what nonsense my model outputs I assume no. I have not been able to find relevant docs or figure out where the C++ is
Beta Was this translation helpful? Give feedback.
All reactions