---
title: 在进行模型分布式训练时遇到报错“host not found.”-Atlas Community
description: (待补充)
keywords: 在进行模型分,布式训练时遇,到报错,Atlas,Community,问题现象描述,原因分析,解决措施
url: https://www.hiascend.com/document/caselibrary/detail/topic_0000001538748902
section: (其他)
---

# 在进行模型分布式训练时遇到报错“host not found.”-Atlas Community

URL: https://www.hiascend.com/document/caselibrary/detail/topic_0000001538748902
描述: (待补充)
关键词: 在进行模型分,布式训练时遇,到报错,Atlas,Community,问题现象描述,原因分析,解决措施

昇腾文档 [了解详情](https://www.hiascend.com/document)

故障案例 [了解详情](https://www.hiascend.com/document/caselibrary)

在进行模型分布式训练时遇到报错“host not found.”

在进行模型分布式训练时遇到报错“host not found.”

2023/06/06

993

No rating yet

Rate This Document

问题信息

| 问题来源 | 产品大类 | 关键字 |
| --- | --- | ---|
| 官方 | 模型训练 | -- |

#### 问题现象描述

- 报错截图
- 报错文本

```
……
Process process 6:
Traceback (most recent call last):
……
ValueError: host not found: Name or service not known
Process process 7:
……
```

#### 原因分析

对模型进行分布式训练时，会调用集合通信模块HCCL，需要根据实际情况设置IP和端口信息。根据报错信息，是IP地址设置错误。

#### 解决措施

在运行脚本中设置正确的IP地址，对于单机情况，设置为本机的IP地址即可；对于多机情况，每个服务器上脚本中的IP需要设置为master节点的IP。

本页内容

- 问题信息
- 问题现象描述
- 原因分析
- 解决措施
