To make the most out of this course, understand that LLMs are powerful tools for next token generation, leveraging advanced statistical analysis beyond simple models.
Before you begin, ensure you have met the following requirements:
- You have installed Python 3.6+.
First, clone the repository to your local machine using the following command:
git clone [repository-url]
cd [repository-name]
Create a virtual environment using venv
:
python3 -m venv venv
Activate the virtual environment:
- On Windows:
venv\Scripts\activate
- On MacOS/Linux:
source venv/bin/activate
Install the required packages using pip
:
pip install -r requirements.txt
Create a .env
file in the root directory of the project. Use the .env.sample
file as a reference:
cp .env.sample .env
Open the .env
file and update the key values as necessary.
Use the following command to export all of your environmental variables while ignoring any comments:
export $(grep -v '^#' .env | xargs)
If you experience problems using the .env
file or do not wish to use one, you can load the variables directly from your shell. Use a command structured like this to load each variable:
export OPENAI_API_KEY=your-key-here
To run any in-class examples, execute the server file directly from the command line. For example:
python3 in_class_examples/[file-name]