Hoppa till huvudinnehåll
Vetenskaplig publikation

Modalities, a PyTorch-native Framework For Large-scale LLM Training and Research

Författare: Max Lübbering (Fraunhofer IAIS, Lamarr Institute, Germany) Timm Ruland (Fraunhofer IAIS, Germany) Richard Rutmann (Fraunhofer IAIS, Germany) Felix Stollenwerk (AI Sweden) David Fitzek (Fraunhofer IAIS, Germany) Michael Fromm (Fraunhofer IAIS, Lamarr Institute, Germany) Alexander Weber (Fraunhofer IAIS, Lamarr Institute, Germany) Rafet Sifa (Fraunhofer IAIS, University of Bonn) Nicolas Flores-Herr (Fraunhofer IAIS, Germany) Joachim Köhler (Fraunhofer IAIS, Germany) Mehdi Ali (Fraunhofer IAIS, Lamarr Institute, Germany)
Federerad inlärning Maskininlärning

Today's LLM (pre-) training and research workflows typically allocate a significant amount of compute to large-scale ablation studies. Despite the substantial compute costs of these ablations, existing open-source frameworks provide limited tooling for these experiments, often forcing researchers to write their own wrappers and scripts. We propose Modalities, an end-to-end PyTorch-native framework that integrates data-driven LLM research with large-scale model training from two angles. Firstly, by integrating state-of-the-art parallelization strategies, it enables both efficient pretraining and systematic ablations at trillion-token and billion-parameter scale. Secondly, Modalities adopts modular design with declarative, self-contained configuration, enabling reproducibility and extensibility levels that are difficult to achieve out-of-the-box with existing LLM training frameworks.