Download common/debug.h from Brunobkr/llama.cpp_AlgMor24_github: direct link, hf CLI and curl.
- Browser
- Download file 1.28 kB
-
https://huggingface.co/datasets/Brunobkr/llama.cpp_AlgMor24_github/resolve/9f63da05cd17e144eb118af61a784286378961ba/common/debug.h
- Command line
-
hf download hf://datasets/Brunobkr/llama.cpp_AlgMor24_github@9f63da05cd17e144eb118af61a784286378961ba/common/debug.h
-
curl -L -o debug.h https://huggingface.co/datasets/Brunobkr/llama.cpp_AlgMor24_github/resolve/9f63da05cd17e144eb118af61a784286378961ba/common/debug.h
1.28 kB
| // common debug functions and structs | |
| struct common_params; | |
| // Intended to use as callback for ggml_backend_sched_eval_callback | |
| // prints tensors that are processed in the computation graph | |
| // by default prints all tensors, but can be configured by creating a `common_debug_cb_user_data` instance with | |
| // non-empty filter_patterns. See examples/debug.cpp for possible usage patterns | |
| // `common_debug_cb_user_data` contains `abort_on_nan` flag that determines whether an error should be thrown whenever a NaN is encountered | |
| // in a tensor (useful for stopping debug sessions on first erroneous tensor) | |
| // The callback data will be passed as the third parameter (user_data) | |
| bool common_debug_cb_eval(struct ggml_tensor * t, bool ask, void * user_data); | |
| struct common_debug_cb_user_data { | |
| struct impl; | |
| std::unique_ptr<impl> pimpl; | |
| common_debug_cb_user_data(); | |
| ~common_debug_cb_user_data(); | |
| common_debug_cb_user_data(const common_debug_cb_user_data &) = delete; | |
| common_debug_cb_user_data & operator=(const common_debug_cb_user_data &) = delete; | |
| common_debug_cb_user_data(common_params & params, const std::vector<std::string> & filter_patterns, bool abort_on_nan = false); | |
| }; | |