The Hugging Face Transformers Library | Example Code + Chatbot UI with Gradio

แชร์
ฝัง
  • เผยแพร่เมื่อ 26 ก.ย. 2024

ความคิดเห็น • 91

  • @ShawhinTalebi
    @ShawhinTalebi  ปีที่แล้ว +4

    👉More on LLMs: th-cam.com/play/PLz-ep5RbHosU2hnz5ejezwaYpdMutMVB0.html

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

    Very useful for me as a beginner, keep creating great tutorial videos. Thanks :)

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

    Your teaching method is exceptional, providing a balanced blend of theory and practical implementation. I would greatly appreciate it if you could create a video tutorial on training InsightFace using a custom dataset. I'm undertaking my thesis on this topic but struggling to find adequate instructional resources.

    • @ShawhinTalebi
      @ShawhinTalebi  5 หลายเดือนก่อน +2

      Thanks for the suggestion. I added it to my list :)

  • @helrod6131
    @helrod6131 10 หลายเดือนก่อน +4

    Appreciate you walking through this in an easy-to-understand style.

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

      Happy to help! I’m glad it was clear 😁

  • @ShaikhSalman-y7w
    @ShaikhSalman-y7w 3 หลายเดือนก่อน +2

    It's very helpful, Thanks for making this video Shaw!.

  • @孙姣姣
    @孙姣姣 5 หลายเดือนก่อน +1

    I think your video about LLM is the best one in the youtube, thanks very much!!!

  • @muhammadroshanmughees1586
    @muhammadroshanmughees1586 10 หลายเดือนก่อน +2

    I didn't know of the huggingface spaces. It is amazing. Thank you for this

    • @ShawhinTalebi
      @ShawhinTalebi  10 หลายเดือนก่อน +2

      You’re welcome, I’m glad it was helpful :)

    • @jakewastaken
      @jakewastaken 5 หลายเดือนก่อน +2

      I’ve been living under a rock and just learned about both Hugging Face and Jupyter. Consider my mind blown 😂

  • @alisohrabi2946
    @alisohrabi2946 3 วันที่ผ่านมา

    Nice video buddy. Kepp going and growing your videos. Thanks

  • @mohammadalibazyar5079
    @mohammadalibazyar5079 7 หลายเดือนก่อน +3

    Thanks for compiling the stuff....amazing!

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

      Happy to help!

  • @jmitterhofer
    @jmitterhofer 9 หลายเดือนก่อน +4

    Great work Shaw!!!

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

    Extremely useful, I haven't used hugging face, so this is useful!

    • @ShawhinTalebi
      @ShawhinTalebi  9 หลายเดือนก่อน +1

      Glad it was helpful!

  • @spotnuru83
    @spotnuru83 9 หลายเดือนก่อน +1

    Really useful for beginners like me, thank you for this

    • @ShawhinTalebi
      @ShawhinTalebi  9 หลายเดือนก่อน +1

      Glad it was helpful :)

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

    Great video as usual! SO helpful 🙌🏾

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

    Thank you Shawhin for this really helpful and informative video.

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

      Thanks! Glad it helped :)

  • @fuad471
    @fuad471 3 หลายเดือนก่อน +1

    nice informative and practical video I learned a lot keep sharing nice videos please

  • @jakewastaken
    @jakewastaken 5 หลายเดือนก่อน +1

    Thanks for this fantastic playlist.

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

    thx, I love how it was simple and helpful

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

    Great introduction. Thanks for putting this together.

  • @zihadedu6328
    @zihadedu6328 2 หลายเดือนก่อน +1

    you really deserve a subscribe

  • @habibtahardjebbar2056
    @habibtahardjebbar2056 2 หลายเดือนก่อน +1

    you are amazing man !!!

  • @AniHunsaker
    @AniHunsaker 5 หลายเดือนก่อน +1

    This is so helpful! can you record a video guiding us how data scientists can work in Transformers library if they work with low-resource languages?

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

      Thanks for the suggestion! What's an example of a low-resource language?

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

    Amazing! Thank you so much.

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

    Thank you for sharing, have a great day :-)

  • @60pluscrazy
    @60pluscrazy 11 หลายเดือนก่อน +1

    Thanks, excellent 👍

  • @vipulbawankar3980
    @vipulbawankar3980 9 หลายเดือนก่อน +1

    Really great content!!

    • @ShawhinTalebi
      @ShawhinTalebi  9 หลายเดือนก่อน +1

      Glad you enjoyed it :)

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

    Great video, Thank you!

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

      Happy to help!

  • @hugopristauz538
    @hugopristauz538 2 หลายเดือนก่อน +1

    super helpful

  • @Hys-01
    @Hys-01 4 หลายเดือนก่อน +5

    so much more helpful than every other tutorial on youtube! Straight to the point, very relevant and quick. Thanks so much!

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

    Thank you for pulling all actionable code in one place and the appropriate amount of technical details. Many of YT videos lab notebooks are stale considering version changes in library.
    Yours is the first one that worked!
    In a span of 12 mins, I could complete two of your exercise. While trying the chatbot example, when I import gradio in colab, it causes import of PyTorch and memory spikes and sometimes colab free vm collapses.
    BTW I want to implement a RAG example to query my pdf with tables. Since my laptop is under resources, was looking for some links or videos on how to push a RAG app to H.F. Would appreciate if you point me to one if you have it, or a better link.

    • @ShawhinTalebi
      @ShawhinTalebi  8 หลายเดือนก่อน +2

      Great to hear! I'm not a Collab user so not sure what's going on with that Gradio import.
      I found this video helpful on RAG with docs: th-cam.com/video/WL7V9JUy2sE/w-d-xo.html

    • @Techbro-ho3pp
      @Techbro-ho3pp 8 หลายเดือนก่อน

      Thank you Shaw! Do you host or attend live AI related meetups in Dallas area? @@ShawhinTalebi

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

      Yes, I host at least 1 meet-up a quarter via The Data Entrepreneurs community
      Events: lu.ma/tde

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

    Great Intro Shaw

    • @ShawhinTalebi
      @ShawhinTalebi  9 หลายเดือนก่อน +1

      Thanks, glad it helped!

  • @sathvikmalgikar2842
    @sathvikmalgikar2842 3 หลายเดือนก่อน +1

    Thanks !

  • @servelotfi
    @servelotfi 3 หลายเดือนก่อน +1

    عالی بود thanks alot

  • @BhavaniShankar-x7w
    @BhavaniShankar-x7w 6 วันที่ผ่านมา

    Really Nice video with practical use. i am running same code in colab but when i click submit i am getting error screen is there any specific things i need to follow because you used conda. this can be implemented in any other than conda same code ? can you explain the steps in detail i am new to this and want to learn

    • @ShawhinTalebi
      @ShawhinTalebi  4 วันที่ผ่านมา

      There was an update to HF since I posted this video. You can find a new version of the example code here: github.com/ShawhinT/TH-cam-Blog/blob/main/LLMs/hugging-face/hf-sandbox.ipynb

  • @arturoruiz6274
    @arturoruiz6274 2 หลายเดือนก่อน +1

    Conversation module is no longer available for those following these tutorials.

    • @ShawhinTalebi
      @ShawhinTalebi  2 หลายเดือนก่อน +1

      Thanks for calling that out! While I can't update the video, updated code is available on GitHub: github.com/ShawhinT/TH-cam-Blog/tree/main/LLMs/hugging-face

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

    Hello...When i'm trying out the gradio chat interface with the vanilla_chatbox function, I run an error saying that the conversation variable is not defined. Why is this the case?

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

      I believe there was a transformers library update which broke the could shown in the video. But I have an updated version on the GitHub that should work: github.com/ShawhinT/TH-cam-Blog/blob/main/LLMs/hugging-face/hf-sandbox.ipynb

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

    Thank you for sharing. Please make same video using hf api.

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

      Thanks for the rec! Anything specific you'd like to see?

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

      @@ShawhinTalebi when we are using transformers pipeline, everytime the model 1st downloads and then it works. I want to know is there any way so that we can call the above models with hf api/token?

    • @ShawhinTalebi
      @ShawhinTalebi  5 หลายเดือนก่อน +1

      HF's endpoints might help: huggingface.co/inference-endpoints/dedicated

  • @yumei6607
    @yumei6607 3 หลายเดือนก่อน +1

    Very useful information. I cannot clone the git repository. Got error: invalid path 'TDA/persistent_homology/homology_example_Homology-Changes-Predicted-Crash??.png', Could you please take a look?

    • @ShawhinTalebi
      @ShawhinTalebi  3 หลายเดือนก่อน +1

      I wasn't able to reproduce this error. Note that GitHub doesn't let you clone a part of a repo so you have to download the whole thing: github.com/ShawhinT/TH-cam-Blog.git

  • @friedrichdergroe9664
    @friedrichdergroe9664 6 หลายเดือนก่อน +1

    The sentiment analysis is strange. I put in: "It is fun to hurt people" and it came back with a .99 POSITIVE. I guess it has no clue about morality and values. Also, I have not used Python in a while, and I suppose it has trouble dealing with dependencies, because I had to install tensorflow and tf-keras separately. But it works.

    • @ShawhinTalebi
      @ShawhinTalebi  5 หลายเดือนก่อน +1

      Thanks for raising this, it's a super important point. While I suspect larger and more recent models will handle that example better, accounting for these edge cases is a major challenge when working with language models.

  • @ReyhanehHosseinpour
    @ReyhanehHosseinpour 29 วันที่ผ่านมา

    How did you get Conversation class? I was unable to get it from transformers...

    • @ShawhinTalebi
      @ShawhinTalebi  25 วันที่ผ่านมา

      Good question. That class has been deprecated. Check out the updated example code here: github.com/ShawhinT/TH-cam-Blog/blob/main/LLMs/hugging-face/hf-sandbox.ipynb

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

    Great videos.. do you have something similar for AWS bedrock?

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

      I do not but that's a great topic for a future video :)

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

      @@ShawhinTalebi Sure it is. Waiting eagerly for that one too. :)

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

    I am getting error, while using the Conversation module: cannot import name 'Conversation' from 'transformers', did anyone run through this error, please help.

    • @ShawhinTalebi
      @ShawhinTalebi  4 วันที่ผ่านมา

      Thanks for raising this! There was an update to the lib since I posted this video. You can find an updated version of the example code here: github.com/ShawhinT/TH-cam-Blog/blob/main/LLMs/hugging-face/hf-sandbox.ipynb

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

    Please display the full code and mention the Python version and system configuration, folders, files, etc.

    • @ShawhinTalebi
      @ShawhinTalebi  10 หลายเดือนก่อน +2

      Code and env files are available here: github.com/ShawhinT/TH-cam-Blog/tree/main/LLMs/hugging-face

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

    This solved me big time, I am working on a client project and this app I'm surprised it's general purpose and answers fitness related questions that is exactly what I'm working on. Big Thanks! Is there a way to fine-tune the model more for my fitness AI?? Big Thanks!

    • @ShawhinTalebi
      @ShawhinTalebi  11 หลายเดือนก่อน +2

      That’s awesome, glad it helped!
      I talk about fine-tuning in another video: th-cam.com/video/eC6Hd1hFvos/w-d-xo.html

    • @emanuelokoth1973
      @emanuelokoth1973 11 หลายเดือนก่อน +1

      @@ShawhinTalebi cool let me check that out! was actually looking on how to fine tune this, since the first is a bitt simple!

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

    it seems vanilla chat-bot is showing error as of current date.

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

      Thanks for pointing that out! It seems like hugging face updated the lib. I fixed the code on the GitHub repo.

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

    Where did you get the Conversation class?

    • @ShawhinTalebi
      @ShawhinTalebi  10 หลายเดือนก่อน +2

      Good question. I forgot to show the imports in the slides, but Conversation() comes from the Transformers library. Here's the full notebook: github.com/ShawhinT/TH-cam-Blog/blob/main/LLMs/hugging-face/hf-sandbox.ipynb

  • @djentlover
    @djentlover 3 หลายเดือนก่อน +1

    Anaconda doesn't find all the depencies when I try to create the environment. What should I do?

    • @ShawhinTalebi
      @ShawhinTalebi  3 หลายเดือนก่อน +1

      Are you using the .yml file from the GitHub repo?
      If that's not working, you can try making a fresh env and installing transformers following this guide: huggingface.co/docs/transformers/en/installation#install-with-conda

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

      @@ShawhinTalebi Yes I used your GitHub link and your yml file.
      Using a M1 mac.
      Thank you. I will try that.

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

    6:41

  • @nathamuni9435
    @nathamuni9435 22 วันที่ผ่านมา

    to much effort

  • @ncjatin
    @ncjatin 3 หลายเดือนก่อน +1

    We dont need to create and use HuggingFace tokens to use these models ?

    • @ShawhinTalebi
      @ShawhinTalebi  3 หลายเดือนก่อน +2

      Not if you are running these models locally!

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

    Amazing Stuff!