@@ -10828,13 +10828,15 @@ static void delta_tensor_add_chunk_f32(const float * a, const float * b, float *
1082810828
1082910829
1083010830static void print_debug_info (float * data, size_t size, const char * name, int64_t token) {
10831+ #ifdef LOGS_OF_DEBUGS
1083110832 GGML_LOG_INFO (" \n ggml-debug: %s (%ld) first 5 values: [%.6f, %.6f, %.6f, %.6f, %.6f, ...]\n " ,
1083210833 name, token, data[0 ], data[1 ], data[2 ], data[3 ], data[4 ]);
1083310834 double sum = 0.0 ;
1083410835 for (unsigned int i = 0 ; i < size; i++) {
1083510836 sum += data[i];
1083610837 }
1083710838 GGML_LOG_INFO (" total elements: %ld, sum = %.10f\n " , size, sum);
10839+ #endif
1083810840}
1083910841
1084010842void ggml_compute_forward_delta_net_f32 (const ggml_compute_params * params, ggml_tensor * dst) {
@@ -11209,18 +11211,18 @@ void ggml_compute_forward_delta_net_f32(const ggml_compute_params * params, ggml
1120911211 }
1121011212 }
1121111213 print_debug_info (output, S_v * H_v * n_tokens * n_seqs, " output" , chunk);
11212- GGML_LOG_INFO (" \n Full output tensor: \n\n " );
11213- for (int64_t seq = 0 ; seq < n_seqs; seq++) {
11214- for (int64_t head = 0 ; head < H_v; head++) {
11215- GGML_LOG_INFO (" \n [ " );
11216- for (int64_t i = 0 ; i < n_tokens; i++) {
11217- for (int64_t d = 0 ; d < S_v; d++) {
11218- GGML_LOG_INFO (" %.4f " , output[seq * (n_tokens * S_v * H_v) + head * (n_tokens * S_v) + (chunk * chunk_size + i) * S_v + d]);
11219- }
11220- }
11221- GGML_LOG_INFO (" ]" );
11222- }
11223- }
11214+ // GGML_LOG_INFO("\nFull output tensor: \n\n");
11215+ // for (int64_t seq = 0; seq < n_seqs; seq++) {
11216+ // for (int64_t head = 0; head < H_v; head++) {
11217+ // GGML_LOG_INFO("\n[ ");
11218+ // for (int64_t i = 0; i < n_tokens; i++) {
11219+ // for (int64_t d = 0; d < S_v; d++) {
11220+ // GGML_LOG_INFO("%.4f ", output[seq * (n_tokens * S_v * H_v) + head * (n_tokens * S_v) + (chunk * chunk_size + i) * S_v + d]);
11221+ // }
11222+ // }
11223+ // GGML_LOG_INFO(" ]");
11224+ // }
11225+ // }
1122411226 print_debug_info (new_state, S_v * S_v * H_v * n_seqs, " new_state" , chunk);
1122511227
1122611228 free (temp_state);
0 commit comments