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

Support batch inference #301

Open
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

FangleiXue
Copy link

@FangleiXue FangleiXue commented Feb 8, 2025

Description

Support giving a list of fasta inputs without loading the model every time

Motivation

Typically, when performing screening, a bunch of candidates are needed to be tested. However, the current inference API will load the model for every fasta file, which is time-consuming. By changing it to only load the model in the beginning, we can save a lot of GPU time.

Test plan

The updated API also supports a single file as input, so the current unit test also works. When giving multiple inputs, it saved them into separate folders.

@FangleiXue FangleiXue closed this Feb 8, 2025
@FangleiXue FangleiXue reopened this Feb 8, 2025
@FangleiXue FangleiXue changed the title Pr batch inference Support batch inference Feb 8, 2025
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

Successfully merging this pull request may close these issues.

2 participants