Skip to content

Exploring Top p, greedy sampling and temperature on LLM generation

Notifications You must be signed in to change notification settings

kvsnoufal/llm_sampling

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Temperature and Top-P Sampling in LLMs

Understanding and exploring affects of temperature and top-p sampling in language generation. We will be testing the sampling approaches in Gemma-2b-it

Overview

Understanding and exploring affects of temperature and top-p sampling in language generation. We will be testing the sampling approaches in Gemma-2b-it

Refer Medium Article : link

Demo GIF

Code

  • EDA.ipynb contains some experiments with top p and temperature
  • streamlit_app.py: Contains the streamlit application. Its ugly code.
  • gpt_refactored_app.py: Contains the above file refactored by chatgpt :) Looks nicer

About

Exploring Top p, greedy sampling and temperature on LLM generation

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published