---
title: 在estimator模式下，执行train_and_evaluate时提示显存不足-昇腾社区
description: 在estimator模式下，执行train_and_evaluate时报错，提示显存不足：Sum of total mem_offset:26496001536 and var_mem_size:11776003072 is greater than memory manager malloc max size 33285996544。
keywords: estimator模式；显存不足
url: https://www.hiascend.com/document/caselibrary/detail/topic_0000002176651049
section: (其他)
---

# 在estimator模式下，执行train_and_evaluate时提示显存不足-昇腾社区

URL: https://www.hiascend.com/document/caselibrary/detail/topic_0000002176651049
描述: 在estimator模式下，执行train_and_evaluate时报错，提示显存不足：Sum of total mem_offset:26496001536 and var_mem_size:11776003072 is greater than memory manager malloc max size 33285996544。
关键词: estimator模式；显存不足

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

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

在estimator模式下，执行train_and_evaluate时提示显存不足

在estimator模式下，执行train_and_evaluate时提示显存不足

2025/01/07

904

问题信息

| 问题来源 | 产品大类 | 产品子类 | 关键字 |
| --- | --- | --- | ---|
| 官方 | 模型训练 | Rec SDK | estimator模式；显存不足 |

#### 问题现象描述

在estimator模式下，执行train_and_evaluate时报错，提示显存不足：Sum of total mem_offset:26496001536and var_mem_size:11776003072is greater than memory manager malloc max size33285996544。

#### 原因分析

在train_and_evaluate模式下，若未启用动态扩容会两次建表，如果表特别大的话可能会导致显存不足。

#### 解决措施

可以改成扩容模式进行规避，扩容模式只会建一次表；或者减小batch size。

本页内容

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