Skip to content

refactor(paddleocr_vl): remove test-only sectioned apply_multimodal_rotary_pos_emb - #253

Closed
devin-ai-integration[bot] wants to merge 1 commit into
mainfrom
devin/1792073162-remove-sectioned-mrope
Closed

devin-ai-integration[bot] wants to merge 1 commit into
mainfrom
devin/1792073162-remove-sectioned-mrope

Conversation

@devin-ai-integration

Copy link
Copy Markdown
Contributor

Summary

Removes the sectioned M-RoPE helper apply_multimodal_rotary_pos_emb from paddleocr_vl/language.rs. It has no production callers anymore: PaddleOCR-VL inference switched to the fused C++ forward (#57), and Qwen3.5-VL switched to apply_multimodal_rotary_pos_emb_interleaved (#80). Only tests and an unused pub use in paddleocr_vl/mod.rs still referenced it. rotate_half stays because apply_interleaved_rotary uses it.

  • Deleted test_apply_mrope_output_shapes, which only exercised the removed fn.
  • test_interleaved_text_invariance now checks the interleaved path against plain single-axis RoPE, instead of against the removed sectioned fn. The test feeds cos/sin row 0 (temporal) straight to apply_interleaved_rotary. The test's purpose stays the same: for text tokens (t==h==w) the axis selector must have no effect, so the output must be bit-identical.
    let cos_t = cos.slice_axis(0, 0, 1)?.reshape(&[1, 1, seq_len, rope_dims])?; // same for sin
    assert_eq!(apply_interleaved_rotary(q, k, &cos_t, &sin_t), apply_multimodal_rotary_pos_emb_interleaved(q, k, &cos, &sin, [11, 11, 10]));
  • Doc comments that linked to the removed fn are updated.

Not built locally: the Linux VM can't build mlx-sys (no CUDA/cmake, and prebuilt MLX is macOS-only). Build, test and clippy are left to macOS CI.

Link to Devin session: https://app.devin.ai/sessions/f0e6f1d5e4d14de7ad7647891adb6288
Open in Devin Desktop: https://app.devin.ai/desktop/session/f0e6f1d5e4d14de7ad7647891adb6288?variant=devin
Requested by: @Brooooooklyn

@devin-ai-integration

Copy link
Copy Markdown
Contributor Author

I'll fix CI failures and address comments from users with write access. I'll skip comments containing "(aside)".

  • Disable automatic comment, CI, and merge conflict monitoring

@coderabbitai

coderabbitai Bot commented Oct 15, 2026

Copy link
Copy Markdown

Important

Review skipped

Auto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration
  • Configuration used: Organization UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: c140c210-3fb8-4692-98e1-c8284a84b721

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@devin-ai-integration

Copy link
Copy Markdown
Contributor Author

Closing in favor of one combined dead-code cleanup PR (requested by the maintainer). The new PR will include this branch's changes.

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.

1 participant