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

#### 产品支持情况

| 产品 | 是否支持 |
| --- | --- |
| 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 异构组件。


#### 函数功能

用于配置RDMA网卡的service level。


#### 函数原型

```
rdma_service_level(self, rdma_service_level: int)
```


#### 参数说明

| 参数名称 | 数据类型 | 取值说明 |
| --- | --- | --- |
| rdma\_service\_level | int | 用于配置RDMA网卡的service level。和环境变量HCCL\_RDMA\_SL功能相同，如同时配置，当前option优先级更高；未同时配置，以配置的一方为准。 取值范围为[0, 7]，默认值为4。 更多信息请参考《环境变量参考(https://www.hiascend.com/document/detail/zh/canncommercial/900/maintenref/envvar/envref\_07\_0001.html)》。 |


#### 调用示例

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


#### 返回值

正常情况下无返回值。

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


#### 约束说明

无。
