Тёмный

Deploy with FastAPI | | Sentiment Analysis with BERT using huggingface, PyTorch and Python Tutorial 

Venelin Valkov
Подписаться 25 тыс.
Просмотров 15 тыс.
50% 1

🗓️ 1:1 Consultation Session With Me: calendly.com/venelin-valkov/c...
📖 Get SH*T Done with PyTorch Book: bit.ly/gtd-with-pytorch
🔔 Subscribe: bit.ly/venelin-subscribe
📔 Complete tutorial + notebook: www.curiousily.com/posts/depl...
🔣 GitHub: github.com/curiousily/Getting...
Learn how to deploy a pre-trained BERT model as a REST API using FastAPI and Uvicorn
📖 Read Hacker's Guide to Machine Learning with Python Book: bit.ly/Hackers-Guide-to-Machin...
Full project on GitHub: github.com/curiousily/Deploy-...
⭐️ Tutorial Contents ⭐️
(00:00) Demo of the REST API
(02:20) Initialize a new project with pyenv and pipenv
(07:55) Create a stubbed API response
(17:30) Add the pre-trained BERT model to our project
(19:35) Reacting to a 4.5 (on the Richter scale) earthquake 🙀
(30:05) Integrate our model predictions in the REST API
#BERT #RestAPI #FastAPI #Deployment #ML #MachineLearning #Huggingface #Transformer #PyTorch #TransferLearning #SentimentAnalysis #NLP #FineTuning #DeepLearning

Наука

Опубликовано:

 

1 авг 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 30   
@bankingitaspirant1405
@bankingitaspirant1405 4 года назад
I'm glad to have found this channel. I am new to this stuff, but I am learning quickly. Your PyTorch book is awesome! It brought me here. It is the reason I googled your name and found this channel. Thank you man, you are a great help for new aspirants like me.
@shreyanambiar5073
@shreyanambiar5073 2 года назад
I love this channel so much! keep up the good work :)
@venkatesanr9455
@venkatesanr9455 4 года назад
Waiting as usual it is going to be highly informative
@shaheerzaman620
@shaheerzaman620 4 года назад
Fantastic! Smooth and Easy!
@buithanhlam3726
@buithanhlam3726 3 года назад
Great! This is exactly what I'm looking for!
@fuat7775
@fuat7775 4 года назад
Awesome content, thank you!
@evandrojosedossantosdiniz3046
@evandrojosedossantosdiniz3046 2 года назад
Thanks! Fantastic!
@BerkayBerkman
@BerkayBerkman 4 года назад
Venelin, you made my day with your cool reaction to the earthquake :D :D
@MO-xi1kv
@MO-xi1kv 4 года назад
ahah same had to have a rewatch!
@sudharsan4040
@sudharsan4040 4 года назад
Thanks for the awesome video. Can't we using hugging face pipelines for inference rather so much code? Could you please share your suggestions on inference with a custom NER model.
@every_instant
@every_instant 4 года назад
Thanks for the vids. How do we output attentions score for each of the user input word?
@mateusfmf994
@mateusfmf994 Год назад
Thanks for the video! how can i do this for a model with four labels in the predict data ( I'm trying but I didn't succeed)
@arronslacey
@arronslacey 3 года назад
Hi - the pretrained model link no longer exists. Do you have a newer link?
@vivekg8667
@vivekg8667 4 года назад
How to deploy intent classifier model with fast API
@dhyanpatel4680
@dhyanpatel4680 Год назад
How did you get the model on your google drive and make it downloadable?
@TOpCoder100
@TOpCoder100 4 года назад
Hello, can you make a tutorial on deploying this model on the cloud, plz? Azure | AWS | GCP?
@clivefernandes5435
@clivefernandes5435 4 года назад
Hey I was wondering what will be the cost of the of deploying this model ?
@DistortedV12
@DistortedV12 3 года назад
Does this integrate with kubernetes or docker?
@slimenbouras3184
@slimenbouras3184 4 года назад
Great vidéo
@venelin_valkov
@venelin_valkov 4 года назад
The forward method of BertModel can return the hidden states (or just the last hidden state): huggingface.co/transformers/model_doc/bert.html#transformers.BertModel.forward You can apply your pooling strategy on top of that. Here are some you might want to implement: github.com/hanxiao/bert-as-service#q-what-are-the-available-pooling-strategies Best layer? I doubt there is such a thing (would be great if I am wrong, though). I look at this as another hyperparameter - you need to try a lot of values/strategies.
@shyampatadia649
@shyampatadia649 3 года назад
Hello, Great explanation, I had one doubt, can you explain the variable confidence?
@0730pleomax
@0730pleomax 3 года назад
the highest probability from the predicted class
@vivekg8667
@vivekg8667 4 года назад
Can we use intent classification model for this fast API
@venelin_valkov
@venelin_valkov 4 года назад
You can use FastAPI and the intent classification BERT model together, yes. Thanks for watching!
@kabirnarayanjha
@kabirnarayanjha 3 года назад
Can I deploy this code on heroku?
@keemkorn
@keemkorn 4 месяца назад
nah
@yagelardan8504
@yagelardan8504 4 года назад
Can you please make more tf2 videos? Ps love your content
@venelin_valkov
@venelin_valkov 4 года назад
I'll do some videos on TensorFlow.js soon. Other than that, I am not making any promises. Thanks for the kind words!
@yofootball746
@yofootball746 4 года назад
Damn that earthquake !!!!
@FaizanShaikh-zg9to
@FaizanShaikh-zg9to 3 года назад
19:35 earthquake
Далее
Pydantic Tutorial • Solving Python's Biggest Problem
11:07
This is why Deep Learning is really weird.
2:06:38
Просмотров 376 тыс.
Create A Python API in 12 Minutes
12:05
Просмотров 599 тыс.
Let's build GPT: from scratch, in code, spelled out.
1:56:20
НЕ БЕРУ APPLE VISION PRO!
0:37
Просмотров 374 тыс.