Code Implementation, Evaluations, Documentation, Links and Resources for Min P paper
Jupyter Notebook
52
72 commits
updated Aug 13, 2025
✨Hi there! ✨
This is the repository for the Turning Up the Heat: Min-p Sampling for Creative and Coherent LLM Outputs! Here, you will find the following:
To use it, you only need to add a gen/output hyperparameter like you would with top_p or temperature (I think).
# Generate text using Top-p sampling
output = model.generate(
input_ids,
do_sample=True, # Enable sampling
top_p=0.9, # Cumulative probability threshold
min_p=0.1,
max_length=50 # Maximum length of generated text
)
Let me (@menhguin) know if you have other questions!
71 commits
1 commits
Jupyter Notebook
100.0%
Code Implementation, Evaluations, Documentation, Links and Resources for Min P paper
Jupyter Notebook
52
72 commits
updated Aug 13, 2025
✨Hi there! ✨
This is the repository for the Turning Up the Heat: Min-p Sampling for Creative and Coherent LLM Outputs! Here, you will find the following:
To use it, you only need to add a gen/output hyperparameter like you would with top_p or temperature (I think).
# Generate text using Top-p sampling
output = model.generate(
input_ids,
do_sample=True, # Enable sampling
top_p=0.9, # Cumulative probability threshold
min_p=0.1,
max_length=50 # Maximum length of generated text
)
Let me (@menhguin) know if you have other questions!
71 commits
1 commits
Jupyter Notebook
100.0%