Skip to content

mirjunaid26/hpc_containers

Repository files navigation

HPC Containers

Welcome to the advanced Apptainer (formerly Singularity) tutorial. This guide is designed for High Performance Computing (HPC) users and Data Scientists who want to leverage containers for reproducible research.

Prerequisites

  • Basic familiarity with Linux command line.
  • Access to a system with Apptainer installed (or Singularity).
  • Basic understanding of what a container is (e.g., Docker experience is helpful but not required).

Table of Contents

  1. Basics & Fundamentals

    • Understanding Apptainer architecture.
    • Converting Docker containers.
    • Interactive vs Batch execution.
  2. Python Environment Management

    • Building custom Python environments.
    • Conda vs System packages.
    • Best practices for image size.
  3. Advanced Definition Files

    • The anatomy of a .def file.
    • %post, %environment, %runscript, %test sections.
    • Multi-stage builds.
  4. HPC Integration (GPU & MPI)

    • Using NVIDIA GPUs (--nv).
    • MPI Support and Bind Paths.
    • Running on Slurm/PBS.
  5. LLM Training on HPC

    • Setup for HuggingFace & NVIDIA.
    • Cache management.
    • Distributed training basics.

Exercises

You will find hands-on exercises in the exercises/ directory. Each module will reference specific files there.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages