HuggingFace Fundamentals with LLM's such as TInyLlama and Mistral 7B

แชร์
ฝัง
  • เผยแพร่เมื่อ 4 ก.พ. 2024
  • chris looks under the hood of huggingface models such as TinyLlama and Mistral 7-B. In the video Chris presents a high level reference model of large language models and uses this to show how tokenization and the AutoTokenizer module works from the HuggingFace transfomer library linking it back to the HuggingFace repository. In addition we look at the tokenizer config and Chris shows how Mistral and Llama-2 both use the same tokenizer and embeddings architecture (albeit different vocabularies). Finally Chris shows you how to look at the model configuration and model architecture of hugging face models.
    As we start to build towards our own large language model, understanding these fundamentals are critical no matter whether you are a builder or consumer of AI.
    Google Colab:
    colab.research.google.com/dri...
  • วิทยาศาสตร์และเทคโนโลยี

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

  • @msssouza2
    @msssouza2 14 วันที่ผ่านมา +1

    Thanks, for another great video Chris. I've been through some LLM courses on Udemy but your channel is helping me to clear many doubts I have on the whole thing. I'm glad I found your channel. It's really the best on this subject. Congratulations. Marcelo.

    • @chrishayuk
      @chrishayuk  11 วันที่ผ่านมา

      Very kind, my rule is to try and always go one level below. It means that my vids are never short, glad the content is useful

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

    The best video I've watched on TH-cam about LLM so far. You explain complex topics in an accessible language, clearly and understandably. You are doing a very good job. I'm eagerly waiting for the next videos :)

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

      same here

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

      Wow, thanks!, this one actually took a long time to get right, glad you liked it

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

    Excellent explanation. Although I don't have a use case to fine-tune a model currently, I presume I will eventually it'll be great to have what you've shared in my back pocket. Thanks a bunch.

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

      Awesome, glad it was useful

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

    Amazing way to get people comfortable with the model architecture. Thank you so much for sharing your knowledge.

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

      Glad it was useful

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

    very well explained and useful

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

      So glad to hear that, thank you

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

    Great video! Looking forward to your next videos…

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

      Yeah, next ones in series will be fun, glad you’re enjoying it

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

    Looking really forward to the next video.

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

      next one dropped

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

    Great video. Just the right amount of detail. Thanks.

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

      Glad it was helpful!

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

    Insanely valuable video. Thank you!

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

      Glad it’s useful

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

    Thanks being so so in details. That was really a refresher for me. Glad someone like you is doing such a good work.

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

      thank you, very much appreciate that

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

    For the very first time, I finally get it, thanks to you. Thank you for your service to the community.

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

    Thanks a lot Chris.

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

      glad it was useful

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

    Aways awesome content ❤

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

      Super glad it’s useful, thank you

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

    Thank you! This video brings light into the black box of LLM magic)

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

      more to come, the next set of videos reveal a bunch more

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

    Excellent tutorial to get started with LLMs.

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

      Glad you liked it!

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

    great video - many thanks!

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

      Glad you liked it!

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

    Great video.

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

      thank you

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

    great video. Thx!

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

      thank you

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

    How does the tokenizer decode sub-word embeddings? Specifically, how do you determine which sequence is concatenated into a word vs. standing on its own? As shown, the answer would be decoded with spaces between the embeddings, which wouldn't make "Lovelace" into a word.

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

      Certain tokens will have spaces others won’t so _lace would be a different token from lace. I have a deep dive of the tiktoken tokenizer where I spend a lot of time on this. I am planning to do a building a tokenizer vid soon as part of this series

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

      how the tokenizer for gpt-4 (tiktoken) works and why it can't reverse strings
      th-cam.com/video/NMoHHSWf1Mo/w-d-xo.html

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

      @@chrishayuk Thanks, I'll check out the other video and looking forward to the next one.

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

    Great job sir, one video for me sir how to build llama APIs i want use my train own model now i want using in my website ..

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

      That’s where we are are working up to, but you can check out my existing fine tuning llama-2 video

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

    Bro, just turn-on the Big Thank so I can donate you

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

      lol, not gonna happen but appreciate the gesture and glad you like the videos