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

[BFCL] Error when consecutively generate from multiple oss_models with vllm #774

Open
YifanHao opened this issue Nov 21, 2024 · 1 comment
Labels
BFCL-General General BFCL Issue

Comments

@YifanHao
Copy link

YifanHao commented Nov 21, 2024

I have plenty of models and I want to test them all. So I run a bash script like this:

bfcl generate --model "model_1" --test-category simple
bfcl generate --model "model_2" --test-category simple
...

The first generation was good. But the second run and thereafter encountered the following error:
image
I suspect the reason is that VLLM_PORT still occupied by the previous run, so I got the output of ps -aux when the second run just began. However it seems the previous vllm server has already ended.
image

Now I have no idea why this isn't working, could you help me with this?
Or what's the recommended way if I want to run many models automatically?

Update:
Just after I open this issue, I find the error disappears if I wait long enough before the next run. (sleep 60 after each line).
But still, I wonder if there's a better way to do this?

@HuanzhiMao
Copy link
Collaborator

Hi @YifanHao,
I think the issue you are encountering is because vllm takes some time to shutdown the server and clean up after all the inference are done, and so the best approach would be probably like what you are doing (eg, add some time interval between the runs).

@HuanzhiMao HuanzhiMao added the BFCL-General General BFCL Issue label Nov 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
BFCL-General General BFCL Issue
Projects
None yet
Development

No branches or pull requests

2 participants