Spaces:
Sleeping
Sleeping
Upload run_cloud_training.py with huggingface_hub
Browse files- run_cloud_training.py +1 -1
run_cloud_training.py
CHANGED
@@ -574,7 +574,7 @@ def train(config_path, dataset_name, output_dir, upload_to_hub=False, hub_repo_n
|
|
574 |
# Check if it's an L40S or high-memory GPU
|
575 |
if "L40S" in gpu_info.name or gpu_info.total_memory > 40e9:
|
576 |
logger.info("Detected L40S GPU - optimizing for high-memory GPU")
|
577 |
-
per_device_train_batch_size = training_config.get("per_device_train_batch_size",
|
578 |
else:
|
579 |
# Use a smaller batch size for other GPUs
|
580 |
per_device_train_batch_size = 2
|
|
|
574 |
# Check if it's an L40S or high-memory GPU
|
575 |
if "L40S" in gpu_info.name or gpu_info.total_memory > 40e9:
|
576 |
logger.info("Detected L40S GPU - optimizing for high-memory GPU")
|
577 |
+
per_device_train_batch_size = training_config.get("per_device_train_batch_size", 2)
|
578 |
else:
|
579 |
# Use a smaller batch size for other GPUs
|
580 |
per_device_train_batch_size = 2
|