Repository navigation
Restore ordered model loader selection - #1126
Merged
Merged
Conversation
Owner
Author
|
@ykhrustalev I've removed the loader-priority changes introduced in #1119. Using |
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.
Problem on current main
#1119 added a priority pass that tries LFM3 before the normal loader-selection loop. When a directory contains both LFM3 and another supported model, LFM3 wins even if the other model's loader is registered first. This can select the wrong model or reject a request that previously worked.
Before versus after
For the shared-directory cases below, the original model's loader is registered before LFM3. No
--familyis supplied unless shown.genrequestgen--family lfm3_audioFix
Remove the priority pass and its shared loader hooks, restoring the three shared loader files exactly to their pre-#1119 versions. Keep LFM3's identity checks inside its own loader. Update its documentation and session test to use
--family lfm3_audio, and remove the test added specifically for the priority mechanism.Automatic detection follows normal registration order again. LFM3 no longer jumps ahead of generic layout-based loaders; callers should use
--family lfm3_audioto select it reliably. Inference math and session lifecycle are not changed.Validation
model_spec_system_testandlfm3_audio_session_testpassed.Loader selection and component selection are separate: LFM2.5 ASR in the shared directory still needs its existing backbone-selection option when multiple backbone candidates are present. The original ordered-selection code reports the same ambiguity; this PR does not change that behavior.