Skip to content

Support batch inference#301

Open
FangleiXue wants to merge 5 commits into
chaidiscovery:mainfrom
youqingxiaozhua:pr-batch-inference
Open

Support batch inference#301
FangleiXue wants to merge 5 commits into
chaidiscovery:mainfrom
youqingxiaozhua:pr-batch-inference

Conversation

@FangleiXue
Copy link
Copy Markdown

@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
@Eco-Luozhh
Copy link
Copy Markdown

Is it possible to run it on Mac?

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.

3 participants