Skip to content

New models layout - #2082

Merged
michalk8 merged 20 commits into
ml-explore:mainfrom
michalk8:model-layout-mechanical
Nov 19, 2026
Merged

michalk8 merged 20 commits into
ml-explore:mainfrom
michalk8:model-layout-mechanical

Conversation

@michalk8

Copy link
Copy Markdown
Collaborator
  • ☑️ I understand it is strictly prohibited to use AI to write PR description
  • AI usage disclosure: design + moving stuff

Move models from a single file to a directory; each contain the:

  1. model.py - the model definition
  2. layers.py - model layers
  3. config.py - the config
  4. checkpoint.py - sanitization (some models don't need this)
  5. kernels.py - optional, custom kernels for the model

I've checked the models are loading as before

@michalk8
michalk8 requested a review from nastya236 November 19, 2026 16:07
@michalk8 michalk8 self-assigned this Nov 19, 2026

@nastya236 nastya236 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

thank you! This looks much cleaner!

@michalk8
michalk8 merged commit 2d4df8d into ml-explore:main Nov 19, 2026
2 checks passed
@michalk8
michalk8 deleted the model-layout-mechanical branch November 19, 2026 16:52
Augustas11 added a commit to Augustas11/macprovider that referenced this pull request Nov 22, 2026
…-lm#2082)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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