Getting Started with AI powered Q&A using Hugging Face Transformers | HuggingFace Tutorial

  Рет қаралды 16,558

Chris Hay

Chris Hay

Күн бұрын

This video gives an introduction into how to use existing pre-trained AI models in your own solutions with your own data. I give an introduction to Hugging Face and their AI Model Hub and how you can use that to test Q&A (question and answer) functionality with your own data. We even pull some random content from the internet and ask questions of that content that the model has never seen before. I then give an introduction to Transfer Learning and BERT (a state of the art Natural Language Processing (NLP) model that powers many AI functionality today).. We look at how BERT works and how it is pre-trained with wikipedia and BookCorpus and why it's advantageous just to use a pre-trained model rather than training your own model. We then look at BERT is then fine tuned on a Stanford Q&A dataset called SQuAD 2.0 so it learns how to answer questions (so that you can use it with your own data).
Finally we code up some of our Q&A routines in Python in Jupyter Notebooks hosted in Google Colab so that you can get an idea on how easy it is to embed pre-trained AI's models in your own solutions with your own data.
00:00 - Intro
01:20 - Hugging Face Model Hub
03:49 - Using a BERT model on HuggingFace
08:49 - Introduction to Transfer Learning
10:12 - Understanding BERT
15:55 - Datasets used to build pre-train BERT (Wikipedia and BookCorpus)
18:41 - Fine Tuning BERT to understand Q&A with SQuAD 2.0
22:24 - Coding our model with HuggingFace Pipelines using Google Colab
29:34 - Coding our model with TensorFlow using Google Colab

Пікірлер: 34
@zhuchencao2527
@zhuchencao2527 2 жыл бұрын
Thx! Although I have been learning transformers for a while now, I still think this video is worth watching.
@chrishayuk
@chrishayuk 2 жыл бұрын
Glad it’s useful
Жыл бұрын
Hey! Thanks for the content. It's really helpful for me. Btw, you can use cmd+shift+v to paste copied content with no formatting 🙌 So no need to paste it to text editor etc and convert it to plain text.
@rafalyp73
@rafalyp73 Жыл бұрын
Mega pro tip: Ctrl+Shift+V pastes plain text.
@MN-fl3hb
@MN-fl3hb 2 жыл бұрын
Great work!
@chrishayuk
@chrishayuk 2 жыл бұрын
thank you
@sirrr.9961
@sirrr.9961 Жыл бұрын
Best tutorial for us noobs so far on the KZbin !
@chrishayuk
@chrishayuk Жыл бұрын
Glad it’s useful
@evegarcianz
@evegarcianz Жыл бұрын
Nice video
@omertaub3198
@omertaub3198 Жыл бұрын
Which model have you used when you wrote the huggingface's pipeline code?
@Twi1ightFr0st
@Twi1ightFr0st 2 жыл бұрын
Hello, have you tried using WASM for ML or DL inferencing especially for NLP? Videos on this topic would be great!
@chrishayuk
@chrishayuk 2 жыл бұрын
it's coming 😀
@srijamukherjee5215
@srijamukherjee5215 2 жыл бұрын
Could you please display the full line of code: answer=tokenizer.convert_tokens_to_string()....the last part is cannot be seen
@hrishikeshparmar
@hrishikeshparmar 7 ай бұрын
which algorithm are you using for qa model?
@binitapriya4976
@binitapriya4976 7 ай бұрын
Hi, is there any way to create a dataset( question and answer format) from a random web scraped data?
@phily8020
@phily8020 11 ай бұрын
Have you come across any that can summarize a whole book in pdf format effortlessly? They all seem limited to a small pdf
@chrishayuk
@chrishayuk 11 ай бұрын
Anthropic Claude has a 100K token limit, so that should work
@abhishekprakash9803
@abhishekprakash9803 2 жыл бұрын
its generate only one line of answers,,,,,,,,suppose we have big text......like we have data visulization text, but when u aksed question like what is data visulization.....its only response in one line , i want more how we do that..
@iva1389
@iva1389 2 жыл бұрын
please attach the code in the future videos, I can't be coding along with every video, and sometimes to have the notes that I can acess later would be great. thanks!
@chrishayuk
@chrishayuk 2 жыл бұрын
great shout, i usually create the code examples and some slide examples when creating the videos. i will start including them soon (and try and back update some of the previous videos with it)
@iva1389
@iva1389 2 жыл бұрын
@@chrishayuk sure, please do, you are covering important and interesting topics. it would be nice to include the code, just for the sake of completion.
@abhishekprakash9803
@abhishekprakash9803 2 жыл бұрын
@@chrishayuk wha is logits here,
@husseinmenkam8350
@husseinmenkam8350 Жыл бұрын
great video sir, but next time please can you out your face in a place out of the code so wile we are trying it we can see what you typed it will be veri good
@chrishayuk
@chrishayuk Жыл бұрын
Will share the code
@testingemailstestingemails4245
@testingemailstestingemails4245 2 жыл бұрын
how to do that trained huggingface model on my own dataset? how i can start ? i don't know the structure of the dataset? help.. very help how I store voice and how to link with its text how to organize that I an looking for any one help me in this planet
@lightyagami6823
@lightyagami6823 Жыл бұрын
i'll help you.I am an AI developer
@taposiahmed9745
@taposiahmed9745 2 жыл бұрын
Hi..is there any way to get answers without adding any content? I want to pull answers from web
@microgamawave
@microgamawave 2 жыл бұрын
Connect it to Wikipedia api
@thebicycleman8062
@thebicycleman8062 Жыл бұрын
dont ever put that kind of music in the background again - makes 0 sense to have that level of intense music with many frequencies that directly clash with your voice - we don't need a WWE hype up song to watch a tutorial about A.I - respect your viewers please
@sathwikmadhusudan5063
@sathwikmadhusudan5063 2 ай бұрын
Chill
@kachrooabhishek
@kachrooabhishek Жыл бұрын
its not practical for production level applications . We cant pass the context every single time to the model and every possible person has failed to handle to show case that problem
@chicopaisagem
@chicopaisagem Жыл бұрын
Very comprehensive!! I am planning of creating a QnA bot using mosaicml/mpt-7b, and I am planning to fine tune it to health and care. Let me know if you would like to exchange some thoughts, thanks 🙂
@chrishayuk
@chrishayuk Жыл бұрын
I literally just released a video on fine tuning on colab, hope it’s useful
@chicopaisagem
@chicopaisagem Жыл бұрын
@@chrishayuk outstanding I will definitely have a look, thanks 👍
Must-have gadget for every toilet! 🤩 #gadget
00:27
GiGaZoom
Рет қаралды 11 МЛН
World’s Deadliest Obstacle Course!
28:25
MrBeast
Рет қаралды 123 МЛН
🌊Насколько Глубокий Океан ? #shorts
00:42
Getting Started with ReAct AI agents work using langchain
43:33
Chris Hay
Рет қаралды 4,1 М.
Applying BERT to Question Answering (SQuAD v1.1)
21:13
ChrisMcCormickAI
Рет қаралды 57 М.
Table Question-Answering with TAPAS in Python
20:21
James Briggs
Рет қаралды 11 М.
HuggingFace Crash Course - Sentiment Analysis, Model Hub, Fine Tuning
38:12
Generative AI in a Nutshell - how to survive and thrive in the age of AI
17:57
Getting Started with OLLAMA - the docker of ai!!!
18:19
Chris Hay
Рет қаралды 10 М.
How charged your battery?
0:14
V.A. show / Магика
Рет қаралды 7 МЛН
Hisense Official Flagship Store Hisense is the champion What is going on?
0:11
Special Effects Funny 44
Рет қаралды 1,4 МЛН
Хотела заскамить на Айфон!😱📱(@gertieinar)
0:21
Взрывная История
Рет қаралды 3,7 МЛН
APPLE совершила РЕВОЛЮЦИЮ!
0:39
ÉЖИ АКСЁНОВ
Рет қаралды 3,7 МЛН