~/talk

Taking Control of LLM Outputs: An Introductory Journey into Logits

Talkat PyCon DE & PyData 2025 · on Wednesday, 2025-04-23· at 14:30· Europium2· [large-language-models, machine-learning]
links:none on file
slides:none on file

Shows how raw logits from LLAMA-3B-instruct drive deterministic token scores and how direct logit manipulation—token masking via constraint decoding—forces valid JSON and regex-constrained outputs, speeding generation by skipping predictable tokens. Demonstrates greedy, temperature, top‑K/top‑P, and beam search (example beam width 2), introduces Outlines and Guidance for local structured decoding (token‑healing on Guidance only for local models), and repurposes per-token logit loss as a “surprise” evaluation metric.

AI-written summary · about

  1. 0:00Introduction
  2. 1:07LLM generation basics
  3. 2:22Understanding logits
  4. 6:10Sampling strategies
  5. 11:58Uncertainty detection
  6. 14:22Structured generation
  7. 18:24Libraries for control
  8. 22:23Advanced features
  9. 23:56Q&A and conclusion
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.