Comments (12)
Thank you very much for your interest in our research. Perhaps you can try a smaller batch size by typing python train.py --batch_size 50. If that doesn't work you can decrease it again.
from paperrobot.
@EagleW Could you please tell us what GPU do you use? Thanks.
from paperrobot.
I use P100
from paperrobot.
I use P100
Thanks.
from paperrobot.
I am trying to replicate your work and am getting OOM errors on a P100 GPU with 16 GB when using the default batch size of 200. How much memory did your P100 GPU have?
from paperrobot.
@davidrpugh Which part of the code are you running?
from paperrobot.
I think you can decrease the batch size to 50
from paperrobot.
Specifically I ran the ./Existing paper reading/train.py
script with default parameters using one 16 GB P100 GPU and got an OOM error from the GPU. I can decrease the batch size but I wanted to start with the default params used in your paper. Was 200 the batch size used in the paper? Or something smaller?
from paperrobot.
I think I use a much smaller batch size for it. Actually, the batch size didn't influence the model performance much
from paperrobot.
I have tried batch sizes of 128, 64, 32, and 16. With --batch_size=16
I was able to train for one full epoch before getting GPU OOM error. I am going to try again with 8 but I feel that there must be something else I am missing.
from paperrobot.
@davidrpugh I think you can add torch.cuda.empty_cache() after the line 263 in main.py
from paperrobot.
The problem is that the get_subgraph will return a very large adj_ingraph matrix. If the batch size is too large, the adjacent matrix will be too large to fit in the memory
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
- 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
- RuntimeError HOT 13
- 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.