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

API for multi-GPU inference #106

Open
UIHCRITT opened this issue Apr 3, 2024 · 4 comments
Open

API for multi-GPU inference #106

UIHCRITT opened this issue Apr 3, 2024 · 4 comments

Comments

@UIHCRITT
Copy link

UIHCRITT commented Apr 3, 2024

when i use api method to inference ,I find error when i use multi-GPU,
I also find that api.py is import run_old.py, it seems that it not can be use multi-GPU?

@Tlntin
Copy link
Owner

Tlntin commented Apr 3, 2024

yeal, api.py not support multi gpu.
why not use tritonserver to deploy it.

@Tlntin
Copy link
Owner

Tlntin commented Apr 3, 2024

there is a sample code used api.py with multi gpu.
link

@UIHCRITT
Copy link
Author

UIHCRITT commented Apr 7, 2024

I think this code from is not complete;
I mean that he said "我成功了,不过有点麻烦,需要在每一个进程都调用一次模型,不然会陷入假死状态。",but I can't find this work in he code. Did I misunderstand?

@Tlntin
Copy link
Owner

Tlntin commented Apr 7, 2024

Yes, he should omit the code already in the api.py file.

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