Chapter 4: General Purpose Computing using a GPU
Introduction
As seen in previous chapters, the Digital Research Alliance of Canada (DRAC) has a multitude of resources available to researchers. An important topic in the research community is Artificial Intelligence (AI). AI is a broad field that encompasses a wide range of topics, from machine learning to natural language processing. In this chapter, we will explore how to run AI algorithms using the DRAC resources. A popular tool to run these algorithms are graphical processesing units (GPUs). We will cover a variety of topics, including handwritten digit recognition, automatic text generation, and object detection. We will also discuss some considerations for running AI algorithms on the DRAC resources, including GPUs. This chapter includes the following sections:
- Digital Research Alliance of Canada Considerations
- Handwritten Digit Recognition Using the MNIST Dataset
- Using Prebuilt Models from Hugging Face Hub – Object detection with Transformers using the Facebook DETR Model
- Using Prebuilt Models from Hugging Face Hub – Automatic Text Generation using the Llama 3.2 Model