Code By GK Logo

Environment Setup

Setup Python

  • Download the latest standalone version of python from https://www.python.org/downloads
  • Run the executable and install with default options.
  • After the installation, Run the command python --version in a new terminal window. The output should show the version of python which is installed.

Setup Git

  • Download the latest version of git from https://www.git.org/downloads
  • Run the executable and install with default options.
  • After the installation, Run the command git --version in a new terminal window. The output should show the version of git which is installed.

Setup Cursor

  • Download the latest version of cursor from https://cursor.com/download
  • Run the executable and install with default options.
  • After the installation, Run the command cursor --version in terminal. The output should show the version of cursor which is installed.
Info

if you prefer Visual studio code instead of Cursor read Setup VS Code

Setup VS Code

  • Download the latest version of visual studio code from https://code.visualstudio.com/download
  • Run the executable and install with default options.
  • After the installation, Run the command code --version in terminal. The output should show the version of cursor which is installed.
Info

if you prefer Cursor instead of Visual Studio Code then read Setup Cursor

Setup Extensions

  • Install Python extension by ms-python
  • Install Jupyter extension by ms-toolsai

Setup UV

  • Navigate to UV Documentation
  • Install UV by running the command for the standalone installer. You should see a similar output after installation. UV Installation
  • You can use other methods of installation such as pypi, winget, docker, etc. if you prefer, But ensure the successful installation using the step below.
  • After the installation, Run the command uv --version in a new terminal window. The output should show the version of uv which is installed.

Setup Ollama

  • Navigate to https://ollama.com
  • Download the ollama executable
  • Install ollama
  • Launch a terminal window
  • Run the command ollama run gpt-oss to pull and run the gpt-oss model. Replace with the model of your choice. To find the list of available models visit: https://ollama.com/models.
Info

For practice, Ollama should be enough. If you need a more efficient model for production, consider using OpenAI.

Setup OpenAI

  • Navigate to OpenAI
  • Signup or login to your account.
  • Navigate to Settings > Billing.
  • Add atleast 5 dollars to your credit.
  • Turn off auto recharge.
  • Navigate to API keys option in the sidebar.
  • Click on Create New Secret Key button.
  • Enter a name for the key.
  • Select Default project in the project dropdown. This will help you use this key across projects.
  • Click on Create Secret Key button.
  • Copy the secret key. The key should start with sk-proj-. This key needs to be updated in the environment file in the [01]
Tip

If you don't want to pay, switch over to free options such as Ollama.

Setup Project

Setup Project Folder

  • Create a folder name that you would like. Example: learn-llm-fundamentals.
  • Open the directory in the IDE of your choice. Cursor or VS Code preferred.

Setup Environment File

  • Create a .env file at the root of the directory. This file holds the secrets and variables related to the project environment.

Setup GitIgnore

  • Create a .gitignore file at the root of the directory. This file holds the patterns of file and folders which needs to be ignored in Git.
  • Add the environment file in the .gitignore file. The contents of the file should look like below.
    .env