Skip to content
 
 

Latest commit

 

History

31 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PiClub-Bot

.env vs data/config.yaml

The .env file is for secrets, like the Discord bot's token, the Discord guild ID, the Ollama host, etc. Every instance of the bot will have different values in the .env file.

The data/config.yaml file is for general config that can be shared between different instances of the bot. You can distribute your data/config.yaml file to someone else, and they will be able to run their own bot that will act pretty much the same as yours. It will use the same LLM model, the same system prompt, the same resource links, etc.

Project structure

Install Nvidia Container Toolkit

https://hub.docker.com/r/ollama/ollama

  1. Configure the repository
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
  1. Install the NVIDIA Container Toolkit packages
sudo apt-get install -y nvidia-container-toolkit
  1. Configure Docker to use Nvidia driver
sudo nvidia-ctk runtime configure --runtime=docker
sudo systemctl restart docker

About

The official bot for the BTC Rasperry Pi Club Discord server

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages