Code Monkey home page Code Monkey logo

Comments (13)

EagleW avatar EagleW commented on August 23, 2024

Thank you for your interest. Which pytorch version did you use? Have you used cuda?

from paperrobot.

demonlj avatar demonlj commented on August 23, 2024

Thanks a lot for your kind reply.
pytorch version: torch-1.1.0-cp36-cp36m-manylinux1_x86_64.whl
I'm not sure wether cuda is used. Follow your instruction, I did not find the requirements on cuda.

from paperrobot.

EagleW avatar EagleW commented on August 23, 2024

I mean have you use gpu?

from paperrobot.

EagleW avatar EagleW commented on August 23, 2024

The default setting is to use GPU if your system has one

from paperrobot.

demonlj avatar demonlj commented on August 23, 2024

Maybe I need to disable the GPU option, because it takes a lot time to run the script. so, i move the script from osx to remote server

from paperrobot.

demonlj avatar demonlj commented on August 23, 2024

How to disable the GPU option?

from paperrobot.

EagleW avatar EagleW commented on August 23, 2024

Emm, I haven't tried to use cpu, I recommend to use the gpu, you can disable it by adding --gpu 0

from paperrobot.

demonlj avatar demonlj commented on August 23, 2024

no lucky.

Traceback (most recent call last): File "train.py", line 236, in <module> batch_o_t, teacher_forcing_ratio=1) File "/usr/local/lib/python3.6/dist-packages/torch/nn/modules/module.py", line 493, in __call__ result = self.forward(*input, **kwargs) File "/mnt/sync/ubuntu/PaperRobot-master/New paper writing/memory_generator/seq2seq.py", line 18, in forward stopwords, sflag) File "/usr/local/lib/python3.6/dist-packages/torch/nn/modules/module.py", line 493, in __call__ result = self.forward(*input, **kwargs) File "/mnt/sync/ubuntu/PaperRobot-master/New paper writing/memory_generator/Decoder.py", line 134, in forward max_source_oov, term_output, term_id, term_mask) File "/mnt/sync/ubuntu/PaperRobot-master/New paper writing/memory_generator/Decoder.py", line 68, in decode_step term_context, term_attn = self.memory(_h.unsqueeze(0), term_output, term_mask, cov_mem) File "/usr/local/lib/python3.6/dist-packages/torch/nn/modules/module.py", line 493, in __call__ result = self.forward(*input, **kwargs) File "/mnt/sync/ubuntu/PaperRobot-master/New paper writing/memory_generator/utils.py", line 32, in forward e_t = self.vt_layers[i](torch.tanh(enc_proj + dec_proj).view(batch_size * max_enc_len, -1)) RuntimeError: [enforce fail at CPUAllocator.cpp:56] posix_memalign(&data, gAlignment, nbytes) == 0. 12 vs 0

from paperrobot.

EagleW avatar EagleW commented on August 23, 2024

Let me test on my computer without gpu

from paperrobot.

EagleW avatar EagleW commented on August 23, 2024

I haven't encountered the same problem, maybe you can try a smaller batch size by setting --batch_size 10?

from paperrobot.

demonlj avatar demonlj commented on August 23, 2024

Lucky for me. It's running now with the setting --batch_size 10

from paperrobot.

EagleW avatar EagleW commented on August 23, 2024

Great, I think maybe it's out of memory

from paperrobot.

EagleW avatar EagleW commented on August 23, 2024

I found that the previous error is a CPU OOM message pytorch/pytorch#20618

from paperrobot.

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.