From 3b9979a37367057ea8258535b821e128a2a7aa31 Mon Sep 17 00:00:00 2001 From: Georgi Gerganov Date: Tue, 12 Sep 2023 14:08:48 +0300 Subject: [PATCH] ci : try to debug vmem issue --- whisper.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/whisper.cpp b/whisper.cpp index 50ebba74..a608de0b 100644 --- a/whisper.cpp +++ b/whisper.cpp @@ -2794,7 +2794,9 @@ struct whisper_state * whisper_init_state(whisper_context * ctx) { meta.resize(ggml_tensor_overhead()*GGML_MAX_NODES + ggml_graph_overhead()); + log("checkpoint 0\n"); alloc = ggml_allocr_new_measure(tensor_alignment); + log("checkpoint 1\n"); ggml_cgraph * gf = whisper_build_graph_encoder(*ctx, *state, 0); @@ -2816,11 +2818,15 @@ struct whisper_state * whisper_init_state(whisper_context * ctx) { meta.resize(ggml_tensor_overhead()*GGML_MAX_NODES + ggml_graph_overhead()); + log("checkpoint 2\n"); alloc = ggml_allocr_new_measure(tensor_alignment); + log("checkpoint 3\n"); ggml_cgraph * gf = whisper_build_graph_cross(*ctx, *state); + log("checkpoint 4\n"); const size_t alloc_size = ggml_allocr_alloc_graph(alloc, gf) + tensor_alignment; + log("checkpoint 5\n"); ggml_allocr_free(alloc);