mirror of
https://github.com/hiyouga/LLaMA-Factory.git
synced 2025-12-16 20:00:36 +08:00
update data processors
This commit is contained in:
@@ -72,7 +72,7 @@ def main():
|
||||
elif command == Command.EXPORT:
|
||||
export_model()
|
||||
elif command == Command.TRAIN:
|
||||
disable_torchrun = os.environ.get("DISABLE_TORCHRUN", "0").lower() in ["true", "1"]
|
||||
disable_torchrun = os.environ.get("TORCHRUN_DISABLED", "0").lower() in ["true", "1"]
|
||||
if disable_torchrun and get_device_count() > 1:
|
||||
logger.warning("`torchrun` cannot be disabled when device count > 1.")
|
||||
disable_torchrun = False
|
||||
|
||||
Reference in New Issue
Block a user