This commit is contained in:
Zchen
2025-10-12 20:59:55 +08:00
parent db6108f250
commit 12d571c70b
2 changed files with 1 additions and 2 deletions

View File

@@ -19,7 +19,7 @@ mode: train
use_amp: true # whether to use automatic mixed precision (AMP) for training
# TPU and distributed training settings
use_tpu: false # whether to use TPU for training (set to true for TPU)
use_tpu: true # whether to use TPU for training (set to true for TPU)
num_tpu_cores: 8 # number of TPU cores to use (typically 8 for v3-8 or v4-8)
gradient_accumulation_steps: 1 # number of gradient accumulation steps for distributed training
dataloader_num_workers: 0 # set to 0 for TPU to avoid multiprocessing issues

View File

@@ -46,7 +46,6 @@ class BrainToTextDecoder_Trainer:
gradient_accumulation_steps=args.get('gradient_accumulation_steps', 1),
log_with=None, # We'll use our own logging
project_dir=args.get('output_dir', './output'),
even_batches=False, # Required for batch_size=None DataLoaders
)