Loading [MathJax]/jax/output/CommonHTML/config.js
首页
学习
活动
专区
圈层
工具
发布
首页
学习
活动
专区
圈层
工具
社区首页 >问答首页 >Tensorflow/WSL2 GPU内存不足,未使用全部可用?

Tensorflow/WSL2 GPU内存不足,未使用全部可用?
EN

Stack Overflow用户
提问于 2020-09-23 18:48:31
回答 1查看 318关注 0票数 1

所以我试图在WSL2中微调TITAN RTX (24G)的中等型号,但它似乎耗尽了内存?这个小模型很适合。如果我在一个实时的ubuntu上启动我的计算机,我可以训练中型和大型模型的问题。

代码语言:javascript
运行
AI代码解释
复制
2020-09-23 13:19:36.310992: I tensorflow/core/common_runtime/bfc_allocator.cc:905] InUse at 0x23b7a0000 next 260 of size 4194304
2020-09-23 13:19:36.310995: I tensorflow/core/common_runtime/bfc_allocator.cc:905] InUse at 0x23bba0000 next 266 of size 16777216
2020-09-23 13:19:36.310998: I tensorflow/core/common_runtime/bfc_allocator.cc:905] InUse at 0x23cba0000 next 268 of size 16777216
2020-09-23 13:19:36.311001: I tensorflow/core/common_runtime/bfc_allocator.cc:905] InUse at 0x23dba0000 next 270 of size 12582912
2020-09-23 13:19:36.311004: I tensorflow/core/common_runtime/bfc_allocator.cc:905] InUse at 0x23e7a0000 next 272 of size 4194304
2020-09-23 13:19:36.311006: I tensorflow/core/common_runtime/bfc_allocator.cc:905] InUse at 0x23eba0000 next 278 of size 16777216
2020-09-23 13:19:36.311009: I tensorflow/core/common_runtime/bfc_allocator.cc:905] InUse at 0x23fba0000 next 280 of size 16777216
2020-09-23 13:19:36.311012: I tensorflow/core/common_runtime/bfc_allocator.cc:905] InUse at 0x240ba0000 next 282 of size 12582912
2020-09-23 13:19:36.311015: I tensorflow/core/common_runtime/bfc_allocator.cc:905] InUse at 0x2417a0000 next 284 of size 4194304
2020-09-23 13:19:36.311020: I tensorflow/core/common_runtime/bfc_allocator.cc:905] InUse at 0x241ba0000 next 290 of size 16777216
2020-09-23 13:19:36.311023: I tensorflow/core/common_runtime/bfc_allocator.cc:905] InUse at 0x242ba0000 next 18446744073709551615 of size 29360128
2020-09-23 13:19:36.311026: I tensorflow/core/common_runtime/bfc_allocator.cc:898] Next region of size 130543104
2020-09-23 13:19:36.311029: I tensorflow/core/common_runtime/bfc_allocator.cc:905] InUse at 0x2447a0000 next 294 of size 12582912
2020-09-23 13:19:36.311032: I tensorflow/core/common_runtime/bfc_allocator.cc:905] InUse at 0x2453a0000 next 296 of size 4194304
2020-09-23 13:19:36.311035: I tensorflow/core/common_runtime/bfc_allocator.cc:905] InUse at 0x2457a0000 next 302 of size 16777216
2020-09-23 13:19:36.311037: I tensorflow/core/common_runtime/bfc_allocator.cc:905] InUse at 0x2467a0000 next 304 of size 16777216
2020-09-23 13:19:36.311040: I tensorflow/core/common_runtime/bfc_allocator.cc:905] InUse at 0x2477a0000 next 306 of size 12582912
2020-09-23 13:19:36.311043: I tensorflow/core/common_runtime/bfc_allocator.cc:905] InUse at 0x2483a0000 next 308 of size 4194304
2020-09-23 13:19:36.311046: I tensorflow/core/common_runtime/bfc_allocator.cc:905] InUse at 0x2487a0000 next 314 of size 16777216
2020-09-23 13:19:36.311049: I tensorflow/core/common_runtime/bfc_allocator.cc:905] InUse at 0x2497a0000 next 316 of size 16777216
2020-09-23 13:19:36.311052: I tensorflow/core/common_runtime/bfc_allocator.cc:905] InUse at 0x24a7a0000 next 318 of size 12582912
2020-09-23 13:19:36.311055: I tensorflow/core/common_runtime/bfc_allocator.cc:905] InUse at 0x24b3a0000 next 320 of size 4194304
2020-09-23 13:19:36.311058: I tensorflow/core/common_runtime/bfc_allocator.cc:905] Free  at 0x24b7a0000 next 18446744073709551615 of size 13102592
2020-09-23 13:19:36.311061: I tensorflow/core/common_runtime/bfc_allocator.cc:914]      Summary of in-use Chunks by size: 
2020-09-23 13:19:36.311065: I tensorflow/core/common_runtime/bfc_allocator.cc:917] 98 Chunks of size 256 totalling 24.5KiB
2020-09-23 13:19:36.311069: I tensorflow/core/common_runtime/bfc_allocator.cc:917] 113 Chunks of size 4096 totalling 452.0KiB
2020-09-23 13:19:36.311073: I tensorflow/core/common_runtime/bfc_allocator.cc:917] 19 Chunks of size 12288 totalling 228.0KiB
2020-09-23 13:19:36.311076: I tensorflow/core/common_runtime/bfc_allocator.cc:917] 18 Chunks of size 16384 totalling 288.0KiB
2020-09-23 13:19:36.311079: I tensorflow/core/common_runtime/bfc_allocator.cc:917] 1 Chunks of size 32256 totalling 31.5KiB
2020-09-23 13:19:36.311083: I tensorflow/core/common_runtime/bfc_allocator.cc:917] 19 Chunks of size 4194304 totalling 76.00MiB
2020-09-23 13:19:36.311086: I tensorflow/core/common_runtime/bfc_allocator.cc:917] 18 Chunks of size 12582912 totalling 216.00MiB
2020-09-23 13:19:36.311089: I tensorflow/core/common_runtime/bfc_allocator.cc:917] 36 Chunks of size 16777216 totalling 576.00MiB
2020-09-23 13:19:36.311093: I tensorflow/core/common_runtime/bfc_allocator.cc:917] 1 Chunks of size 29360128 totalling 28.00MiB
2020-09-23 13:19:36.311096: I tensorflow/core/common_runtime/bfc_allocator.cc:917] 1 Chunks of size 268435456 totalling 256.00MiB
2020-09-23 13:19:36.311099: I tensorflow/core/common_runtime/bfc_allocator.cc:921] Sum Total of in-use chunks: 1.13GiB
2020-09-23 13:19:36.311102: I tensorflow/core/common_runtime/bfc_allocator.cc:923] total_region_allocated_bytes_: 1222110720 memory_limit_: 68719476736 available bytes: 67497366016 curr_region_allocation_bytes_: 2147483648
2020-09-23 13:19:36.311108: I tensorflow/core/common_runtime/bfc_allocator.cc:929] Stats: 
Limit:                 68719476736
InUse:                  1209008128
MaxInUse:               1209008128
NumAllocs:                     762
MaxAllocSize:            268435456```

Not sure what to do from here..
EN

回答 1

Stack Overflow用户

发布于 2020-12-03 10:19:52

OOM问题的原因可能有很多,下面是一些常见的原因和解决方法。

  • 请确保您不是在同一个GPU上运行评估和培训,这将阻止进程并导致OOM问题。您可以尝试在不同的图形处理器上进行评估。
  • 降低batch size会减慢您的训练速度,但它可以避免出现对象模型问题。
  • 如果您有大量数据,请尝试减小大小,如果它是图像数据,则可以使用tf.data.Dataset格式来减少内存消耗。
票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/64034470

复制
相关文章
ASP.NET中使用Access数据库的困惑
这几天在做ASP.NET网站,后台数据库就用轻便的Access作数据库。我发现Access虽然相对MSSQL简单小巧,不用那么多的设置,但它也不轻松。如果你对它执行SQL语句的操作,万一表名或者字段名使用了它的关键字,那么就会抛出异常,而这些关键字在MSSQL中是很正常的。有时候这会让你苦不堪言。
SAP梦心
2022/05/10
1.6K0
ACCESS数据库基本使用
ACCESS是Office自带的数据库,使用起来非常方便。 相比,其它数据库来说,使用率较低,但是同MYSQL一样,免费。正因为如此,所以很多建站的程序员,还是会选择使用它。 部分代码: 1 <script type="text/javascript" src="js/daohang.js"></script> 2 <script> 3 var _hmt = _hmt || []; 4 (function () { 5 var hm
用户1112962
2018/07/04
5.2K0
使用VBA创建Access数据库
导读: 要处理数据量较大的数据,那么Excel会略显力不从心。特别是数据量大,且使用了Vlookup或大量的数组公式的工作簿,其效率可想而知。 从这方面讲,Excel更适合数据的展示,Access更适合于数据的存储,当然如果数据量超过4GB,那么你可能要选择SQLSERVER或其他大型数据库。针对小微型企业,一般情况下Access已经足够。 下面,介绍如何创建Access数据库,后续会介绍如何在Access数据库中建表,以及如何使用SQL语言管理数据库及查询数据,并将结果展示在Excel工作表中。 操作演示
企鹅号小编
2018/01/26
2.8K0
Python使用ADODB操作ACCESS数据库
第一步、分别创建ACCESS数据库文件MyDB.mdb和MyDB.accdb,在数据库中创建数据表“学生信息表”,包含学号、姓名、年龄、性别这几个字段。如图:
Python小屋屋主
2019/07/22
2.4K0
Access数据库
 数据库系统(DBS)是指拥有数据库技术支持的计算机系统  DBA:数据库管理员  DBS包括DB 和
青灯古酒
2023/10/16
3750
access数据库入门教程_数据库access基础教学
Jet Database Engine 用于与 Access (.mdb) 数据库中的数据配合使用,它支持 ANSI SQL-89 标准。但是,Access 数据库中的数据访问页是通过使用 ActiveX Data Objects (ADO) 和 Jet OLEDB 提供者连接至 Jet 的。ADO 和 OLEDB 总是使用 ANSI SQL-92 语法。因此,数据访问页必须使用 ANSI SQL-92 语法。这意味着绑定到同一查询的窗体和页可能返回不同的结果数据集。
全栈程序员站长
2022/09/27
4K0
access数据库入门教程_数据库access基础教学
access数据库设计报告-Access数据库表设计步骤
  大家好,上节介绍了Access数据库表中常见的概念,Access数据库中表的部分主要难点就在于表的设计,本节主要是串联一下Access数据库中表设计时的大概步骤,只先了解即可,具体的内容部分后面根据分解的知识点展开讲解。
宜轩
2022/12/26
3.7K0
Access数据库范式
大家好,本节主要介绍下数据库范式的相关知识。在介绍Access数据库设计步骤时,有提到过数据库范式的概念。
无言之月
2020/03/11
3.9K0
access数据库表的创建_access数据库sql语句大全
长度为255的文本varchar 长度为20的文本varchar(20) 日期时间datetime 数字byte或smallint或integer,或bit 自动编号:counter(1,1) 外健:constraint外健名 主键:primary key 小数:numeric 单精度:real 双精度:float 备注:memo 货币:currency Ole对象:image
全栈程序员站长
2022/11/08
4.3K0
使用Azure Application Insignhts监控ASP.NET Core应用程序
Application Insignhts是微软开发的一套监控程序。他可以对线上的应用程序进行全方位的监控,比如监控每秒的请求数,失败的请求,追踪异常,对每个请求进行监控,从http的耗时,到SQL查询的耗时,完完整整的被记录下来。当对程序进行优化跟排错时非常好使。它原来是visualstudio online的一个服务,现在合并进了Azure,作为Azure Monitor的一个组件。虽然合并进了Azure,但是Application Insignhts还是免费的。
MJ.Zhou
2020/07/16
8320
PowerDesigner生成Access数据库
1、打开PowerDesigner,设置PowerDesigner的当前数据库为Access; 2、在PowerDesigner中新建表结构(物理模型); 3、PowerDesigner菜单中:Database -> Generate Database...(快捷键Ctrl+G);      在弹出的对话框中,设置要生成数据库脚本的Directory和File name(文件名以dat做后缀)值;      在弹出的对话框 -> Format选项卡中,设置Encoding为简体中文GB2312;     
欢醉
2018/01/22
3.2K0
Access数据库表初识
大家好,本节主要是通过Excel和Access表的简单对比,来了解Access中表的一些基本概念(对Access有基础的可以跳过)。
无言之月
2019/10/13
5.1K0
Access数据库软件界面
大家好,本节简单介绍下Access数据库软件的界面,已经有一定基础的可以跳过这部分内容。
无言之月
2019/10/13
6.4K0
Python 连接Access数据库
   最后通过该链接:http://en.wikibooks.org/wiki/Python_Programming/Database_Programming
py3study
2020/01/08
6.1K0
pyodbc操作Access数据库
版权声明:本文为博主原创文章,转载请注明出处。 https://blog.csdn.net/u011054333/article/details/84863434
乐百川
2019/07/02
2.3K0
pyodbc操作Access数据库
安装添加access数据库
access版本目前已经更新出了很多,包括access2016,2010;2019,2021;
用户9693436
2022/04/24
5.3K0
vb连接access数据库
vb连接access数据库 1插入相应的包 Imports System.Data.OleDb 2声明连接参数 Dim OleDbConnection1 As OleDb.OleDbConnection Dim strConnect As String = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" + Application.StartupPath + "\db1.mdb" 3建立连接 OleDbConnection1 = New Sy
全栈程序员站长
2021/04/07
6.1K0
Access数据库相关知识
比如,公园到访者的数据表,可能包含的实体有:公园信息(主键是公园编号),到访者的信息(主键是到访者编号),到访者居住地的信息(主键是居住地编号)一共有2个实体,即3张表。
Sidchen
2020/08/07
3.9K0
Access数据库创建表
大家好,上节介绍了最常用的概念模型E-R模型,并通过模型将图书馆管理数据库分成不同的表格,本节简单演示下在Access数据库中创建对应的表。涉及的问题主要是字段的数据类型。
无言之月
2019/10/13
4.1K0
Access数据库基本对象
大家好,后期开始部分介绍Access数据内容,首先简单介绍下学习Access数据库的基本框架,主要包括六个常用的对象:表、查询、窗体、报表、宏、VBA模块。
无言之月
2019/10/13
4.7K0

相似问题

从ASP.Net应用程序LINQ到MS Access数据库?

10

使用VBA从Access应用程序使用ASP.NET VBA服务

14

使用Access数据库的ASP.NET

15

使用ASP.net和Access数据库从保护网站

22

使用ASP.NET连接到Access数据库

10
添加站长 进交流群

领取专属 10元无门槛券

AI混元助手 在线答疑

扫码加入开发者社群
关注 腾讯云开发者公众号

洞察 腾讯核心技术

剖析业界实践案例

扫码关注腾讯云开发者公众号
领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档