Contents

Supplementary code for "Build a Large Language Model From Scratch": https://www.manning.com/books/build-a-large-language-model-from-scratch by Sebastian Raschka
Code repository: https://github.com/rasbt/LLMs-from-scratch
from python_environment_check import check_packages, get_requirements_dict

d = get_requirements_dict()
check_packages(d)
[OK] Your Python version is 3.10.0
[FAIL] torch 0.0, please install a version matching >=2.3.0
[FAIL] jupyterlab 0.0, please install a version matching >=4.0
[FAIL] tiktoken 0.0, please install a version matching >=0.5.1
[FAIL] matplotlib 0.0, please install a version matching >=3.7.1
[FAIL] tensorflow 0.0, please install a version matching >=2.18.0
[FAIL] tqdm 4.65.0, please install a version matching >=4.66.1
[FAIL] numpy 2.2.3, please install a version matching <2.1,>=1.26
[OK] pandas 2.2.3
[OK] psutil 7.0.0