How Large Language Models Work, Paperback by Raff, Edward; Farris, Drew; Bide… You will find that this textbook has a companion website with extra resources.