Replies: 1 comment
-
|
Short answer: you can’t currently run IDEFICS2-8B end-to-end in TensorRT-LLM, and there is no official converter or runtime support for it yet. You can only use TensorRT-LLM for the decoder LLM part (if you isolate it), but not the full multimodal model. 1. Why IDEFICS2-8B is not supportedIDEFICS2 is not a “plain LLM” like LLaMA or GPT. It is:
TensorRT-LLM currently supports:✔ Decoder-only LLMs (LLaMA, Mistral, GPT-like) TensorRT-LLM does NOT support:❌ Vision encoders So IDEFICS2 is outside the supported graph boundary. 2. What can be done todayYou have 3 realistic options: ✔ Option A: Hybrid deployment (recommended)Split the model: TensorRT-LLM is used only for:
✔ Option B: Run full model outside TRT-LLMUse:
This is the simplest path for IDEFICS2 today. ✔ Option C: Partial TensorRT conversionYou can try:
But you must manually implement:
3. Why TensorRT-LLM does not support it yetThe core issue is:
IDEFICS2 introduces:
These break assumptions like:
4. Is support planned?As of now:
But:
So if support comes, it will likely be:
5. Practical recommendationIf your goal is deployment: Best current architecture:
Why:
6. About contacting the developerI can’t help facilitate direct contact with specific individuals, but:
That’s the correct channel for model support requests and roadmap questions. Bottom line
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.
-
I'm a big fan of @kaiyux's work on TensorRT LLM, Thank you very much Kaiyu! I'm currently trying to figure out How to deploy an API with idefics2-8b, the latest model launched out-performs LLava. Are there any plans to add support for this model anytime soon?
Also Kaiyu, How can I connect with you? I want to chat with you.
Beta Was this translation helpful? Give feedback.
All reactions