Comments (4)
In the paper, the batch size is 8. However, the script here is 1.
the batch size 1 is per gpu. We have 4 gpu and we do gradient accumulation as 2 (line 46 in run_ranker.sh). So in total this is batch size 8 (4 * 2).
But the script set the evaluation batch size to 128 as shown in
When doing inference, for each query, we'll need to score thousands of logical forms. And we batch them so we score 128 per gpu. Here the batch size 1 means this 128 logical forms are all for a single query. Sorry for the confusing comments.
from rng-kbqa.
Thanks, got it.
But to be more clear, about, the training batch size, does it refer to 1 query and 2 candidate LFs for each batch, or 2 queries and all their candidates (100 samples including up to 96 negative ones) for each batch?
I guess the eval batch size means 1 query and 128 candidate LFs.
from rng-kbqa.
batch size 8 means 8 questions (containing 8 gold logical forms and 8*96 negative examples)
from rng-kbqa.
Understood, thanks.
from rng-kbqa.
Related Issues (20)
- System configuration for training Ranker and Generator HOT 1
- Is it possible that you share the final Logical Form generated by our method on Webqsp dataset HOT 1
- How is the entity linking F1 calculated? HOT 4
- version of transformers HOT 2
- other dataset HOT 2
- Question about knowledge base HOT 2
- Why the space occupied by virtuoso.db gradually becomes larger? HOT 1
- How to process the mids which can't convert to string name? HOT 4
- Question about WebQSP evaluation HOT 4
- urllib.error.URLError HOT 5
- About knowledge graph HOT 1
- Something wrong with reproduction HOT 1
- Training of Mention Detection Model (BERT-NER) HOT 1
- How long does enumerate candidates need? HOT 2
- Something wrong with reproduction HOT 2
- it takes too long when I run 'run_disamb.sh' HOT 3
- [Errno 2] No such file or directory: 'misc/grail_demo_final_results.txt'
- WebQSP reproduction help
- GrailQA retrain ranker, use specific gpus 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 rng-kbqa.