---
title: link_retry_count
description: "| 产品 | 是否支持 |"
url: https://www.hiascend.com/document/detail/zh/canncommercial/latest/API/hixlug/llmprv2_42_0026.html
sourcePath: /source/zh/canncommercial/900/API/hixlug/llmprv2_42_0026.html
indexId: 4bbfe71ee5cf84a19c37c4bb221af19cb9880d20d66bb829a0e7bc9c4d1dfea561
---
# link_retry_count

#### 产品支持情况

| 产品 | 是否支持 |
| --- | --- |
| Atlas 350 加速卡 | x |
| Atlas A3 训练系列产品 / Atlas A3 推理系列产品 | √ |
| Atlas A2 训练系列产品 / Atlas A2 推理系列产品 | √ |
| Atlas 200I/500 A2 推理产品 | x |
| Atlas 推理系列产品 | x |
| Atlas 训练系列产品 | x |


说明：针对 Atlas A2 训练系列产品 / Atlas A2 推理系列产品 ，仅支持Atlas 800I A2 推理服务器、A200I A2 Box 异构组件。


#### 函数功能

用于配置HCCL建链失败的重试次数。


#### 函数原型

```
link_retry_count(link_retry_count)
```


#### 参数说明

| 参数名称 | 数据类型 | 取值说明 |
| --- | --- | --- |
| link\_retry\_count | int | 用于配置HCCL建链失败的重试次数，单位是次，在总超时时间内会根据重试次数来进行重试。 取值范围为[1, 100]，默认值为1，可不配置，不配置自动传入1。 |


#### 调用示例

```
from llm_datadist import LLMConfig
llm_config = LLMConfig()
llm_config.link_retry_count = 2
```


#### 返回值

正常情况下无返回值。

参数错误可能抛出TypeError或ValueError。


#### 约束说明

无
