Building LLaMA from Scratch: A Step-by-Step Guide