Skip to content

Latest commit

 

History

History
66 lines (61 loc) · 4.31 KB

clean-ubuntu-setup.md

File metadata and controls

66 lines (61 loc) · 4.31 KB

Install Everything for llm-recpies from scratch

  • Ubuntu Library setup

    • After Ubuntu is installed, update all required libraries
      • sudo apt-get update
      • sudo apt-get upgrade
      • sudo apt dist-upgrade
      • sudo apt upgrade
      • sudo apt install git
    • Download VScode from link
      • cd Downloads && sudo dpkg -i code_*.deb
    • Install Docker - Install & Post-install
      • sudo apt-get update
      • sudo apt-get install ca-certificates curl
      • sudo install -m 0755 -d /etc/apt/keyrings
      • sudo curl -fsSL https://download.docker.com/linux/ubuntu/gpg -o /etc/apt/keyrings/docker.asc
      • sudo chmod a+r /etc/apt/keyrings/docker.asc
      • echo \ "deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.asc] https://download.docker.com/linux/ubuntu \ $(. /etc/os-release && echo "$VERSION_CODENAME") stable" | \
      • sudo tee /etc/apt/sources.list.d/docker.list > /dev/null
      • sudo apt-get update
      • sudo apt-get install docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin
      • sudo docker run hello-world
      • sudo groupadd docker
      • sudo usermod -aG docker $USER
      • newgrp docker
      • docker run hello-world
    • Docker Desktop - Optional
      • sudo apt install gnome-terminal
      • Download the deb package
      • cd Downloads && sudo dpkg -i docker-desktop*.deb
      • sudo apt-get install -f
    • Setup ssh authentication to GitHub Step 1 & Step 2
  • NVIDIA - Driver setup

    • nvidia container toolkit install
      • curl -fsSL https://nvidia.github.io/libnvidia-container/gpgkey | sudo gpg --dearmor -o /usr/share/keyrings/nvidia-container-toolkit-keyring.gpg \ && curl -s -L https://nvidia.github.io/libnvidia-container/stable/deb/nvidia-container-toolkit.list | \ sed 's#deb https://#deb [signed-by=/usr/share/keyrings/nvidia-container-toolkit-keyring.gpg] https://#g' | \ sudo tee /etc/apt/sources.list.d/nvidia-container-toolkit.list
      • sudo apt-get update
      • sudo apt-get install -y nvidia-container-toolkit
    • Configure docker
      • sudo nvidia-ctk runtime configure --runtime=docker
      • systemctl --user restart docker
      • nvidia-ctk runtime configure --runtime=docker --config=$HOME/.config/docker/daemon.json
      • systemctl --user restart docker
      • sudo nvidia-ctk config --set nvidia-container-cli.no-cgroups --in-place
    • Install cuda & cuda-driver & wget downloads . Note - Below versions are applicable as of March 30, 2024. You will have different version later. This is only a guide of steps.
  • llm-recipes library

  • https://jupyter.org/install : pip install notebook/ jupyter notebook