Comments (9)
Hi @pkuzqh , I've got another issue when running the code.
from recoder.
If you want to change the batch size, you need to change the number in the dict "args". If you want to use multiple GPUs, you need to modify "model = nn.DataParallel(model, device_ids=[0, 1])".
from recoder.
Hi @pkuzqh, thank you for the reply. The cuda out of memory
issue has been resolved. However, I found the new error above. Please kindly suggest, thanks.
from recoder.
How many GPUs do you use? And the batch size?
from recoder.
3, I indicated in the train()
that: device_ids=[1,2,3]
the batch size is 16
from recoder.
You need to change the number "4" in line 103-106 to a multiple of 3. And the batch size needs to be a multiple of 3.
from recoder.
OK, thank you very much @pkuzqh ! It can now run. However, I saw in the train()
, the number of epochs is 100000
, for epoch in range(100000):
is that true?
from recoder.
BTW, for inference, it looks like the testDefect4j.py
can only use 1 GPU? Since I have 4 GPUs, only one was used, and it caused an OOM issue.
from recoder.
you can use "nn.DataParallel" to use multiple gpus in testDefect4J.py
from recoder.
Related Issues (19)
- On the fault localization results and implementation
- Availability of code used for evaluating on Quixbugs, hardware requirements HOT 2
- Instruction to train Recoder on other languages HOT 16
- How to acquire Recoder's training dataset? HOT 1
- How to generate json file in result folder HOT 1
- Loading Data issue HOT 2
- AST format HOT 2
- pkl formats HOT 1
- Data processing HOT 6
- Post processing failure on some cases HOT 1
- RuntimeError: cuDNN error: CUDNN_STATUS_MAPPING_ERROR HOT 3
- Closure_21, Math_98, Math_65 are two-hunk bugs
- Training Model issue HOT 2
- 你好,在代码阅读中我有两个问题想咨询您
- 关于训练数据的问题
- Issue with getNodeId
- Usage example of Recorder on any other benchmark
- Which pkl is used for tokenization? HOT 1
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 recoder.