ML Inference on heterogeneous architectures using SOFIE

Description

SOFIE (System for Optimized Fast Inference code Emit) is a Machine Learning Inference Engine within TMVA (Toolkit for Multivariate Data Analysis) in ROOT. SOFIE offers a parser capable of converting ML models trained in Keras, PyTorch, or ONNX format into its own Intermediate Representation, and generates C++ functions that can be easily invoked for fast inference of trained neural networks. Using the IR, SOFIE can produce C++ header files that can be seamlessly included and used in a ‘plug-and-go’ style.

SOFIE currently supports various Machine Learning operators defined by the ONNX standards, as well as a Graph Neural Network (GNN) implementation. It supports the parsing and inference of Graph Neural Networks trained using DeepMind Graph Nets.

As SOFIE continues to evolve, there’s a need to enable inference on heterogeneous architectures, especially GPUs. Experiments on integrating SOFIE with the alpaka library is continuing to generate C++ code that can be executed in different architectures. This project aims to extend the SOFIE-alpaka implementation by implementing alpaka kernels for several ML operations.

Task ideas

In this project, the contributor will gain experience with GPU programming and its role in Machine Learning inference. They will start by understanding SOFIE and the alpaka library. After understanding the SOFIE-alpaka integration, the contributor will implement alpaka kernels for inference on heterogeneus architectures, ensuring the code is efficient and well-integrated with GPU backends.

Expected results and milestones

Requirements

AI Policy

AI assistance is permitted. The applicant is fully accountable for all code and results and must disclose AI use for non-routine work (e.g., algorithm design, architecture, complex reasoning). Routine use for grammar or formatting does not need to be reported.

How to apply

Once CERN/HSF is accepted as a GSoC org, please write an email with a short introduction to your interests and background to the mentors with the string “gsoc26” in the subject. There will be a small evaluation task that we will mail to you then.

Mentors

Additional Information

Corresponding Project

Participating Organizations