mirror of https://github.com/THUDM/ChatGLM-6B
add init_process_group
parent
9afc36ae50
commit
921d9d4f13
|
@ -47,7 +47,7 @@ from arguments import ModelArguments, DataTrainingArguments
|
|||
logger = logging.getLogger(__name__)
|
||||
|
||||
def main():
|
||||
|
||||
torch.distributed.init_process_group(backend='nccl')
|
||||
parser = HfArgumentParser((ModelArguments, DataTrainingArguments, Seq2SeqTrainingArguments))
|
||||
if len(sys.argv) == 2 and sys.argv[1].endswith(".json"):
|
||||
# If we pass only one argument to the script and it's the path to a json file,
|
||||
|
|
Loading…
Reference in New Issue