Skip to content

Conversation

davidkoski
Copy link
Collaborator

No description provided.

@davidkoski davidkoski requested a review from awni March 25, 2025 21:57
@@ -336,7 +336,7 @@ private enum Vision {
@ModuleInfo(key: "position_embedding") var positionEmbedding: Embedding

let positions: Int
let positionIds: MLXArray
let _positionIds: MLXArray
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

As it was updating weights expected to find a positionIds in the incoming weights, but it is really just a cached MLXArray.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

This avoids the error loading the model.

Copy link
Member

@awni awni left a comment

Choose a reason for hiding this comment

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

LGTM!

@davidkoski davidkoski merged commit b934138 into main Mar 26, 2025
1 check passed
@davidkoski davidkoski deleted the paligemma-weights branch March 26, 2025 15:52
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