Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Batch mode for multiple lines or files #2

Closed
antoniozh opened this issue Feb 20, 2022 · 1 comment
Closed

Batch mode for multiple lines or files #2

antoniozh opened this issue Feb 20, 2022 · 1 comment

Comments

@antoniozh
Copy link
Collaborator

antoniozh commented Feb 20, 2022

Hi,
is it possible to run the prediction container on multiple lines or files in a row? Would this be useful for analyzling large Go repositories at once? The prediction model would be loaded only once then and we would save a lot of time

@Cortys
Copy link
Owner

Cortys commented Feb 20, 2022

While the model does in principle support batch predictions, the container CLI currently does not.

Batch predictions could definitely improve performance if the number of queries is sufficiently large. However, the overall prediction time for a single query is dominated by the CFG creation preprocessing step, which does not really benefit from batching (model loading and inference are comparatively fast). Simply running the prediction container multiple times in parallel therefore probably is not significantly slower than a single batched container run.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants