Probably the best book on LLM:
Build a Large Language Model (from Scratch) by Sebastian Raschka
This is probably the best book I came across on LLM. If you have ever built a neural network or even a basic machine learning model, that experience is sufficient as a prerequisite.