Code Monkey home page Code Monkey logo

Comments (10)

donglixp avatar donglixp commented on August 20, 2024 1

@DivyaWadehra

cd ~/code/unilm/src
pip install --user --editable .

from unilm.

ranjeetds avatar ranjeetds commented on August 20, 2024

@DivyaWadehra Copy the folder contained in src directory named 'pytorch_pretrained_bert' to 'biunilm'.

from unilm.

DivyaWadehra avatar DivyaWadehra commented on August 20, 2024

ModuleNotFoundError: No module named 'apex.optimizers'

and I am running the code on CPU

from unilm.

donglixp avatar donglixp commented on August 20, 2024

#23

from unilm.

DivyaWadehra avatar DivyaWadehra commented on August 20, 2024

I am ruuning code for question generation, that's for summarization
I am not using fp flag

from unilm.

donglixp avatar donglixp commented on August 20, 2024

The code change should be the same for both qg and summ in order to run the program on cpus.

from unilm.

DivyaWadehra avatar DivyaWadehra commented on August 20, 2024

By default it is taking fp into consideration how to disable the use of it while training QG model

from unilm.

donglixp avatar donglixp commented on August 20, 2024

In order to run the code on CPU, we can remove the --fp16 and --amp flags. Moreover, we need to delete .cuda(), and apex package usage.

from unilm.

DivyaWadehra avatar DivyaWadehra commented on August 20, 2024

But in the script itself we are not using these flags, can you generate a code for cpu?

from unilm.

DivyaWadehra avatar DivyaWadehra commented on August 20, 2024

Hi
I am getting this error, can you help?

ModuleNotFoundError: No module named 'fused_layer_norm_cuda'

from unilm.

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.