Skip to content

feat(MM):model settings export import#8872

Open
Pfannkuchensack wants to merge 2 commits intoinvoke-ai:mainfrom
Pfannkuchensack:claude/model-settings-export-import-UYgSW
Open

feat(MM):model settings export import#8872
Pfannkuchensack wants to merge 2 commits intoinvoke-ai:mainfrom
Pfannkuchensack:claude/model-settings-export-import-UYgSW

Conversation

@Pfannkuchensack
Copy link
Collaborator

@Pfannkuchensack Pfannkuchensack commented Feb 13, 2026

Summary

Add export/import functionality for model settings (default settings, trigger phrases, cpu_only). This allows users to save a model's configuration to a JSON file and re-apply it later or to another model of the same type.

Export saves the current model's default_settings, trigger_phrases, and cpu_only fields to a downloadable .json file.

Import reads a .json file and applies the settings via the existing updateModel API mutation.

Related Issues / Discussions

QA Instructions

  1. Open the Model Manager and select a model
  2. Configure some default settings (e.g. steps, CFG scale, dimensions) and save
  3. Click the export button (download icon) — a .json file should download
  4. Change or clear the settings and save
  5. Click the import button (upload icon) and select the exported .json file
  6. Verify the settings are restored immediately in the form (no page reload needed)
  7. Verify the settings persist after a page reload
  8. Test with different model types: Main models, LoRAs (trigger phrases + weight), Encoder models (cpu_only), ControlNet/T2I Adapter (preprocessor)

Merge Plan

No special merge considerations. Standard merge to main.

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)

claude and others added 2 commits February 13, 2026 19:13
Add the ability to export model settings (default_settings, trigger_phrases,
cpu_only) as JSON and import them back. The model name is used as the
filename for exports.

https://claude.ai/code/session_01LXKjbRjfzcG3d3vzk3xRCh
…immediately

The useForm defaultValues only apply on mount, so importing model settings
updated the backend but the forms kept showing stale values. Added useEffect
to reset forms when the underlying model config changes. Also fixed lint
errors (strict equality, missing React import).
@github-actions github-actions bot added the frontend PRs that change frontend files label Feb 13, 2026
@Pfannkuchensack Pfannkuchensack changed the title Claude/model settings export import u yg sw feat(MM):model settings export import Feb 13, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

frontend PRs that change frontend files

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants