SETUP Linux
SETUP Linux
1
This creates a new directory llm_engineering within your Projects folder and
downloads the course code. Use cd llm_engineering to enter the directory.
This is your “project root directory.”
2
4. Activate the virtual environment:
Use: source llms/bin/activate
Your prompt should now display (llms), indicating the environment is active.
5. Install required packages:
Run: python -m pip install --upgrade pip followed by pip install -r
requirements.txt.
If issues occur, try the fallback: pip install --retries 5 --timeout 15
--no-cache-dir --force-reinstall --verbose -r requirements.txt
6. Start Jupyter Lab:
From the llm_engineering folder, run: jupyter lab.
3
Later in the course you’ll be using the fabulous HuggingFace platform; an account
is available for free at https://huggingface.co - you can create an API token from
the Avatar menu » Settings » Access Tokens.
And in Week 6/7 you’ll be using the terrific Weights & Biases at https://wandb.ai
to watch over your training batches. Accounts are also free, and you can set up
a token in a similar way.
4
Part 5 - Showtime!!
1. Open a terminal.
2. Navigate to the “project root directory” using: cd ~/Projects/llm_engineering.
3. Activate your environment:
• If you used Anaconda: conda activate llms
• If you used the alternative: source llms/bin/activate
You should see (llms) in your prompt. Run: jupyter lab to get started.
Enjoy your journey into mastering AI and LLMs!