Skip to content

Fix #329#330

Merged
davidkoski merged 1 commit intomainfrom
fix329
Jan 9, 2026
Merged

Fix #329#330
davidkoski merged 1 commit intomainfrom
fix329

Conversation

@davidkoski
Copy link
Collaborator

Proposed changes

Please include a description of the problem or feature this PR is addressing. If there is a corresponding issue, include the issue #.

Checklist

Put an x in the boxes that apply.

  • I have read the CONTRIBUTING document
  • I have run pre-commit run --all-files to format my code / installed pre-commit prior to committing changes
  • I have added tests that prove my fix is effective or that my feature works
  • I have updated the necessary documentation (if needed)

- build error as OffsetLayer was added in both #322 and #319
- #319 had it there "temporarily" for development but it should have been removed
- and #322 moved it to a new location so now we have two
- each PR built but the merge does not
@davidkoski davidkoski requested a review from awni January 8, 2026 23:47
/// A `Layer` (``Module`` subclass) that can be evaluated with an array and offset.
public protocol OffsetLayer: Module {
func callAsFunction(_ x: MLXArray, offset: Int) -> 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 was moved to PositionalEncoding.swift (next to RoPE). We can't have two of these.

Copy link
Member

@angeloskath angeloskath left a comment

Choose a reason for hiding this comment

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

👍

@davidkoski davidkoski merged commit f58bd2c into main Jan 9, 2026
7 checks passed
@davidkoski davidkoski deleted the fix329 branch January 9, 2026 00:16
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