Comments (13)
Thank you for your interest. Which pytorch version did you use? Have you used cuda?
from paperrobot.
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.
I mean have you use gpu?
from paperrobot.
The default setting is to use GPU if your system has one
from paperrobot.
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.
How to disable the GPU option?
from paperrobot.
Emm, I haven't tried to use cpu, I recommend to use the gpu, you can disable it by adding --gpu 0
from paperrobot.
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.
Let me test on my computer without gpu
from paperrobot.
I haven't encountered the same problem, maybe you can try a smaller batch size by setting --batch_size 10?
from paperrobot.
Lucky for me. It's running now with the setting --batch_size 10
from paperrobot.
Great, I think maybe it's out of memory
from paperrobot.
I found that the previous error is a CPU OOM message pytorch/pytorch#20618
from paperrobot.
Related Issues (20)
- How 'terms' are related to KB HOT 6
- excellent completed work !! can you share some details about how to produce the dataset,such as entity_text_title_tokenized.json,term.pth in PubMed Paper Reading Dataset ? thanks HOT 36
- Confusingly slow on testing of existing_model_reading model HOT 5
- 处理one-hop节点的代码的一个疑问 HOT 4
- It said that I need to have more RAM?tks HOT 12
- How many epoches do you use in these two tasks? HOT 3
- Training part of the dataset HOT 2
- --
- Model weights sharing and training stopping criterion HOT 3
- Something has been deprecated. HOT 1
- How to generate KGs? HOT 4
- Questions about code and paper_reading dataset HOT 2
- 这个项目现在还更新吗,还有人在使用吗?
- PubTator-MeSH-CTD HOT 1
- METEOR in eval.py HOT 4
- CUDA out of memory HOT 7
- Are new entities formed or just links? HOT 2
- TypeError: can't convert np.ndarray of type numpy.int32. HOT 18
- TypeError: can't convert np.ndarray of type numpy.int32. HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from paperrobot.