0
0
MLOpsdevops~5 mins

GPU support in containers in MLOps - Cheat Sheet & Quick Revision

Choose your learning style9 modes available
Recall & Review
beginner
What is the main purpose of GPU support in containers?
GPU support in containers allows applications running inside containers to use the computer's GPU hardware for faster processing, especially useful for tasks like machine learning and data processing.
Click to reveal answer
beginner
Which NVIDIA tool helps containers access GPU resources easily?
NVIDIA provides the 'NVIDIA Container Toolkit' which enables containers to use NVIDIA GPUs by integrating GPU drivers and libraries inside the container environment.
Click to reveal answer
intermediate
How do you run a Docker container with GPU support using NVIDIA runtime?
You run the container with the flag: docker run --gpus all <image>. This tells Docker to give the container access to all GPUs on the host machine.
Click to reveal answer
beginner
Why can't containers use GPUs by default without special setup?
Containers are isolated and do not have direct access to hardware like GPUs. Special drivers and runtimes are needed to bridge this gap and allow GPU usage inside containers.
Click to reveal answer
intermediate
Name one common environment variable used inside containers to detect GPU availability.
The environment variable CUDA_VISIBLE_DEVICES is often used to specify which GPUs a containerized application can see and use.
Click to reveal answer
Which command flag enables GPU support when running a Docker container?
A--use-gpu
B--enable-gpu
C--gpus all
D--gpu-access
What does the NVIDIA Container Toolkit provide?
AA way for containers to access NVIDIA GPUs
BA new GPU hardware
CA container orchestration tool
DA GPU monitoring dashboard
Why do containers need special setup to use GPUs?
ABecause containers only run on CPUs
BBecause containers isolate hardware access by default
CBecause GPUs are not compatible with containers
DBecause GPUs require internet access
Which environment variable controls GPU visibility inside a container?
AGPU_ACCESS_LEVEL
BNVIDIA_GPU_FLAG
CCONTAINER_GPU
DCUDA_VISIBLE_DEVICES
What is a common use case for GPU support in containers?
AMachine learning model training
BSimple text editing
CWeb page hosting
DFile storage
Explain how GPU support works in containers and why it is important.
Think about how containers normally isolate hardware and what tools help bridge that gap.
You got /5 concepts.
    Describe the steps to run a container with GPU support using Docker.
    Consider what setup is needed on the host and the command to start the container.
    You got /4 concepts.