Setting up your computer#

This chapter provides instructions for setting up your computer.

Setting up Python and Conda environments#

When working with Python, we will make use of many plugins and software libraries which need to be organized. One way of doing this, is by managing Conda environments. A conda environment can be seen as a virtual desktop, or virtual computer, accessible via the terminal. If you install some software into one Conda environment, it may not be accessible from another environment. If a Conda environment breaks, e.g. incompatible software was installed, you can just make a new one and start over.

See also

Install Mini-Forge#

Download and install miniforge. We recommend the distribution miniforge of conda. If you already have an old [Ana]conda installation you haven’t touched for a while, it is recommended to uninstall it and install mini-forge instead.

For ease-of-use, it is recommended to install it for your use only and to add Conda to the PATH variable during installation.

img.png

img.png

Setting up a conda environment#

You can create a conda environment using this commands from the terminal.

conda env create -f https://raw.githubusercontent.com/ScaDS/secai-llm-training/main/docs/00_setup/environment.yml

Activating the environment#

Activate the environment:

conda activate secai-llm

Setting up VPN to TU-Dresden#

You will need a VPN-connection to TU Dresden. Install everything necessary as explained on this page. If you need a Guest Account at TU Dresden, please reach out to the SECAI School Coordinator.

Setting up API keys#

For executing the exercises in this notebook collection, you will get a ScaDS.AI API Key: download ZIP; the password will be provided on-site. If you want to use the notebooks later on, you need to get your own ScaDS.AI API key. Some notebooks will also work with Kisski/GWDG and Blablador/Helmholtz API Keys. These services are free to use for Germen academics.

You can then save these keys in the environment variables, e.g. as SCADSAI_API_KEY, BLABLADOR_API_KEY and/or KISSKI_API_KEY of your computer as explained on this page.

Installing ollama#

Optional: To make use of the ollama-based local models, please install ollama. The notebooks in this folder were tested with ollama version 0.5.7. For this, it is recommended to use a computer with an NVidia Graphics Card.

Consider downloading these open-weight models to run them locally:

You can do this by running these commands:

ollama run llava
ollama run mistral:v0.3
ollama run deepseek-r1
ollama run llama3.1

Note: You can print out which models you have downloaded like this:

ollama list