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

แชร์
ฝัง
  • เผยแพร่เมื่อ 15 มิ.ย. 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: th-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

  • @clintl326
    @clintl326 ปีที่แล้ว +12

    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.

  • @yangsung
    @yangsung ปีที่แล้ว +37

    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,,,

  • @sarapicciau8906
    @sarapicciau8906 2 ปีที่แล้ว +39

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

  • @erfanshayegani3693
    @erfanshayegani3693 ปีที่แล้ว +7

    Great and concise explanation! Thank you so much!

  • @joseluisbeltramone599
    @joseluisbeltramone599 ปีที่แล้ว +3

    Awesome summary / introduction. Thank you so much!

  • @jyim0310
    @jyim0310 4 หลายเดือนก่อน +1

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

  • @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

  • @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

  • @sumowll8903
    @sumowll8903 2 ปีที่แล้ว +19

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

    • @AssemblyAI
      @AssemblyAI  2 ปีที่แล้ว +1

      Glad it was helpful!

  • @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' 😊

  • @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.

  • @kahwatv
    @kahwatv ปีที่แล้ว +1

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

  • @ThomasPrivat
    @ThomasPrivat 10 หลายเดือนก่อน +1

    What an awesome introduction! Thanks a lot mate! 💪

  • @CezarVasconcelos
    @CezarVasconcelos ปีที่แล้ว +3

    Amazing explanation. Thanks for sharing your knowledge!

  • @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!

  • @ElNachoMacho
    @ElNachoMacho 2 หลายเดือนก่อน

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

  • @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

  • @user-yh4mk4sd8y
    @user-yh4mk4sd8y 8 หลายเดือนก่อน

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

  • @sergiofigueiredo1987
    @sergiofigueiredo1987 3 หลายเดือนก่อน

    Simple and straight to the point!

  • @bendev6807
    @bendev6807 ปีที่แล้ว

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

  • @EricSchroeder-cc4hf
    @EricSchroeder-cc4hf 2 หลายเดือนก่อน

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

  • @ferdaozdemir
    @ferdaozdemir 8 หลายเดือนก่อน +1

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

  • @user-jm6pi1en7g
    @user-jm6pi1en7g 7 หลายเดือนก่อน

    Thanks for clearly explained tutorial !

  • @harsh9558
    @harsh9558 ปีที่แล้ว +3

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

  • @ykoy1577
    @ykoy1577 ปีที่แล้ว

    Great lecture. Thank you for sharing your knowledges

  • @peterdonnelly1074
    @peterdonnelly1074 8 หลายเดือนก่อน

    This is a superb tutorial. Many thanks.

  • @juliank7408
    @juliank7408 3 หลายเดือนก่อน

    Thanks! Clear and informative

  • @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! 😮

  • @TheRealKitWalker
    @TheRealKitWalker 11 หลายเดือนก่อน

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

  • @Amir-ee8mc
    @Amir-ee8mc ปีที่แล้ว

    Nice summary! Thanks!

  • @alternbits
    @alternbits 10 หลายเดือนก่อน

    complete and short. awesome.

  • @maxyang5143
    @maxyang5143 หลายเดือนก่อน

    Awesome video, thanks so much!

  • @brillosan08
    @brillosan08 2 ปีที่แล้ว

    really useful intro, thank you!

  • @mauroinde
    @mauroinde ปีที่แล้ว

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

  • @saibharathwajsaikannan3783
    @saibharathwajsaikannan3783 ปีที่แล้ว

    This is amazing! Thanks :)

  • @user-dn1uh5zq7u
    @user-dn1uh5zq7u ปีที่แล้ว

    I love this video, very useful!

  • @JoshuaFurman-nd1os
    @JoshuaFurman-nd1os ปีที่แล้ว +1

    Great explanation, danke!

  • @khalidelgazzar
    @khalidelgazzar 15 วันที่ผ่านมา

    Very kool. It's on my watch list

  • @BDEvans
    @BDEvans 6 หลายเดือนก่อน

    This is a brilliant video!!!

  • @WizardOrdinals
    @WizardOrdinals หลายเดือนก่อน

    Just found you. So grateful

  • @vincent_hall
    @vincent_hall หลายเดือนก่อน

    Great stuff, thank you.

  • @_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.

    • @Shahrose-Khan
      @Shahrose-Khan 7 หลายเดือนก่อน +1

      I think it is Night Owl

  • @razdingz
    @razdingz ปีที่แล้ว +1

    love ur vids man

  • @manisharya2138
    @manisharya2138 3 หลายเดือนก่อน

    you are eye blinking that's awesome 😊😊

  • @shahab7363
    @shahab7363 8 หลายเดือนก่อน

    great video! Thank you

  • @skyforever1000
    @skyforever1000 4 หลายเดือนก่อน +1

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

  • @MuhammadKhan-ok3hf
    @MuhammadKhan-ok3hf 11 หลายเดือนก่อน

    outstanding, Thank You

  • @matthiasdenhamer3925
    @matthiasdenhamer3925 ปีที่แล้ว

    Very helpful, thanks!

    • @AssemblyAI
      @AssemblyAI  ปีที่แล้ว

      Glad it was helpful!

  • @ahmedelsabagh6990
    @ahmedelsabagh6990 2 หลายเดือนก่อน

    Great video!

  • @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?

  • @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. :)

  • @WizardOrdinals
    @WizardOrdinals หลายเดือนก่อน

    Just found you. So happy rn LOL

  • @krinodagamer6313
    @krinodagamer6313 ปีที่แล้ว

    THANK YOU!!!

  • @giovanniguerreiro8640
    @giovanniguerreiro8640 3 หลายเดือนก่อน

    Great intro video!

  • @allgoodstufftoknow7000
    @allgoodstufftoknow7000 ปีที่แล้ว

    greate video! thanks!

  • @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

  • @stanTrX
    @stanTrX 8 หลายเดือนก่อน

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

  • @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

  • @fernandofrias8322
    @fernandofrias8322 10 หลายเดือนก่อน

    muchas gracias!!!!

  • @zoyaa9759
    @zoyaa9759 2 หลายเดือนก่อน

    The best explanation

    • @AssemblyAI
      @AssemblyAI  2 หลายเดือนก่อน

      Glad you think so!

  • @ajaykryadav
    @ajaykryadav ปีที่แล้ว

    Too good 👍

  • @hernandosierra8759
    @hernandosierra8759 4 หลายเดือนก่อน

    Gracias

  • @naedeezy8967
    @naedeezy8967 3 หลายเดือนก่อน

    Bro gives off good vibes

  • @razdaz5306
    @razdaz5306 ปีที่แล้ว +1

    Ur best teacher

  • @caiyu538
    @caiyu538 ปีที่แล้ว

    Great. 🎉

  • @vanshshah8352
    @vanshshah8352 ปีที่แล้ว +2

    What a sweet guy. Amazing work

  • @rkop737
    @rkop737 หลายเดือนก่อน

    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?

  • @Shiny_Mewtwo
    @Shiny_Mewtwo 10 หลายเดือนก่อน

    Nice

  • @satyamm9901
    @satyamm9901 2 หลายเดือนก่อน

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

  • @macaunutritionassociation
    @macaunutritionassociation ปีที่แล้ว +1

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

  • @fahadasif638
    @fahadasif638 5 หลายเดือนก่อน

    your smile is so cute😍😚

  • @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 11 หลายเดือนก่อน +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)

  • @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 🙂

  • @Kishimita
    @Kishimita 8 วันที่ผ่านมา

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

  • @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.

  • @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 TH-cam comments

    • @Paperbutton9
      @Paperbutton9 3 หลายเดือนก่อน

      yeah what the hell going on here

  • @CodySmiley
    @CodySmiley ปีที่แล้ว

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

  • @steveopenn
    @steveopenn ปีที่แล้ว

    Do you run this and visual basics?

  • @yinghaohu8784
    @yinghaohu8784 ปีที่แล้ว +1

    I like your smile

  • @rzl1025
    @rzl1025 9 หลายเดือนก่อน

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

  • @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?

  • @jbperez808
    @jbperez808 ปีที่แล้ว

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

  • @Blooper1980
    @Blooper1980 ปีที่แล้ว

    NOICE!

  • @aeigreen
    @aeigreen ปีที่แล้ว

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

  • @meirgoldenberg5638
    @meirgoldenberg5638 11 หลายเดือนก่อน

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

  • @josephpareti9156
    @josephpareti9156 ปีที่แล้ว

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

  • @huseyinsenol1769
    @huseyinsenol1769 9 หลายเดือนก่อน

    I hope one day you will fix your pip install problems.

  • @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?

  • @alvarobyrne
    @alvarobyrne ปีที่แล้ว

    one level of abstraction inside 6:07
    tokenization 8:22

  • @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.

  • @user-wr4yl7tx3w
    @user-wr4yl7tx3w ปีที่แล้ว

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

  • @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.

  • @haralc
    @haralc ปีที่แล้ว

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

  • @vincent_hall
    @vincent_hall หลายเดือนก่อน

    4th of May 2024
    Models 636,695
    so 18.2 times as many now!

  • @arachnaut2432
    @arachnaut2432 6 หลายเดือนก่อน

    what app did you switch to one minute in?