Getting Started With Hugging Face in 15 Minutes | Transformers, Pipeline, Tokenizer, Models

Поділитися
Вставка
  • Опубліковано 11 чер 2024
  • Learn how to get started with Hugging Face and the Transformers Library in 15 minutes! Learn all about Pipelines, Models, Tokenizers, PyTorch & TensorFlow integration, and more!
    Get your Free Token for AssemblyAI Speech-To-Text API 👇www.assemblyai.com/?...
    Hugging Face Tutorial
    Hugging Face Crash Course
    Sentiment Analysis, Text Generation, Text Classification
    Resources:
    Website: huggingface.co
    Course: huggingface.co/course
    Finetune: huggingface.co/docs/transform...
    ▬▬▬▬▬▬▬▬▬▬▬▬ CONNECT ▬▬▬▬▬▬▬▬▬▬▬▬
    🖥️ Website: www.assemblyai.com
    🐦 Twitter: / assemblyai
    🦾 Discord: / discord
    ▶️ Subscribe: ua-cam.com/users/AssemblyAI?...
    🔥 We're hiring! Check our open roles: www.assemblyai.com/careers
    ▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬
    Timestamps:
    00:00 Intro
    00:40 Installation
    01:02 Pipeline
    04:37 Tokenizer & Model
    08:32 PyTorch / TensorFlow
    11:07 Save / Load
    11:35 Model Hub
    13:25 Finetune
    HuggingFace Tutorial
    HuggingFace Crash Course
    #MachineLearning #DeepLearning #HuggingFace

КОМЕНТАРІ • 166

  • @yangsung
    @yangsung Рік тому +35

    I love the fact you're smiling like a genuinely happy individual. Good vibes. We need more that in the world.

    • @10xFrontend
      @10xFrontend 3 місяці тому +6

      That is because you cant see the gun behind him....

    • @canyahandle
      @canyahandle 2 місяці тому +1

      @@10xFrontend Cuz he is using Happying Face,,,

  • @clintl326
    @clintl326 Рік тому +11

    Thank you for this introduction! The Finetuning part at the end was a little fast, so I'll be checking out your other videos to learn more. Thanks again.

  • @theonerm2
    @theonerm2 Рік тому +4

    I've been trying to figure this out for days and in the first couple minutes of the video you helped me a lot.

  • @sarapicciau8906
    @sarapicciau8906 2 роки тому +39

    Thank you for this quick tutorial! It's exactly what I was looking for :)

  • @sumowll8903
    @sumowll8903 2 роки тому +19

    This is a very helpful introduction! Thank you so much for putting it up!

  • @erfanshayegani3693
    @erfanshayegani3693 Рік тому +7

    Great and concise explanation! Thank you so much!

  • @joseluisbeltramone599
    @joseluisbeltramone599 Рік тому +3

    Awesome summary / introduction. Thank you so much!

  • @jyim0310
    @jyim0310 3 місяці тому +1

    I like your clear voice, easy explanation and smile.😄

  • @akshpatel1321
    @akshpatel1321 Рік тому +6

    He covered each details for a beginner and its great.

    • @knkn5049
      @knkn5049 4 місяці тому

      I cant invent by myself, how to save history of chat for conversation

  • @umeshkumarasamy6608
    @umeshkumarasamy6608 Місяць тому +1

    Good sir, You have genuinely solved the question that was bugging me for the past two months. I have had no trouble training models using the Huggingface Trainer API but never knew what to do afterwards and the course is extremely ambiguous about this. I am not a very good student generally. You have saved me

  • @kahwatv
    @kahwatv Рік тому +1

    This is awesome. Thanks for the excellent walk through transformers library

  • @bernds.2986
    @bernds.2986 2 роки тому +1

    Very helpful tutorial! Many thanks for it!
    By the way, you speak very clear English and that is extremely helpful for me as a 'non-native speaker' 😊

  • @SebastianSastre
    @SebastianSastre 9 місяців тому +1

    Thanks for making this task more inviting. Now I definitively want to know details on the hot-to do the fine tuning over custom content

  • @sergiofigueiredo1987
    @sergiofigueiredo1987 3 місяці тому

    Simple and straight to the point!

  • @ThomasPrivat
    @ThomasPrivat 10 місяців тому +1

    What an awesome introduction! Thanks a lot mate! 💪

  • @being-awe-some
    @being-awe-some Рік тому

    Thanku so much for putting together important things in an easy way. Waiting for more of such videos from you.

  • @user-ms3nf6tv6h
    @user-ms3nf6tv6h 3 місяці тому

    Thank you so much for the tutorial. It was very helpful. The explanation was precise and concise!

  • @CezarVasconcelos
    @CezarVasconcelos Рік тому +3

    Amazing explanation. Thanks for sharing your knowledge!

  • @ElNachoMacho
    @ElNachoMacho 2 місяці тому

    Exactly what I was looking for. Thank you for sharing!

  • @user-yh4mk4sd8y
    @user-yh4mk4sd8y 8 місяців тому

    It's the best tutorial I've ever see. Thanks!

  • @rayfincle2466
    @rayfincle2466 8 місяців тому +2

    Excellent tutorial. Cannot believe only 3.7k likes for this. I recommend typing the code out in vscode or other and running in parallel while watching the video.

  • @user-jm6pi1en7g
    @user-jm6pi1en7g 7 місяців тому

    Thanks for clearly explained tutorial !

  • @bendev6807
    @bendev6807 Рік тому

    Thank you very much for the very informative video and the great examples.

  • @peterdonnelly1074
    @peterdonnelly1074 8 місяців тому

    This is a superb tutorial. Many thanks.

  • @ykoy1577
    @ykoy1577 Рік тому

    Great lecture. Thank you for sharing your knowledges

  • @juliank7408
    @juliank7408 3 місяці тому

    Thanks! Clear and informative

  • @Amir-ee8mc
    @Amir-ee8mc Рік тому

    Nice summary! Thanks!

  • @harsh9558
    @harsh9558 Рік тому +3

    Awesome tutorial, to the point 🔥
    Thx a lot man!!!!

  • @alternbits
    @alternbits 10 місяців тому

    complete and short. awesome.

  • @maxyang5143
    @maxyang5143 Місяць тому

    Awesome video, thanks so much!

  • @EricSchroeder-cc4hf
    @EricSchroeder-cc4hf 2 місяці тому

    Totally appreciate this, thank you - had to install tensorflow==2.13.0 and kares==2.13.1 - worked great

  • @saibharathwajsaikannan3783
    @saibharathwajsaikannan3783 Рік тому

    This is amazing! Thanks :)

  • @echofloripa
    @echofloripa 10 місяців тому +2

    Thanks for the tutorial!
    In only 1 year we came from 34K models available to almost 300K models, almost 10x increase! 😮

  • @mauroinde
    @mauroinde Рік тому

    thanks for using VSC, it is a better good feeling for me

  • @brillosan08
    @brillosan08 2 роки тому

    really useful intro, thank you!

  • @JoshuaFurman-nd1os
    @JoshuaFurman-nd1os Рік тому +1

    Great explanation, danke!

  • @ferdaozdemir
    @ferdaozdemir 8 місяців тому +1

    This is fantastic I hope you can make more videos covering other pipelines for HuggingFace transformers package.. Many thanks.. 😀

  • @user-dn1uh5zq7u
    @user-dn1uh5zq7u Рік тому

    I love this video, very useful!

  • @TheRealKitWalker
    @TheRealKitWalker 11 місяців тому

    Dude I so love you❤ for making such useful videos😊😊😊

  • @razdingz
    @razdingz Рік тому +1

    love ur vids man

  • @BDEvans
    @BDEvans 6 місяців тому

    This is a brilliant video!!!

  • @vincent_hall
    @vincent_hall Місяць тому

    Great stuff, thank you.

  • @khalidelgazzar
    @khalidelgazzar 11 днів тому

    Very kool. It's on my watch list

  • @WizardOrdinals
    @WizardOrdinals Місяць тому

    Just found you. So grateful

  • @shahab7363
    @shahab7363 7 місяців тому

    great video! Thank you

  • @xade8381
    @xade8381 10 місяців тому +65

    eyebrows are talking in there own language

    • @Anna00722
      @Anna00722 7 місяців тому +1

      😅

    • @violentfox
      @violentfox 6 місяців тому +1

      You mean German?

    • @socialtraffichq5067
      @socialtraffichq5067 4 місяці тому +1

      Actually the eyebrows are communicating and Morse code and the messages I'm being held hostage help me escape exclamation

    • @johnjay2455
      @johnjay2455 4 місяці тому +2

      Hahaha I love UA-cam comments

    • @Paperbutton9
      @Paperbutton9 3 місяці тому

      yeah what the hell going on here

  • @skyforever1000
    @skyforever1000 4 місяці тому +1

    this is way more better than what AWS guys do ...

  • @ahmedelsabagh6990
    @ahmedelsabagh6990 2 місяці тому

    Great video!

  • @manisharya2138
    @manisharya2138 3 місяці тому

    you are eye blinking that's awesome 😊😊

  • @MuhammadKhan-ok3hf
    @MuhammadKhan-ok3hf 11 місяців тому

    outstanding, Thank You

  • @debatradas1597
    @debatradas1597 9 місяців тому +1

    thank you so much

  • @nagibgonzalez5645
    @nagibgonzalez5645 Рік тому +1

    Great video! Do you know how I would be able to view a classification report and confusion matrix of a sentiment analysis pipeline?

  • @_virtualbeings_
    @_virtualbeings_ 11 місяців тому +7

    Still the best intro to HF in my opinion!
    PS: would love to know which theme is used in VS Code, it's great.

  • @matthiasdenhamer3925
    @matthiasdenhamer3925 Рік тому

    Very helpful, thanks!

  • @WizardOrdinals
    @WizardOrdinals Місяць тому

    Just found you. So happy rn LOL

  • @antonioanerao
    @antonioanerao 7 місяців тому

    I'm watching this video in October 2023 and it's so cool to see that now there are 376,348 models

  • @krinodagamer6313
    @krinodagamer6313 Рік тому

    THANK YOU!!!

  • @ChikereEzeh
    @ChikereEzeh 2 місяці тому

    brilliant!!!

  • @metamatt7257
    @metamatt7257 Рік тому +3

    Hey! Thanks for the great tutorial. How can you make the AI remember the full convo, so it remembers the outputs it gave? For example it says my name is Andrew, but then will say that it's name is Anna when asked again
    Sorry if its a dumb question:D

  • @giovanniguerreiro8640
    @giovanniguerreiro8640 3 місяці тому

    Great intro video!

  • @zoyaa9759
    @zoyaa9759 2 місяці тому

    The best explanation

  • @allgoodstufftoknow7000
    @allgoodstufftoknow7000 Рік тому

    greate video! thanks!

  • @naedeezy8967
    @naedeezy8967 3 місяці тому

    Bro gives off good vibes

  • @fernandofrias8322
    @fernandofrias8322 10 місяців тому

    muchas gracias!!!!

  • @stanTrX
    @stanTrX 7 місяців тому

    3:01 i understood up to this point,the first example 🤗

  • @hernandosierra8759
    @hernandosierra8759 4 місяці тому

    Gracias

  • @ajaykryadav
    @ajaykryadav Рік тому

    Too good 👍

  • @JaimeZX
    @JaimeZX 10 місяців тому

    I enjoyed the video but perhaps need a "100-level" one with specific use-cases and how you would plan out your development and configuration to get after that use-case. :)

  • @razdaz5306
    @razdaz5306 Рік тому +1

    Ur best teacher

  • @macaunutritionassociation
    @macaunutritionassociation Рік тому +1

    im running windows on my PC is there any problem downloading Linux and the other codes you described?

  • @knkn5049
    @knkn5049 4 місяці тому +1

    2 questions : i get some warning about "right padding", dk how to fix it.
    I was trying to use conversational pipes but why they are such trash? 50% of times they just repeat, and cant do anything about it.
    Send help.

  • @generichuman_
    @generichuman_ Рік тому

    Do you know how to use the BPE tokenizer and have it keep the spaces? I've tried every combination of parameters imaginable and my transformer always outputs a string with no spaces.

  • @caiyu538
    @caiyu538 Рік тому

    Great. 🎉

  • @daveckw
    @daveckw Рік тому

    for other models, sometimes i get something like below:
    pytorch_model-00001-of-00002.bin
    pytorch_model-00002-of-00002.bin
    How do I make them into safetensor format so it can be loaded into the webui?

  • @Kishimita
    @Kishimita 5 днів тому

    Does the finetuning part still work or do I need to make any changes ?

  • @rkop737
    @rkop737 26 днів тому

    If you do it like you did it, you will need to install tf_keras as well.

  • @ferdaozdemir
    @ferdaozdemir 8 місяців тому

    Hi, I want to use tokenizer along with some other AI models(not decided yet). I have a set of files of text (source code). They are already classified for multiple attributes. Such as file A has x and y true, file b has x true y false.. Regarding that I have two questions. 1- I want to tokenize the file contents but in my case not single words but groups of words (such as groups of 3, 4 tokens) makes sense. So, I want to tokenize in a way to group those sets of words if that is possible. 2- Each file would have different lengths, thus different number of tokens. How can I use these sets of mergedtokens for prediction. I mean what is the best AI technique to use afterwards to prepare a model for prediction?

  • @jbperez808
    @jbperez808 Рік тому

    How do you get VS Code to show the completions (in a python virtual environment)?

  • @meirgoldenberg5638
    @meirgoldenberg5638 11 місяців тому

    Is there a pipeline for translating a text into a dense vector representation?

  • @vanshshah8352
    @vanshshah8352 Рік тому +2

    What a sweet guy. Amazing work

  • @josephpareti9156
    @josephpareti9156 Рік тому

    do you have a repo for the code shown in the video?

  • @haralc
    @haralc Рік тому

    How to do text generation without the pipeline? I'm not sure why everyone everywhere is doing sentence classification.

  • @fahadasif638
    @fahadasif638 5 місяців тому

    your smile is so cute😍😚

  • @yinghaohu8784
    @yinghaohu8784 Рік тому +1

    I like your smile

  • @user-wr4yl7tx3w
    @user-wr4yl7tx3w Рік тому

    How come I didn’t see any labels data used for training or fine tuning in your examples?

  • @satyamm9901
    @satyamm9901 2 місяці тому

    Man such a cherpy guy. I loved your energy. Thanks for the video.

  • @user-bg1ef9xc9v
    @user-bg1ef9xc9v 7 місяців тому

    Can you please help explain what to do if you have a Mac OS and your Jupyter Notebook keeps crashing when you try to import pipeline from transformers? The kernel keeps dying.

  • @rzl1025
    @rzl1025 9 місяців тому

    What is the best natural language model for answering multiple choice questions in mathematics? CHATGPT is not so good at this..

  • @arachnaut2432
    @arachnaut2432 6 місяців тому

    what app did you switch to one minute in?

  • @Shiny_Mewtwo
    @Shiny_Mewtwo 9 місяців тому

    Nice

  • @muralimanoj8748
    @muralimanoj8748 6 місяців тому

    it throws SSL certification error when I do the commands in python. Please help!

  • @mellio19
    @mellio19 2 місяці тому

    what software are you using i love the interface so streamlined i'm using jupyter notebooks

    • @mellio19
      @mellio19 2 місяці тому

      its ok i found it visual studio thanks 🙂

  • @tanusri11a84
    @tanusri11a84 Рік тому

    can i use these transformers for commercial use

  • @rajkumar3433
    @rajkumar3433 9 місяців тому +1

    This should be on hugging face

  • @ashj1165
    @ashj1165 11 місяців тому

    thanks for this video. But towards 11:32 timestamp, why do we save tokenizer as well? Isn't it a static module that we can simply import again?

    • @crassflam8830
      @crassflam8830 10 місяців тому +1

      Tokenizers can be rather complicated; in many cases they're learned/trained; you'd want to save after fine-tuning them (and just to have them offline i reckon)

  • @CodySmiley
    @CodySmiley Рік тому

    Tutorial for peoples already know Transformers, Pipeline, Tokenizer and Models :)

  • @steveopenn
    @steveopenn Рік тому

    Do you run this and visual basics?

  • @meirgoldenberg5638
    @meirgoldenberg5638 11 місяців тому

    It says that no model was supplied and it's using a default model. Did it actually download that default model or used an API to connect to it remotely? If it's the latter, is that free of charge?

  • @aeigreen
    @aeigreen Рік тому

    it took be entire day when i read doc and implement ,, while i sould have learn the same in 15 mins.

  • @Blooper1980
    @Blooper1980 Рік тому

    NOICE!