Skip to content

iRoPE (-p > 8192) #4063

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from
Closed
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
3 changes: 2 additions & 1 deletion fbgemm_gpu/experimental/gen_ai/src/kv_cache/kv_cache.cu
Original file line number Diff line number Diff line change
Expand Up @@ -3003,7 +3003,8 @@ at::Tensor quantize_qkv_per_head(
dim3 block_size(kThreadsPerWarp, kWarpsPerBlock);
dim3 grid_size(cuda_calc_xblock_count(num_warps, kWarpsPerBlock));

auto scale_q = at::zeros({B, N_KVH_L}, XQ_O.options().dtype(at::kFloat));
auto scale_q =
at::zeros({cache_K.size(0), N_KVH_L}, XQ_O.options().dtype(at::kFloat));
float* const scale_q_ptr = scale_q.data_ptr<float>();
// Launch the kernel
// TODO: Launch the kernel with B_T * N_H_L blocks only in case of decode.
Expand Down
Loading