THUDM / SwissArmyTransformer

SwissArmyTransformer is a flexible and powerful library to develop your own Transformer variants.

Home Page:https://THUDM.github.io/SwissArmyTransformer

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

GLM生成脚本

maojinyang opened this issue · comments

GLM的生成脚本在执行时一直有下面的报错:

Traceback (most recent call last):
  File "/GLM/GLM_generation/inference_glm.py", line 198, in <module>
    args = get_args(args_list)
  File "/miniconda3/envs/MGLM/lib/python3.9/site-packages/SwissArmyTransformer/arguments.py", line 385, in get_args
    initialize_distributed(args)
  File "/miniconda3/envs/MGLM/lib/python3.9/site-packages/SwissArmyTransformer/arguments.py", line 420, in initialize_distributed
    torch.distributed.init_process_group(
  File "/miniconda3/envs/MGLM/lib/python3.9/site-packages/torch/distributed/distributed_c10d.py", line 520, in init_process_group
    store, rank, world_size = next(rendezvous_iterator)
  File "/miniconda3/envs/MGLM/lib/python3.9/site-packages/torch/distributed/rendezvous.py", line 142, in _tcp_rendezvous_handler
    store = TCPStore(result.hostname, result.port, world_size, start_daemon, timeout)
RuntimeError: Address already in use

多次修改端口号都会有这样的问题