Skip to content

feat: support oxygenvlm model on mlu device.#1131

Merged
phantomlei3 merged 2 commits intojd-opensource:mainfrom
phantomlei3:support-oxygen-2
Apr 2, 2026
Merged

feat: support oxygenvlm model on mlu device.#1131
phantomlei3 merged 2 commits intojd-opensource:mainfrom
phantomlei3:support-oxygen-2

Conversation

@phantomlei3
Copy link
Copy Markdown
Collaborator

No description provided.

Copy link
Copy Markdown
Contributor

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

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

Code Review

This pull request introduces the Oxygen VLM model, implementing its vision transformer, attention mechanisms, and causal language model components. It adds the OxygenVisionLayer, OxygenVisionAttention, and the OxygenvlmForConditionalGeneration class, while updating ModelArgs and enhancing model loading logic for better weight prefix compatibility. Feedback highlights a critical bug in OxygenVisionAttention where rotary embeddings are applied twice, and multiple compilation errors in oxygen_vlm.h caused by referencing an undefined mm_image_merge_size property. Furthermore, improvements are suggested regarding the use of const_cast on input parameters and the access modifiers for the apply_mrope method.

Copy link
Copy Markdown
Collaborator

@yq33victor yq33victor left a comment

Choose a reason for hiding this comment

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

LGTM

@phantomlei3 phantomlei3 merged commit fcfd12c into jd-opensource:main Apr 2, 2026
19 checks passed
DongheJin pushed a commit to DongheJin/xllm that referenced this pull request Apr 3, 2026
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.

4 participants