Files
Hands-On-Large-Language-Models/.setup

# Setup Instructions

Here you will find several methods of running the code found in the book. There are two preferred methods, one for local usage and one for cloud-based:

Quick start

If you already have a local Python (3.10.*) environment and Microsoft Visual C++ 14.0 or greater installed, you can install the complete environment as follows at the root of this repository:

pip install -r requirements.txt

Warning

If you get the following error error: Microsoft Visual C++ 14.0 or greater is required. then you will need to install C++. Follow the instructions here for an installation guide before you can install your environment.

If you have conda installed (this does not require an additional installation of C++), you can also install the complete environment as follows at the root of this repository:

conda env create -f environment.yml

Tip

After preparing your environment, it is recommended to install the GPU version of PyTorch following the instructions here as most examples will require a GPU.

For a complete tutorial on setting up your environment, visit the conda example.