Skip to content

Conversation

@ngxson
Copy link
Collaborator

@ngxson ngxson commented Oct 29, 2025

Follow up #16825

I forgot to re-enable ASAN on my build, so I didn't catch this error on the initial PR.

@ngxson ngxson requested a review from ggerganov as a code owner October 29, 2025 18:26
udata->pos[j*n_tokens + i] = batch.pos[j*batch.n_tokens + idxs[i]];
for (size_t j = 0; j < (size_t)n_pos_per_embd; ++j) {
// if we are using M-RoPE
// if the current batch is text, we need to broadcast the same position across all RoPE sections
Copy link
Collaborator Author

@ngxson ngxson Oct 29, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please note that even though only 3 dims are used in QwenVL (while n_pos_per_embd = 4), the last dim is never actually processed by ggml, as its hparams.mrope_section will be 0. Therefore, it's safe to broadcast the all dims here.

@ngxson ngxson merged commit 3464bda into ggml-org:master Oct 29, 2025
62 of 63 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants