Loading AI Engineering Foundations...
Generative AI refers to probabilistic models that learn the underlying joint probability distribution P(X) of training data, allowing them to sample and synthesize brand-new realistic artifacts (text, code, images, audio, 3D assets) conditioned on a prompt.
“A discriminative model is an art critic judging whether a painting is genuine; a generative model is the painter painting a brand-new original canvas in that style.”
// Sampling from learned probability distribution
const nextToken = sampleDistribution(logits, { temperature: 0.7, topP: 0.9 });Expecting generative outputs to be fully deterministic without explicitly setting temperature to 0 and locking random seeds.