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

[DLIGHT][GPU] Enhance opencl thread limit for schedules #16972

Merged
merged 4 commits into from May 21, 2024

Conversation

krishnaraj36
Copy link
Contributor

@krishnaraj36 krishnaraj36 commented May 7, 2024

Enhanced the opencl thread limit and improved the gpu schedules for opencl targets.
It improves decode performance 20 % for few set of MLC llm models.

LLM model --- baseline --- improved
gemma-2b-it --- 22.4 tok/sec --- 28.2 tok/sec
Qwen-7b-chat --- 11 tok/sec --- 11.8 tok/sec

Enhanced the opencl thread limit and improved the gpu schedules
for opencl targets.
It improves decode performance 20 % for few set of models.
@krishnaraj36
Copy link
Contributor Author

@srkreddy1238 @tqchen : Please take a look to this PR and let me know your advise.

src/target/target_kind.cc Outdated Show resolved Hide resolved
@tqchen
Copy link
Member

tqchen commented May 9, 2024

cc @mengshyu would be nice to confirm metal improvement and see if we want it for webgpu/metal

@Hzfengsy Hzfengsy merged commit 3b97658 into apache:main May 21, 2024
18 checks passed
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.

None yet

3 participants