Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion rwkv_pip_package/src/rwkv/cuda/rwkv5.cu
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ __global__ void kernel_forward(const int B, const int T, const int C, const int
const int i = threadIdx.x;
_w += h*_N_;
_u += h*_N_;
_state += h*_N_*_N_ + i*_N_; // wrong if B > 1 !!!
_state += b*H*_N_*_N_ + h*_N_*_N_ + i*_N_; // Correct if B >= 1 !!!

__shared__ float r[_N_], k[_N_], u[_N_], w[_N_];

Expand Down