TensorRT-LLM icon indicating copy to clipboard operation
TensorRT-LLM copied to clipboard

How to build TensorRT engine for a finetuned bert model for sequence classification

Open parikshitsaikia1619 opened this issue 2 years ago • 11 comments

parikshitsaikia1619 avatar Mar 01 '24 11:03 parikshitsaikia1619

Any updates? @parikshitsaikia1619

nasheed-uniphore avatar Mar 07 '24 02:03 nasheed-uniphore

Hi @parikshitsaikia1619 @nasheed-uniphore , can I get more context on what is the main blocker here? Is that due the missing of BERTForSequenceClassification TRT-LLM implementation, or the missing of ways to load real, fine-tuned weights to the model?

It would be great if you can elaborate more on the issue description, thanks

symphonylyh avatar Mar 11 '24 20:03 symphonylyh

So basically models like LLama have a convert_checkpoint.py in their respective examples folder. We were looking for something similar for BERT.

nasheed-uniphore avatar Mar 11 '24 20:03 nasheed-uniphore

got it, yes, internally we have one with real weight loader and will work on releasing it.

symphonylyh avatar Mar 11 '24 21:03 symphonylyh

Awesome, also if the module is on some branch you can point me to it. I could potentially help with getting it out too.

nasheed-uniphore avatar Mar 11 '24 21:03 nasheed-uniphore

@symphonylyh I wrote a custom script that converts fine-tuned Bert and Roberta models for QA and Sequence classification tasks. Should I open a pull request?

parikshitsaikia1619 avatar Mar 12 '24 18:03 parikshitsaikia1619

@symphonylyh I wrote a custom script that converts fine-tuned Bert and Roberta models for QA and Sequence classification tasks. Should I open a pull request?

Could you please share?

bjayakumar avatar May 09 '24 17:05 bjayakumar

Hi @symphonylyh @parikshitsaikia1619 @bjayakumar I want to deploy t5 transformer for sequence classification. Is this not yet supported?

jayakommuru avatar Aug 22 '24 10:08 jayakommuru

Hi @symphonylyh @parikshitsaikia1619 @bjayakumar I want to deploy llama3.1-8b for sequence classification. Is this not yet supported? thanks

fan-niu avatar Sep 19 '24 08:09 fan-niu

@byshiue Does tensorrtllm currently have plans to support llama3.1 sequence classification? Or is there any available branch that supports this feature? Thank you

fan-niu avatar Sep 19 '24 08:09 fan-niu

@parikshitsaikia1619 Do you still have the question? If not, we will close it soon.

hello-11 avatar Nov 15 '24 07:11 hello-11