[GH-ISSUE #18] Precompile all kernels (no jit) #15

Closed
opened 2026-10-26 21:10:31 +00:00 by bsakaguchi · 2 comments
Owner

Originally created by @YLGH on GitHub (Feb 26, 2025).
Original GitHub issue: https://github.com/deepseek-ai/DeepGEMM/issues/18

Hi, thanks for the amazing library!

Just wondering, is there a way to disable jit by precompiling all the necessary shapes? Or is it recommended to just some "warmup" script to compile all the kernels? What's a good list of M,N,K values to do so?

Originally created by @YLGH on GitHub (Feb 26, 2025). Original GitHub issue: https://github.com/deepseek-ai/DeepGEMM/issues/18 Hi, thanks for the amazing library! Just wondering, is there a way to disable jit by precompiling all the necessary shapes? Or is it recommended to just some "warmup" script to compile all the kernels? What's a good list of M,N,K values to do so?
Author
Owner

@jason-huang03 commented on GitHub (Feb 26, 2025):

Not possible, the N and K are template arguments.

<!-- gh-comment-id:2685428523 --> @jason-huang03 commented on GitHub (Feb 26, 2025): Not possible, the N and K are template arguments.
Author
Owner

@LyricZhao commented on GitHub (Feb 27, 2025):

For your own model (if the shapes are fixed), you can simply modify the test scripts to test all the shapes your model used. And later for model training, make sure that you are using the same cache dir (DG_CACHE_DIR).

<!-- gh-comment-id:2686707905 --> @LyricZhao commented on GitHub (Feb 27, 2025): For your own model (if the shapes are fixed), you can simply modify the test scripts to test all the shapes your model used. And later for model training, make sure that you are using the same cache dir (`DG_CACHE_DIR`).
Sign in to join this conversation.
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
deepseek-ai/DeepGEMM#15
No description provided.