Welcome to the world of AI - Understanding temperature, top_p and top_k

This post is part of a 4 part series on learning and building a decoder-only transformer from scratch. This is the first post that focuses on learning about **temperature**, **top_p** and **top_k** as they are used in language models. Without further ado, let's move ahead. # import the libraries. import numpy as np import matplotlib.pyplot as plt from scipy.special import softmax # Let get our…