Update ggml/src/ggml-cpu.c

Co-authored-by: Georgi Gerganov <ggerganov@gmail.com>
This commit is contained in:
Zhiyuan Li 2024-11-05 01:14:27 +11:00 committed by GitHub
parent a878502f43
commit b81602477b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -11803,7 +11803,7 @@ static void ggml_compute_forward_rwkv_wkv6_f32(
// RWKV v6: different time_decay for each token. // RWKV v6: different time_decay for each token.
float time_decay_val = time_decay[t_h_i_offset]; float time_decay_val = time_decay[t_h_i_offset];
for (int64_t j = 0; j < head_size; j ++) { for (int64_t j = 0; j < head_size; j++) {
size_t t_h_j_offset = t_h_offset + j; size_t t_h_j_offset = t_h_offset + j;
size_t h_2d_i_j_offset = h_2d_i_offset + j; size_t h_2d_i_j_offset = h_2d_i_offset + j;