Skip to content

Plugin discovery - #2106

Open
michalk8 wants to merge 39 commits into
ml-explore:mainfrom
michalk8:plugin-discovery
Open

michalk8 wants to merge 39 commits into
ml-explore:mainfrom
michalk8:plugin-discovery

Conversation

@michalk8

@michalk8 michalk8 commented Nov 24, 2026 •

Copy link
Copy Markdown
Collaborator
  • ☑️ I understand it is strictly prohibited to use AI to write PR description
  • AI usage disclosure: design/code/tests

Add initial support for plug-ins; they can be defined as (explained in the readme) using two entry points:

[project.entry-points."mlx_lm.models"]
my_model = "my_lm.model:Model"

[project.entry-points."mlx_lm.tool_parsers"]
my_parser = "my_lm.tool_parser:ToolParser"

mlx_lm plugin list cmd-line util can be used to list all installed plug-ins.

This is experimental and will stay so until the model API (e.g. input/output arguments, caches, etc.) and other APIs are finalised.
All models now require a class arg, model_args = ModelArgs, similarly as in HF.

@michalk8
michalk8 requested a review from nwh November 24, 2026 20:45

This branch has not been deployed

No deployments
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