serve icon indicating copy to clipboard operation
serve copied to clipboard

Add examples for HuggingFace models

Open adityabindal opened this issue 6 years ago • 5 comments

Create examples or tutorials to show how to deploy HuggingFace PyTorch models with TorchServe

adityabindal avatar Mar 09 '20 16:03 adityabindal

I put together a blog post to showcase how to write custom handler code for a simple huggingface BERT sentence classifier: https://medium.com/@freidankm_39840/deploy-huggingface-s-bert-to-production-with-pytorch-serve-27b068026d18

Let me know if I can be of any help in putting together an example or some documentation around this topic.

MFreidank avatar Apr 25 '20 21:04 MFreidank

Added by PR #302

chauhang avatar May 31 '20 18:05 chauhang

Hi - I wrote a custom model handler for serving a Hugging Face transformers T5 model for text generation. I did not find any existing examples that worked due to some slight differences between T5 and other transformers in the library. Where would be the best place to contribute this model handler example? Thanks and apologies if this is not the right place for this question.

ehutt avatar Feb 02 '22 23:02 ehutt

@ehutt

Hi - I wrote a custom model handler for serving a Hugging Face transformers T5 model for text generation. I did not find any existing examples that worked due to some slight differences between T5 and other transformers in the library. Where would be the best place to contribute this model handler example? Thanks and apologies if this is not the right place for this question.

Hi, Could you kindly share you code for serving a hugging face T5 model?

ekaterinatretyak avatar May 16 '22 16:05 ekaterinatretyak

ehutt

Ehutt, Can you share the code here?

ndvbd avatar Jan 29 '23 19:01 ndvbd