April 26, 2024, 5:18 p.m. | Mike Cvet

Towards Data Science - Medium towardsdatascience.com

What “temperature” is, how it works, its relationship to the beam search heuristic, and how LLM output generation can still go haywire

Photo by Paul Green on Unsplash; all other images by author unless otherwise noted

If you’ve spent any time with APIs for LLMs like those from OpenAI or Anthropic, you’ll have seen the temperature setting available in the API. How is this parameter used, and how does it work?

From the Anthropic chat API documentation: …

algorithms deep-dives llm machine learning naturallanguageprocessing

Lead Developer (AI)

@ Cere Network | San Francisco, US

Research Engineer

@ Allora Labs | Remote

Ecosystem Manager

@ Allora Labs | Remote

Founding AI Engineer, Agents

@ Occam AI | New York

AI Engineer Intern, Agents

@ Occam AI | US

AI Research Scientist

@ Vara | Berlin, Germany and Remote