Code Monkey home page Code Monkey logo

Comments (5)

ehsanzare-zz avatar ehsanzare-zz commented on July 17, 2024 1

Done. I follow https://github.com/facebookresearch/UnsupervisedMT/pull/9/files. Moreover, I also change the line 209 to:
if torch.cuda.is_available():
sent1, sent3 = sent1.cuda(), sent3.cuda()
Tnx

from unsupervisedmt.

glample avatar glample commented on July 17, 2024

Hi,
People have tried to make it run on CPU, for instance https://github.com/facebookresearch/UnsupervisedMT/pull/9/files
Maybe you can have a look at this. Overall, removing all occurrences of .cuda() and replacing all occurrences of torch.cuda by torch should be enough.

from unsupervisedmt.

mohammedayub44 avatar mohammedayub44 commented on July 17, 2024

@ehsanzare I'm trying to run the same experiments , Did you benchmark on different no of CPU's . Just curious if it is linearly scalable.

Cheers.

Mohammed Ayub

from unsupervisedmt.

ehsanzare-zz avatar ehsanzare-zz commented on July 17, 2024

No, I did not try that on no of CPU's.

from unsupervisedmt.

mohammedayub44 avatar mohammedayub44 commented on July 17, 2024

@ehsanzare @glample I'm trying to run in in Windows, multiprocessing_event_loop.py file is giving error saying signal has no attribute SIGUR1 . Seems like Python multiprocessing is slightly different on Windows. For now, I have replaced all occurrences of SIGUR1 with SIGTERM and training seems to initiate fine. Not sure if this is the best solution to avoid this error.

from unsupervisedmt.

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.