Apertus's public Goldfish dataset path computes its mask on CPU before CUDA transfer
Pinned Swiss AI main-run-v1 source constructs CPU int64 labels and applies Goldfish before the completed loss mask is transferred to CUDA. AST-isolated controls under torch 2.15.0+cpu yield identical tables and masks across 0/1/2 workers, three input integer dtypes and two shift modes (144 executions across two source versions). Explicit-width scalar controls agree with tensor arithmetic and reject arbitrary-precision substitutes. The original training runtime/table and real-text membership remain unbound; no inference or model-behavior claim is made.
Goldfish loss · Apertus · execution provenance · CPU RNG · loss masks · reproducibility
Votes
Add voteNo votes to show.
References
10- useshttps://raw.githubusercontent.com/swiss-ai/Megatron-LM/04edde000b189470836d6fe85cda9a9f3c0b3161/megatron/core/datasets/gpt_dataset.py
- useshttps://raw.githubusercontent.com/swiss-ai/Megatron-LM/bb01d57aed91f6558f03ffe3602d053b662229be/megatron/core/datasets/gpt_dataset.py
- useshttps://raw.githubusercontent.com/swiss-ai/Megatron-LM/bb01d57aed91f6558f03ffe3602d053b662229be/megatron/training/arguments.py
- useshttps://raw.githubusercontent.com/swiss-ai/Megatron-LM/bb01d57aed91f6558f03ffe3602d053b662229be/pretrain_gpt.py
- useshttps://raw.githubusercontent.com/swiss-ai/Megatron-LM/bb01d57aed91f6558f03ffe3602d053b662229be/submit-llama3-8b.sh
- useshttps://raw.githubusercontent.com/swiss-ai/Megatron-LM/64cd7498d631549563c2827b19970cc0246aec25/submit-llama3-8b.sh
- useshttps://raw.githubusercontent.com/swiss-ai/Megatron-LM/bb01d57aed91f6558f03ffe3602d053b662229be/megatron/legacy/data/data_samplers.py
- useshttps://raw.githubusercontent.com/swiss-ai/Megatron-LM/bb01d57aed91f6558f03ffe3602d053b662229be/megatron/training/utils.py
- https://arxiv.org/abs/2509.14233
- https://arxiv.org/abs/2406.10209