What are the LLM’s Top-P + Top-K ?

SdĂ­let
VloĹžit
  • čas přidĂĄn 5. 08. 2024
  • 📹 VIDEO TITLE 📹
    What are the LLM’s Top-P + Top-K ?
    ✍️VIDEO DESCRIPTION ✍️
    In this video, we delve into the concepts of Top-P and Top-K in Large Language Models (LLM) as applied in the field of Data Science. Understanding these concepts is crucial for optimizing model performance and achieving the desired results. Stay tuned to gain insights into how Top-P and Top-K influence the outcomes of LLM models.
    🧑‍💻GITHUB URL 🧑‍💻
    No code samples for this video
    📽OTHER NEW MACHINA VIDEOS REFERENCED IN THIS VIDEO 📽
    What are the LLM’s Top-P and TopK ? - • What are the LLM’s Top...
    What is the LLM’s Temperature ? - • What is the LLM’s Temp...
    What is LLM Prompt Engineering ? - • What is LLM Prompt Eng...
    What is LLM Tokenization? - • What is LLM Tokenizati...
    What is the LangChain Framework? - • What is the LangChain ...
    CoPilots vs AI Agents - • AI CoPilots versus AI ...
    What is an AI PC ? - • What is an AI PC ?
    What are AI HyperScalers? - • What are AI HyperScalers?
    What is LLM Fine-Tuning ? - • What is LLM Fine-Tuning ?
    What is LLM Pre-Training? - • What is LLM Pre-Training?
    AI ML Training versus Inference - • AI ML Training versus ...
    What is meant by AI ML Model Training Corpus? - • What is meant by AI ML...
    What is AI LLM Multi-Modality? - • What is AI LLM Multi-M...
    What is an LLM ? - • What is an LLM ?
    Predictive versus Generative AI ? - • Predictive versus Gene...
    What is a Foundation Model ? - • What is a Foundation M...
    What is AI, ML, Neural Networks and Deep Learning? - • What is AI, ML, Neural...
    AWS Lambda + Amazon Polly #001100 - • AWS Lambda + AWS Polly...
    AWS Lambda + Amazon Rekognition #001102 - • AWS Lambda + AWS Rekog...
    AWS Lambda + Amazon Comprehend #001103 - • AWS Lambda + AWS Compr...
    Why can’t you have AI driven Text Extraction? #001106 - • Why can’t you have AI ...
    Which Amazon ML / AI Service should you Use ? #001110 - • Which Amazon ML / AI S...
    Why can’t I do Generative AI in AWS? #001112 - • Why can’t I do Generat...
    Why care about Foundation Models? #001113 • Why care about Foundat...
    Why play in Amazon Bedrock playgrounds? #001114 • Why play in Amazon Bed...
    Get a ChatGPT API Key Now! #001000 - • Get a ChatGPT API Key ...
    AWS Lambda + ChatGPT API #001001 - • AWS Lambda + ChatGPT A...
    Lambda + ChatGPT + DynamoDb #001002 - • Lambda + ChatGPT + Dyn...
    Your own Custom AWS Website + ChatGPT API (part 1 of 5) #001003 - • Your own Custom AWS We...
    Your own Custom AWS Website + ChatGPT API (part 2 of 5) #001004 - • Your own Custom AWS We...
    Your own Custom AWS Website + ChatGPT API (part 3 of 5) #001005 - • Your own Custom AWS We...
    Your own Custom AWS Website + ChatGPT API (part 4 of 5) #001006 - • Your own Custom AWS We...
    Your own Custom AWS Website + ChatGPT API (part 5 of 5) #001007 - • Your own Custom AWS We...
    🔠KEYWORDS 🔠
    #LLM
    #LargeLanguageModel
    #LLMTemperature
    #NLP
    #NaturalLanguageProcessing
    #DataScience
    #MachineLearning
    #DataAnalysis
    #DeepLearning
    #LanguageModels
    #AI
    #ArtificialIntelligence
    #RankingAlgorithms
    #NeuralNetworks
    #DeepLearning
    #DeepNeuralNetworks
    #TransformerModels
    #Top-K
    #Top-P

Komentáře • 24

  • @jamesturner246
    @jamesturner246 Před 18 dny

    A really helpful video, thanks.

    • @NewMachina-CloudAI
      @NewMachina-CloudAI  Před 18 dny

      Glad it was helpful!.... Trying to get better with each video... If you have areas you would like to see me cover please feel free to share... thank you...

  • @jayprice8246
    @jayprice8246 Před 22 dny

    Thanks man! Superb teaching

    • @NewMachina-CloudAI
      @NewMachina-CloudAI  Před 21 dnem

      Glad it was helpful! Trying to make each video better and better… my goal is to help busy tech professionals get up on all of this exciting technology…

  • @jerkmeo
    @jerkmeo Před 28 dny +1

    clear and concise...thanks very much.

    • @NewMachina-CloudAI
      @NewMachina-CloudAI  Před 27 dny

      Thanks for watching! Working hard to create direct clear and concise videos ….. appreciate your feedback !

  • @aritzolaba
    @aritzolaba Před 15 dny

    Good stuff here. Keep on!

    • @NewMachina-CloudAI
      @NewMachina-CloudAI  Před 15 dny

      Appreciate it! Trying to get better and better with each video… thanks for the feedback…

  • @mohamedbilal5634
    @mohamedbilal5634 Před 14 dny

    Awesome explanation !!

    • @NewMachina-CloudAI
      @NewMachina-CloudAI  Před 14 dny

      Glad you liked it! Trying to get that much clarity in a concise way on every video……. Thanks for feedback.

  • @tituspowell
    @tituspowell Před 28 dny +1

    Very helpful and clear. Thank you.

    • @NewMachina-CloudAI
      @NewMachina-CloudAI  Před 27 dny +1

      Glad it was helpful! Hyper focused on clear direct videos that break topics down in a way that easy understand … appreciate your feedback!

  • @Systemv1
    @Systemv1 Před 7 dny

    Great video!

    • @NewMachina-CloudAI
      @NewMachina-CloudAI  Před 4 dny

      Glad you enjoyed it. Thank you for taking time to provide feedback….

  • @joseluisbeltramone599
    @joseluisbeltramone599 Před 22 dny

    ÂĄExcelente explicaciĂłn! Muchas gracias.

  • @chandup
    @chandup Před 26 dny

    Excellent content and educational. I appreciate putting such efforts into making it simple for others to understand the concepts. A small suggestion, if you don’t mind - the background sound is dominating your voice; it's better to lower the BGM sound a lot or remove it altogether.

    • @NewMachina-CloudAI
      @NewMachina-CloudAI  Před 26 dny +1

      I really appreciate your feedback... yes, my son has indicated the BGM is a little to loud and your feedback confirms his thoughts as well.. I appreciate positive feedback but also helpful critical feedback in the spirit of getting better... thank you sir... let me know if there are AI/LLM topics you would like to me cover in the near future.. thank you

  • @Krishna-zw2qv
    @Krishna-zw2qv Před 28 dny

    Great content.

    • @NewMachina-CloudAI
      @NewMachina-CloudAI  Před 27 dny

      Thank you …. Let me know if there are AI / LLM topics you are interested in…

  • @muhammedajmalg6426
    @muhammedajmalg6426 Před 27 dny

    thanks for sharing, can you make a video on GANS?

    • @NewMachina-CloudAI
      @NewMachina-CloudAI  Před 27 dny

      Thanks for asking ... yes give me a few weeks to research and I will get something out for you...

  • @MrDevjakhmola
    @MrDevjakhmola Před 5 dny

    Thanks for making this video. Gave very good clarity.
    I have one doubt, How does model picks up the final token to return. Even if these different techniques are changing the size of candidate pool, token with maximum probability should always stay at the top. If so, how these parameters impact the final output?

    • @NewMachina-CloudAI
      @NewMachina-CloudAI  Před 4 dny

      Good question.... So, the tokens, in the "Candidate Pool", are assigned a statistical probability. For example the first token might be 0.50 or 50%. The second might be 0.25 or 25%, etc.... These statistical probabilities come from the pre-training phase, when LLM trained on raw data. When the next word is selected the first word, in this example, will be selected 50% of the time. The second word will be select %25 of time, etc... When Temperature is 0 you get special case where, where all token probabilities go to zero, except the highest probability token, which is always selected. This gives deterministic output. When Temperature goes up, the probabilities are adjusted to give more tokens, with smaller probabilities, in the candidate pool, higher probabilities which give those tokens more chances to get selected.. Is this explanation helpful ?