---
title: 多机无法拉起DeepSeek-R1模型，modeling_utils.py报错-Atlas Community
description: 在服务化拉起过程中，若出现if metadata.get("format") not in ["pt", "tf", "flax", "mix"]: AttributeError: "NoneType" object has no attribute 'get';报错。
keywords: TLS，HCCL，AllReduce，通信，DeepSeek，推理
url: https://www.hiascend.com/document/caselibrary/detail/topic_0000002194637756
section: (其他)
---

# 多机无法拉起DeepSeek-R1模型，modeling_utils.py报错-Atlas Community

URL: https://www.hiascend.com/document/caselibrary/detail/topic_0000002194637756
描述: 在服务化拉起过程中，若出现if metadata.get("format") not in ["pt", "tf", "flax", "mix"]: AttributeError: "NoneType" object has no attribute 'get';报错。
关键词: TLS，HCCL，AllReduce，通信，DeepSeek，推理

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

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

多机无法拉起DeepSeek-R1模型，modeling_utils.py报错

多机无法拉起DeepSeek-R1模型，modeling_utils.py报错

2025/03/07

1.2k

No rating yet

Rate This Document

问题信息

| 问题来源 | 产品大类 | 关键字 |
| --- | --- | ---|
| 现网 | 模型推理 | TLS，HCCL，AllReduce，通信，DeepSeek，推理 |

#### 问题现象描述

在服务化拉起过程中，若出现if metadata.get("format") not in ["pt", "tf", "flax", "mix"]: AttributeError: "NoneType" object has no attribute 'get';报错。

#### 原因分析

输入的权重中缺少metadata字段。

#### 解决措施

1. 排查日志modeling_utils.py报错。

1. 安装更新transformers版本为 4.46.3。

本页内容

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