19–25 Oct 2024
Europe/Zurich timezone

Scaling TraceWin beam dynamics simulations on Kubernetes for Reinforcement Learning training

21 Oct 2024, 15:18
57m
Ground floor lobby

Ground floor lobby

Poster Track 5 - Simulation and analysis tools Poster session

Speaker

Daniel Lupu (INFN-LNL)

Description

Reinforcement Learning is emerging as a viable technology to implement autonomous beam dynamics setup and optimization in particle accelerators. A Deep Learning agent can be trained to efficiently explore the parameter space of an accelerator control system and converge to the optimal beam setup much faster than traditional methods. Training these models requires programmatic execution of a high volume of simulations. This contribution introduces pytracewin, a Python wrapper of the TraceWin beam dynamics simulator, which exposes simple methods to run simulations and retrieve results. It can be easily combined with the large Python ecosystem of Machine Learning and Reinforcement Learning libraries to develop optimization models. Still, the training process is computationally constrained by the number of simulations that can be run in a reasonable time. It is thus crucial to scale such workload on a dedicated computing infrastructure while retaining a simple high-level user interface.
We exploit Ray, an open-source library, to enable embarrassingly parallel execution of TraceWin simulations on Kubernetes, using a dynamically scalable number of workers and requiring minimal user code modifications. Workers are instantiated with a custom docker image combining Ray and pytracewin. The approach is validated using two Kubernetes clusters on INFN Cloud and CloudVeneto to simulate the ADIGE beam line at Legnaro National Laboratories.

Primary authors

Mr Davide Marcato (Istituto Nazionale di Fisica Nucleare) Daniel Lupu (INFN-LNL)

Co-authors

Mr Luca Bellan (INFN-LNL) Massimo Biasotto (INFN Legnaro) Michele Comunian Sergio Fantinel (Universita e INFN, Padova (IT)) Michele Gulmini (Universita e INFN, Legnaro (IT)) Lisa Zangrando (Universita e INFN, Padova (IT))

Presentation materials

There are no materials yet.