πŸ”₯ Deep Learning for the Humanities

Welcome to the 23/24 rendition of this Workshop!

Welcome to the Beginner’s Workshop on Deep Learning! This six-week program is specially designed for those new to deep learning, providing an easy-to-follow, hands-on approach to understanding and applying key concepts. The only requirement is that you should have a solid grasp on the basics of 🐍 Python.

Location: P.J Veth 1.07 DHLab

Time: 13:00-15:00

πŸ’Ό Prepare

To successfully partake in this workshop you should bring the following:

  • Your laptop
  • The notebook need for the week (shared on this website at the appropriate week)

There is no mandatory work. You should take this workshop out of genuine interest and practicing with the notebooks or partaking in some of the biweekly excersises will greatly enhance your understanding of what we will cover. This also goes for the use of LLM & ChatGPT. Using these will make coding these things trivial and very easy. I only recommend using these with the intention of then also understanding the code. Simply copying and pasting will a big waste of your own time.

πŸ“• On Notebooks

As mentioned Python will the our programming language of choice. You should know the basics of this language to succesfully participate. In addition to this we will make use of iPython notebooks in Google Collab. Google collab does require you to have a google account with storage room. If you for whatever reason do not want to make use of Google collab, please following the local install instructions and download the notebooks onto your own device.

The reason for this is that after week 3, running the code on your own device will be difficult for most as training neural networks requires GPUs (Graphical Processing Units)1. Google Collab provides access to a decent GPU for free to anyone. Allowing you to still make use of a GPU without having one on your laptop and if you do have one, off-load the heavy lifting from your own device.

At the same time, installing PyTorch and Nvidia CUDA on Collab is straightforward and easy.

The links to the notebooks will be provided in the appropriate week and you are able to download them as .ipynb file from Google Collab.

Can I run things locally instead of using Collab?

For those wanting to run everything on their local machine, I welcome you to try. You will need to:

  • install Python
  • set up a Virtual Environment
  • install CUDA
  • install PyTorch
  • Hope that CUDA & PyTorch are linked properly.

These are not extremely challenging things to get right, but not trivial either, particularly on certain πŸͺŸ operating systems…

Steps:

  1. Ensure you have a working Python installation. I recommend using miniconda.
  2. If you have a GPU install CUDA. Make sure you either choose 11.8 or 12.1
  3. Install Pytorch following the instructions here. If using miniconda, you should select Conda as package manager. Also ensure that you select the proper CUDA version if applicable. Copy the entire command it outputs.
    • It would look something like this: conda install pytorch torchvision torchaudio pytorch-cuda=12.1 -c pytorch -c nvidia
  4. Test the installation with a notebook from the sessions.

I will not spend significant time inside the workshop helping you set up your install. Google and YouTube are your best friend here.

πŸ—“οΈ Planning

Session Date Topic
Session 1 6 February Tensors
Session 2 20 February Linear regression (Training Pt 1.)
Session 2 5 March Non-Linear Data (Training Pt 2. & Evaluation)
Session 3 19 March Images as Data
Session 4 2 April Image classification
Session 5 16 April Transfer Learning
Session 6 30 April Spill-over Session

Footnotes

  1. Graphical Processing units are more commonly known as graphics cards or video cards. We will discuss the reasons for this more in week 1.β†©οΈŽ