Giter Club home page Giter Club logo

Comments (5)

yudianer avatar yudianer commented on August 21, 2024 1

You are right! When I decrease the size of the dictionary to 5k pairs, there is no any error. Thank you very much! @glample

from muse.

glample avatar glample commented on August 21, 2024

Hi. Can you provide the entire backtrace? What line in the code triggers the error exactly?

from muse.

yudianer avatar yudianer commented on August 21, 2024

INFO - 01/19/18 08:48:09 - 0:00:52 - Found 25201 pairs of words in the dictionary (13620 unique). 33812 other pairs contained at least one unknown word (21885 in lang1, 27008 in lang2)
THCudaCheck FAIL file=/pytorch/torch/lib/THC/generic/THCStorage.cu line=58 error=2 : out of memory
Traceback (most recent call last):
File "./unsupervised.py", line 136, in
evaluator.all_eval(to_log)
File "/home/jack/codes/MUSE/src/evaluation/evaluator.py", line 192, in all_eval
self.word_translation(to_log)
File "/home/jack/codes/MUSE/src/evaluation/evaluator.py", line 95, in word_translation
method=method
File "/home/jack/codes/MUSE/src/evaluation/word_translation.py", line 133, in get_word_translation_accuracy
scores.sub_(average_dist1[dico[:, 0]][:, None] + average_dist2[None, :])
File "/home/jack/.local/lib/python3.5/site-packages/torch/tensor.py", line 293, in add
return self.add(other)
RuntimeError: cuda runtime error (2) : out of memory at /pytorch/torch/lib/THC/generic/THCStorage.cu:58

Thank you very much! @glample

from muse.

glample avatar glample commented on August 21, 2024

Are you using a dictionary different than the train / test we provide? 25k pairs seems quite a lot. What happens if you use the dictionaries we provide? Maybe try that and see if you still have the issue.

That being said, the code should still run even with a big dictionary. If you send it to me I can try to have a look.

from muse.

yudianer avatar yudianer commented on August 21, 2024

No, I used a Chinese-Inner Mogolian dictionary of my own as test . Because there is no language pairs I need in the website.
And I used the unsupervied.py to train the model.
So, should I first use the dictionaries provided with the default parameters?
Thank you very much!

from muse.

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.