Institute of Computer Science
Courses.cs.ut.ee Institute of Computer Science University of Tartu
  1. Courses
  2. 2025/26 spring
  3. Parallelism in Deep Learning (LTAT.06.030)
ET
Log in

Parallelism in Deep Learning 2025/26 spring

  • Pealeht
  • Loengud
  • Laborid
  • Viited

Practical sessions:

Part 1: Foundations of Parallelism & Deep Learning (Weeks 1–4)

  • Practical 1: Implement a toy neural network in PyTorch and visualize forward/backward passes.
  • Practical 2: Compare matrix multiplication speeds using NumPy on the CPU versus PyTorch on the GPU.
  • Practical 3: Profile a CNN training script and identify the main bottlenecks.
  • Practical 4: Lecture is theoretical; practical implementation is deferred to later sessions.

Part 2: Core Parallel Strategies in Practice (Weeks 5–11)

  • Practical 5: Convert a single-GPU training script to use torch.nn.DataParallel and observe its sequential bottleneck.
  • Practical 6: Convert the single-GPU script to use DDP (with torchrun) and compare its performance against the DP implementation.
  • Practical 7: Train a model with AMP and gradient accumulation to observe the benefits and practice DDP launch configurations.
  • Practical 8: Apply basic model parallelism by distributing layers and tensors of a feedforward network across multiple devices.
  • Practical 9: Explain pipeline parallelism with toy examples and outline implementation steps using a theoretical module.
  • Practical 10: Design a hybrid DDP+PP strategy for a toy transformer in PyTorch, analyzing pros, cons, and communication costs.
  • Practical 11: Recap and Project Q&A.

Part 3: Project Work and Assessment (Weeks 12–16)

  • Practical 12: Project Work Session 1
  • Practical 13: Project Work Session 2
  • Practical 14: Project Work Session 3
  • Practical 15: Final Project Presentations
  • Practical 16: Final Exam / Assessment
  • Institute of Computer Science
  • Faculty of Science and Technology
  • University of Tartu
In case of technical problems or questions write to:

Contact the course organizers with the organizational and course content questions.
The proprietary copyrights of educational materials belong to the University of Tartu. The use of educational materials is permitted for the purposes and under the conditions provided for in the copyright law for the free use of a work. When using educational materials, the user is obligated to give credit to the author of the educational materials.
The use of educational materials for other purposes is allowed only with the prior written consent of the University of Tartu.
Terms of use for the Courses environment