Temperature and Top-P: The Creativity Knobs

How sampling parameters shape AI personality
What You'll Learn
  • How an LLM turns raw token scores into probabilities before choosing what comes next
  • How temperature reshapes a probability distribution to make outputs more predictable or more varied
  • How top-p sampling limits which tokens the model is allowed to consider
  • Why top-p adapts to model confidence differently from a fixed top-k cutoff
  • How temperature and top-p interact when both are applied to the same distribution
  • How to choose sampling settings for factual, structured, professional, and creative tasks

The Wreck of the Edmund Fitzgerald: Modeling Decomposition in Extreme Environments

How cold, pressure, and buoyancy explain why Lake Superior may never give up her dead
What You'll Learn
  • Why bodies normally resurface after a drowning
  • How cold water dramatically slows decomposition
  • How water pressure compresses decomposition gases at depth
  • How temperature, pressure, and buoyancy interact in Lake Superior
  • How Python can model whether a body will ever surface
  • Why the Edmund Fitzgerald’s depth creates an extreme preservation environment

The Birthday Paradox in Production: When Random IDs Collide

Why collision risk grows faster than intuition suggests, and what that means for IDs, hashes, and distributed systems
What You'll Learn
  • Why collisions happen long before an ID space is full
  • Why collision risk grows much faster than intuition suggests
  • How the birthday paradox applies to computer systems
  • How to calculate the probability of an ID collision
  • Why the square root of the ID space determines the danger zone
  • How 32-bit, 64-bit, and UUID v4 IDs compare
  • How generation rate changes the time until collisions become likely
  • How to choose an acceptable collision risk for a real system
  • How Monte Carlo simulation can validate collision calculations
  • How to predict when an ID strategy needs to be replaced