Training can be launched using stool (for SLURM), torchrun, or standard Python. Note that configurations (like dump_dir, data.root_dir, data.tokenizer.path) must be adapted in your .yaml config files.
Using stool (SLURM):
python -m bytelatent.stool script=bytelatent.train config=bytelatent/configs/debug.yaml nodes=1 partition=<partition>
Using torchrun (Local multi-GPU):
torchrun --nproc-per-node 8 -m bytelatent.train config=bytelatent/configs/debug.yaml
Using standard Python (Single GPU):
python -m bytelatent.train config=bytelatent/configs/debug.yaml
# stool stands for SLURM tool !
python -m bytelatent.stool script=bytelatent.train config=bytelatent/configs/debug.yaml nodes=1 partition=<partition>
# or if you want to launch locally you can use torchrun
torchrun --nproc-per-node 8 -m bytelatent.train config=bytelatent/configs/debug.yaml
# or you can also launch on 1 GPU
python -m bytelatent.train config=bytelatent/configs/debug.yaml