| Issue |
EPJ Web Conf.
Volume 337, 2025
27th International Conference on Computing in High Energy and Nuclear Physics (CHEP 2024)
|
|
|---|---|---|
| Article Number | 01005 | |
| Number of page(s) | 8 | |
| DOI | https://doi.org/10.1051/epjconf/202533701005 | |
| Published online | 07 October 2025 | |
https://doi.org/10.1051/epjconf/202533701005
Scaling TraceWin beam dynamics simulations on Kubernetes for Reinforcement Learning training
1 INFN - LNL
2 INFN - CNAF
3 Università degli Studi di Padova
4 INFN Padova
* e-mail: daniel.lupu@cnaf.infn.it
Published online: 7 October 2025
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 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 opensource library, to enable embarrassingly parallel execution of TraceWin simulations on Kubernetes (K8s), 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 K8s clusters on INFN Cloud to simulate the ADIGE (Acceleratore Di Ioni a Grande Carica Esotici) beam line at Legnaro National Laboratories.
© The Authors, published by EDP Sciences, 2025
This is an Open Access article distributed under the terms of the Creative Commons Attribution License 4.0, which permits unrestricted use, distribution, and reproduction in any medium, provided the original work is properly cited.
Current usage metrics show cumulative count of Article Views (full-text article views including HTML views, PDF and ePub downloads, according to the available data) and Abstracts Views on Vision4Press platform.
Data correspond to usage on the plateform after 2015. The current usage metrics is available 48-96 hours after online publication and is updated daily on week days.
Initial download of the metrics may take a while.

