Skip to content

Enable RoPE as default positional encoding - #12

Merged
asfilion merged 1 commit into
mainfrom
feature/enable-rope
Feb 12, 2026
Merged

Enable RoPE as default positional encoding#12
asfilion merged 1 commit into
mainfrom
feature/enable-rope

Conversation

@asfilion

Copy link
Copy Markdown
Owner

Summary

  • Set use_rope=True as default in ModelConfig dataclass
  • Enable RoPE in both configs/small.json and configs/medium.json
  • RoPE provides better length generalization and decaying attention with distance vs sinusoidal PE

Test plan

  • 169 tests pass, including 5 RoPE-specific tests
  • Existing checkpoints with use_rope=False still load correctly (config is saved per checkpoint)

🤖 Generated with Claude Code

RoPE provides better length generalization and decaying attention
with distance compared to sinusoidal PE. Now the default for the
ModelConfig dataclass and both small/medium JSON configs.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@asfilion
asfilion merged commit 18c9c37 into main Feb 12, 2026
4 checks passed
@asfilion
asfilion deleted the feature/enable-rope branch February 17, 2026 00:06
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