mirror of
https://github.com/deepseek-ai/DeepSeek-VL.git
synced 2026-11-05 00:47:24 +00:00
[GH-ISSUE #48] Batching #36
Labels
No labels
enhancement
environment
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
deepseek-ai/DeepSeek-VL#36
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @SinanAkkoyun on GitHub (Apr 18, 2024).
Original GitHub issue: https://github.com/deepseek-ai/DeepSeek-VL/issues/48
Is this code "optimal" for batched inference and preprocessing?
@SinanAkkoyun commented on GitHub (Apr 19, 2024):
@SinanAkkoyun commented on GitHub (Apr 19, 2024):
The
vl_chat_processorseems to take up the most time, more than the image embedding model itself. If possible it would be awesome to get help on optimizing the preprocessing or somehow better parallelizing it, which would make it great for serving@soloice commented on GitHub (Apr 22, 2024):
Nope. It's just a toy demo, not for production purpose.
@SinanAkkoyun commented on GitHub (Apr 22, 2024):
I know, that's why I at least tried to quickly "parallelize" the processor
Any help in actually optimizing it for batching is greatly appreciated
@gullalc commented on GitHub (May 4, 2024):
You could use custom dataset class and use dataloader to do batching. This is how I run it and it is quite fast.
@SinanAkkoyun commented on GitHub (May 5, 2024):
Oh wow that's a very cool approach, thank you so much for sharing it! I will try it out asap
@Youho99 commented on GitHub (May 14, 2024):
I'm also interested in making inference faster.
I only use inference.