Giter Club home page Giter Club logo

Comments (8)

Tongjilibo avatar Tongjilibo commented on May 18, 2024

我给的示例数据集是人民日报数据集,你换成别的数据集,数据格式不一样就需要自己修改读数据的代码

from bert4torch.

nlper01 avatar nlper01 commented on May 18, 2024

大佬,之前搁置了,今天来跑,用的你给的数据,有个错误没解决

TypeError: compile() got an unexpected keyword argument 'clip_grad_norm'

图片

from bert4torch.

Tongjilibo avatar Tongjilibo commented on May 18, 2024

你使用的bert4torch版本是什么?

from bert4torch.

Tongjilibo avatar Tongjilibo commented on May 18, 2024

如果不是最新版本,使用最新版试一下

from bert4torch.

nlper01 avatar nlper01 commented on May 18, 2024
bert4torch   0.2.2
torch    1.11.0+cu113

换了最新版本还是一样的错,难道是我torch版本太高了?我试试torch1.10.0

from bert4torch.

nlper01 avatar nlper01 commented on May 18, 2024

换了torch1.10.1 还是一样的问题

from bert4torch.

Tongjilibo avatar Tongjilibo commented on May 18, 2024

不是torch版本的问题,我的代码里面是有这个参数的,刚跑了下我这是没有问题的,你可以断点调试下看看,看看这个complie是调用的哪里的

from bert4torch.

nlper01 avatar nlper01 commented on May 18, 2024

不是torch版本的问题,我的代码里面是有这个参数的,刚跑了下我这是没有问题的,你可以断点调试下看看,看看这个complie是调用的哪里的

解决了,原因是因为我直接用的huggingface的bert-base-chinese版本,没有用你给的转化脚本修改

from bert4torch.

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.