Skip to content

Conversation

psychedelicious
Copy link
Collaborator

Summary

Add a button to the model manager to reidentify a model.

When we are unable to identify a model, it gets installed as Unknown. If we implement support for that model in the future, and the user hasn't deleted the model by then, they can reidentify the unknown model and it should work.


I also fixed an issue with model installation.

There is a heuristic that checks how many files are in a model folder as a way to protect against the user accidentally "installing" a big directory as a model (e.g. user installs C:\ drive). It does this by counting the number of files and folder hierachy depth, bailing out there are too many files or too-deeply-nested model files.

That heuristic didn't ignore hidden directories, so if you had something like a .git dir from a HF-cloned repo, the model manager would think this is not a real model and error.

It now correctly ignores files in hidden directories.

Related Issues / Discussions

n/a

QA Instructions

n/a

Merge Plan

n/a

Checklist

  • The PR has a short but descriptive title, suitable for a changelog
  • Tests added / updated (if applicable)
  • ❗Changes to a redux slice have a corresponding migration
  • Documentation added / updated (if applicable)
  • Updated What's New copy (if doing a release after this PR)

Add route and model record service method to reidentify a model. This
re-probes the model files and replaces the model's config with the new
one if it does not error.
@github-actions github-actions bot added api python PRs that change python files backend PRs that change backend files services PRs that change app services frontend PRs that change frontend files labels Oct 15, 2025
@psychedelicious psychedelicious merged commit 4ad2574 into main Oct 15, 2025
13 checks passed
@psychedelicious psychedelicious deleted the psyche/feat/mm/reidentify-model branch October 15, 2025 23:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

api backend PRs that change backend files frontend PRs that change frontend files python PRs that change python files services PRs that change app services

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants