Ankush Raj Devi
Work

Magma

MLOps automation suite for HPC: fine-tuning, model serving and Docker-to-Singularity conversion.

Barcelona Supercomputing Center

Magma automates the repetitive parts of running models on a supercomputer: launching fine-tuning jobs, serving models and converting Docker images to Singularity so they run on the cluster.

Before it, every team trained, served and evaluated models on its own, rebuilding the same jobs by hand: container images, SLURM scripts, tunnels to reach a model. Doing it right took HPC knowledge not everyone had, and scripts that nobody owned broke over time.

Magma puts that work in one place. The MLOps team maintains a single set of reusable GitHub Actions workflows, and every team uses them, or contributes back, instead of keeping its own scripts.

It is used across about 40 repositories and runs more than 7,000 times a year.

How it works

repositories use it
~40
runs a year
7k+
  • MagmaReusable GitHub Actions workflows, maintained in one place for every team.

    • Launch2HPCThe template repository that calls those workflows.

      • A fork per teamWith its own secrets and config.yml. Each branch is one job on the supercomputer, tracked in MLflow.

What a job can run

  • Serve models with vLLM or TGI
  • Fine-tune LLMs: full, LoRA, QLoRA
  • Build Singularity images and sandboxes
  • Launch JupyterLab
  • Open tunnels to the cluster
  • Run a custom script

How a team uses it

  1. Fork Launch2HPC.
  2. Add the secrets and variables that give it access to the cluster.
  3. Create a branch for the job.
  4. Set the task and its resources in config.yml.
  5. Launch the job from that branch.
  6. Follow the run in MLflow.

Next project

All work