Giter Club home page Giter Club logo

Comments (4)

xiye17 avatar xiye17 commented on July 27, 2024

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.

yhshu avatar yhshu commented on July 27, 2024

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.

xiye17 avatar xiye17 commented on July 27, 2024

batch size 8 means 8 questions (containing 8 gold logical forms and 8*96 negative examples)

from rng-kbqa.

yhshu avatar yhshu commented on July 27, 2024

Understood, thanks.

from rng-kbqa.

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.