-
Couldn't load subscription status.
- Fork 13.4k
add ggml_backend_sched_dump_dot
#10825
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
Conversation
|
The discrepancy between buffer type and backend may be caused by a few reasons. Fundamentally, |
|
Update:
|
The issue is:
I used this to identify the issue, updated my code (chatllm.cpp), and things worked. This proposed function is not for debugging the scheduler, but for visualization of graph splits and backends. It may also help for debugging. |
|
Maintainers are not interested in this, and I am going to close this. PS: This exists in https://github.com/foldl/chatllm.cpp of cause. |
This PR add a DOT dump function to
sched. Comparing to the existingggml_graph_dump_dot, this function:backendandbuftare color coded into the background of nodes.A demo of the usefulness: In this graph, we can find there is something abnormal at a glance. This is caused by
ggml_rms_norm_inplacefor input layer norm, which is probably an error in the scheduler.Note:
ggml_graph_get_gradis also fixed forcgraph->gradsis NULL.GGML_DOT_FULL_COLORfor full color, otherwise, a color scheme is used.PS: Someone might say that the dumped graph is too large to be rendered. In my case (chatllm.cpp), I use
--layer_specto load only 2 or 3 layers.