Giter VIP home page Giter VIP logo

Comments (10)

donglixp avatar donglixp commented on July 26, 2024 1

Could you provide more information to verify whether the apex package was successfully installed?

from unilm.

DivyaWadehra avatar DivyaWadehra commented on July 26, 2024 1

You asked to not to add certain flags did the same but still getting errors while running decoder script for question generation which looks for apex, (running on CPU),
got segmentation fault

from unilm.

nyanyanya avatar nyanyanya commented on July 26, 2024

HI @DivyaWadehra,

Have you successfully installed the NVIDIA apex? You can install it following the instructions in README.md. Specifically:

cd $(mktemp -d)
git clone -q https://github.com/NVIDIA/apex.git
cd apex
git reset --hard 1603407bf49c7fc3da74fceb6a6c7b47fece2ef8
python setup.py install --user --cuda_ext --cpp_ext

from unilm.

DivyaWadehra avatar DivyaWadehra commented on July 26, 2024

Yes I did the same, but the error remains

from unilm.

donglixp avatar donglixp commented on July 26, 2024

Hi @DivyaWadehra ,

I am wondering whether you are running the code using CPUs? If so, you need to remove the dependency on apex.*.

The instructions in https://github.com/microsoft/unilm#docker could help. The docker makes the env setup way easier.

from unilm.

DivyaWadehra avatar DivyaWadehra commented on July 26, 2024

No I am not running it on CPU, I am using GPU

from unilm.

donglixp avatar donglixp commented on July 26, 2024

It seems like the apex was not correctly installed:

PWD_DIR=$(pwd)
cd $(mktemp -d)
git clone -q https://github.com/NVIDIA/apex.git
cd apex
git reset --hard 1603407bf49c7fc3da74fceb6a6c7b47fece2ef8
python setup.py install --user --cuda_ext --cpp_ext
cd $PWD_DIR

from unilm.

DivyaWadehra avatar DivyaWadehra commented on July 26, 2024

I did the same, but didn't get the error resolved

from unilm.

elnazsn1988 avatar elnazsn1988 commented on July 26, 2024

@DivyaWadehra strangley I had forked the version you had here in Jan, and I didnt get the segmentation fault: https://github.com/elnazsn1988/unilm/tree/master/layoutlm
however I used latest commit and am now facing the segmentation fault error, were you able to overcome this?

from unilm.

elnazsn1988 avatar elnazsn1988 commented on July 26, 2024

@DivyaWadehra Update - Using pytorch 1.6 removed all issues and allowed installation of latest commit.

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.