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__)
|
logger = logging.getLogger(__name__)
|
||||||
|
|
||||||
def main():
|
def main():
|
||||||
|
torch.distributed.init_process_group(backend='nccl')
|
||||||
parser = HfArgumentParser((ModelArguments, DataTrainingArguments, Seq2SeqTrainingArguments))
|
parser = HfArgumentParser((ModelArguments, DataTrainingArguments, Seq2SeqTrainingArguments))
|
||||||
if len(sys.argv) == 2 and sys.argv[1].endswith(".json"):
|
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,
|
# If we pass only one argument to the script and it's the path to a json file,
|
||||||
|
|
Loading…
Reference in New Issue