skip to main | skip to sidebar

Shin, Jae Wook

Saturday, November 16, 2024

LLM - Sampling Temperature, Top K, and Top P, What & How?

In the LLM, using sampling

When we set the temperature, top K, and top P in the LLM, do you know what they are and what the order for applying them is?


  • LLM Samplers Explained
  • How to sample from the language model
  • What is the actual order of execution when Top-K, Top-P, and Temperature are used together for NLP decoding?
  • Token selection strategies: Top-K, Top-P, and Temperature
  • Can someone explain what Top K and Top P are and what they do and how to use them?
  • Mastering LLM Parameters: A Deep Dive into Temperature, Top-K, and Top-P

actual order: Temperature -> Top K -> Top P

arXiv
  • The Curious Case of Neural Text Degeneration (Nucleus Sampling)

Repetition penalties are terribly implemented - A short explanation and solution
https://www.reddit.com/r/LocalLLaMA/comments/1g383mq/repetition_penalties_are_terribly_implemented_a/?rdt=41955

 



Posted by Shin, Jae Wook at 4:59 AM No comments:
Newer Posts Older Posts Home
Subscribe to: Posts (Atom)

Subscribe To

Posts
Atom
Posts
All Comments
Atom
All Comments

Blog Archive

  • ►  2025 (1)
    • ►  January (1)
  • ▼  2024 (13)
    • ▼  November (1)
      • LLM - Sampling Temperature, Top K, and Top P, What...
    • ►  October (1)
    • ►  September (1)
    • ►  August (2)
    • ►  July (4)
    • ►  June (2)
    • ►  April (2)
  • ►  2023 (5)
    • ►  November (1)
    • ►  September (1)
    • ►  July (1)
    • ►  June (1)
    • ►  February (1)
  • ►  2022 (5)
    • ►  March (1)
    • ►  February (1)
    • ►  January (3)
  • ►  2021 (5)
    • ►  December (2)
    • ►  September (1)
    • ►  July (1)
    • ►  January (1)
  • ►  2020 (8)
    • ►  October (1)
    • ►  July (2)
    • ►  June (3)
    • ►  January (2)
  • ►  2019 (13)
    • ►  December (3)
    • ►  November (1)
    • ►  October (1)
    • ►  April (3)
    • ►  March (1)
    • ►  February (4)
  • ►  2018 (12)
    • ►  December (2)
    • ►  September (7)
    • ►  August (2)
    • ►  May (1)
  • ►  2017 (5)
    • ►  June (2)
    • ►  May (1)
    • ►  January (2)
  • ►  2016 (2)
    • ►  September (2)
  • ►  2015 (6)
    • ►  November (1)
    • ►  August (1)
    • ►  July (4)
  • ►  2014 (6)
    • ►  September (1)
    • ►  August (1)
    • ►  June (3)
    • ►  May (1)
  • ►  2013 (3)
    • ►  August (1)
    • ►  June (1)
    • ►  January (1)
  • ►  2012 (4)
    • ►  November (1)
    • ►  February (1)
    • ►  January (2)
  • ►  2011 (13)
    • ►  December (4)
    • ►  August (4)
    • ►  July (4)
    • ►  June (1)
  • ►  2010 (9)
    • ►  July (1)
    • ►  April (1)
    • ►  March (5)
    • ►  January (2)
  • ►  2009 (33)
    • ►  October (5)
    • ►  July (5)
    • ►  June (1)
    • ►  May (4)
    • ►  April (3)
    • ►  March (1)
    • ►  February (7)
    • ►  January (7)
  • ►  2008 (22)
    • ►  December (1)
    • ►  November (1)
    • ►  October (3)
    • ►  September (5)
    • ►  August (10)
    • ►  July (2)
  • ►  2007 (1)
    • ►  November (1)

About Me

Shin, Jae Wook
View my complete profile