Sitemap
TDS Archive

An archive of data science, data analytics, data engineering, machine learning, and artificial intelligence writing from the former Towards Data Science Medium publication.

Member-only story

Guide to ChatGPT’s Advanced Settings — Top P, Frequency Penalties, Temperature, and More

8 min readNov 7, 2023

--

Photo by Volodymyr Hryshchenko on Unsplash

While ChatGPT already yields impressive results with the default settings, there is huge untapped potential that comes from its advanced parameters.

By adjusting settings like Top P, frequency penalty, presence penalty, stop sequences, maximum length, and temperature, we can steer text generation to meet nuanced demands through new levels of creativity and specificity.

In this article, we explore these advanced settings and learn how to tune them effectively.

Table of Contents

(1) Temperature
(2) Maximum Length
(3) Stop Sequences
(4) Top P
(5) Frequency Penalty
(6) Presence Penalty

Introduction

Using ChatGPT is simple — type a prompt and receive a response. Yet, there are numerous advanced parameters that we can configure to enrich the output generated.

The OpenAI Playground lets us interact with language models while offering various…

--

--

TDS Archive
TDS Archive

Published in TDS Archive

An archive of data science, data analytics, data engineering, machine learning, and artificial intelligence writing from the former Towards Data Science Medium publication.

Kenneth Leung
Kenneth Leung

Written by Kenneth Leung

Senior Data Scientist at Boston Consulting Group | Top Tech Author | 2M+ reads on Medium | linkedin.com/in/kennethleungty | github.com/kennethleungty