-
Notifications
You must be signed in to change notification settings - Fork 11k
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
add ggml_backend_sched_dump_dot
#10825
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:backend
andbuft
are 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_inplace
for input layer norm, which is probably an error in the scheduler.Note:
ggml_graph_get_grad
is also fixed forcgraph->grads
is NULL.GGML_DOT_FULL_COLOR
for 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_spec
to load only 2 or 3 layers.