+1Greedy, top-k and top-p decoding for a language modelCodingYou get a toy language model with a small vocabulary whose forward pass returns next-token logits for the tokens so far. Using NumPy, write the generation loop and three ways to…
Last asked Sep 2026






