Enable LFM2.5 export and runner support for MLX#19195
Open
seyeong-han wants to merge 2 commits intopytorch:mainfrom
Open
Enable LFM2.5 export and runner support for MLX#19195seyeong-han wants to merge 2 commits intopytorch:mainfrom
seyeong-han wants to merge 2 commits intopytorch:mainfrom
Conversation
🔗 Helpful Links🧪 See artifacts and rendered test results at hud.pytorch.org/pr/pytorch/executorch/19195
Note: Links to docs will display an error until the docs builds have been completed. ❗ 1 Active SEVsThere are 1 currently active SEVs. If your PR is affected, please view them below: ✅ No FailuresAs of commit 46dbe46 with merge base 7e43308 ( This comment was automatically generated by Dr. CI and updates every 15 minutes. |
Contributor
Author
|
@pytorchbot label "release notes: examples" |
Add LFM2.5 350M registration, MLX export config, focused regression coverage, and a make target for building the shared Llama C++ runner with MLX. Made-with: Cursor
Point the LFM2 README at the uploaded Hugging Face artifacts so users can run the MLX examples without re-exporting locally. Made-with: Cursor
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
make lfm_2_5-mlxto build the shared Llama C++ runner with MLX enabled, plus README instructions for export and C++/pybindings runs.Test plan
pytest -q examples/models/lfm2/test_lfm2_5_mlx.pymake -n lfm_2_5-mlxmake lfm_2_5-mlxlfm2_5_350m_mlx_4w.ptelfm2_5_1_2b_mlx_4w.ptellama_mainsmoke generation withlfm2_5_350m_mlx_4w.pte.330.43 tok/s147.93 tok/s