Git Product home page Git Product logo

Comments (8)

xu-cpp avatar xu-cpp commented on July 20, 2024 2

试试在run.py里加上这两行代码
import os
os.environ['CUDA_VISIBLE_DEVICES'] = '2, 3'

from bert-chinese-text-classification-pytorch.

MambaMelon avatar MambaMelon commented on July 20, 2024

还想请教一下,你的博客地址在哪里啊?可否贴一下

from bert-chinese-text-classification-pytorch.

dabao0903 avatar dabao0903 commented on July 20, 2024

同样的问题,执行bert 修改了pad_size,报错CUDA out of memory,好像是模型导入pretrained时候,出错了,有遇到的朋友请解答下疑惑,谢谢~

from bert-chinese-text-classification-pytorch.

moluchase avatar moluchase commented on July 20, 2024

同样的问题,执行bert 修改了pad_size,报错CUDA out of memory,好像是模型导入pretrained时候,出错了,有遇到的朋友请解答下疑惑,谢谢~

请问,该问题解决了吗

from bert-chinese-text-classification-pytorch.

wangjs9 avatar wangjs9 commented on July 20, 2024

可以更改config中batch_size的

from bert-chinese-text-classification-pytorch.

dabao0903 avatar dabao0903 commented on July 20, 2024

可以更改config中batch_size的

应该不是这个问题,试过batch_size=1,也会报错

from bert-chinese-text-classification-pytorch.

moluchase avatar moluchase commented on July 20, 2024

可以更改config中batch_size的

应该不是这个问题,试过batch_size=1,也会报错

是这个问题,我已经试过了,修改batch_size或者修改pad_size

from bert-chinese-text-classification-pytorch.

limo1995 avatar limo1995 commented on July 20, 2024

你显存不够吧

from bert-chinese-text-classification-pytorch.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.