Skip to content

feat: Metadata Based YAML Settings #70

@iwr-redmond

Description

@iwr-redmond

This FR follows up on #31 and takes advantage of the recent commit adding support for downloading metadata from the main Invoke repository.

It would be helpful to expose certain YAML file options in the settings area of the Launcher, using a control JSON file in the repository as a reference. This would allow for invalid settings to be wiped from the YAML file prior to launch.

The control file would probably look something like:

{
    "enable_partial_loading": {
        "type": "bool",
        "default": "false",
        "description": "Low VRAM Mode",
        "min_version": "5.6.0",
        "max_version": "",
    },
    "hashing_algorithm": {
        "type": "list",
        "values": {
            "blake3_single": "Single Threaded (default)",
            "blake3_multi": "Parallelized (SSDs only)",
            "random": "Disabled",
        },
        "default": "blake3_single",
        "description": "Model Hashing",
        "min_version": "5.0.0",
        "max_version": "",
    },
}

This would allow new settings to be introduced by commit to the main repository, and also allow old settings to be forcibly wiped from the YAML file unless the user opts out.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions