Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[bug]: Unable to set vram or ram in YAML #7550

Open
1 task done
REDDKOMET opened this issue Jan 12, 2025 · 2 comments
Open
1 task done

[bug]: Unable to set vram or ram in YAML #7550

REDDKOMET opened this issue Jan 12, 2025 · 2 comments
Labels
bug Something isn't working

Comments

@REDDKOMET
Copy link

Is there an existing issue for this problem?

  • I have searched the existing issues

Operating system

Windows

GPU vendor

Nvidia (CUDA)

GPU model

4090

GPU VRAM

24GB

Version number

5.6.0rc2

Browser

Firefox 134.0 (64-bit)

Python dependencies

No response

What happened

I update my YAML to:

Internal metadata - do not edit:

schema_version: 4.0.2

Put user settings here - see https://invoke-ai.github.io/InvokeAI/configuration/:

enable_partial_loading: true

Set the RAM cache size to as large as possible, leaving a few GB free for the rest of your system and Invoke.

For example, if your system has 32GB RAM, 28GB is a good value.

max_cache_ram_gb: 28

Set the VRAM cache size to be as large as possible while leaving enough room for the working memory of the tasks you will be doing.

For example, on a 24GB GPU that will be running unquantized FLUX without any auxiliary models,

18GB is a good value.

max_cache_vram_gb: 18

I Get:

Please enter 1-4, Q: [1] 1
Starting the InvokeAI browser-based UI..
Traceback (most recent call last):
File "C:\Users\Ben\invokeai.venv\Lib\site-packages\invokeai\app\services\config\config_default.py", line 467, in load_and_migrate_config
config = InvokeAIAppConfig.model_validate(loaded_config_dict)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\Ben\invokeai.venv\Lib\site-packages\pydantic\main.py", line 551, in model_validate
return cls.pydantic_validator.validate_python(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
pydantic_core._pydantic_core.ValidationError: 2 validation errors for InvokeAIAppConfig
max_cache_ram_gb
Extra inputs are not permitted [type=extra_forbidden, input_value=28, input_type=int]
For further information visit https://errors.pydantic.dev/2.7/v/extra_forbidden
max_cache_vram_gb
Extra inputs are not permitted [type=extra_forbidden, input_value=18, input_type=int]
For further information visit https://errors.pydantic.dev/2.7/v/extra_forbidden

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
File "", line 198, in _run_module_as_main
File "", line 88, in run_code
File "C:\Users\Ben\invokeai.venv\Scripts\invokeai-web.exe_main
.py", line 7, in
File "C:\Users\Ben\invokeai.venv\Lib\site-packages\invokeai\app\run_app.py", line 10, in run_app
from invokeai.app.api_app import invoke_api
File "C:\Users\Ben\invokeai.venv\Lib\site-packages\invokeai\app\api_app.py", line 22, in
import invokeai.backend.util.hotfixes # noqa: F401 (monkeypatching on import)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\Ben\invokeai.venv\Lib\site-packages\invokeai\backend\util\hotfixes.py", line 32, in
logger = InvokeAILogger.get_logger(name)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\Ben\invokeai.venv\Lib\site-packages\invokeai\backend\util\logging.py", line 343, in get_logger
config = config or get_config()
^^^^^^^^^^^^
File "C:\Users\Ben\invokeai.venv\Lib\site-packages\invokeai\app\services\config\config_default.py", line 545, in get_config
config_from_file = load_and_migrate_config(config.config_file_path)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\Ben\invokeai.venv\Lib\site-packages\invokeai\app\services\config\config_default.py", line 473, in load_and_migrate_config
raise RuntimeError(f"Failed to load config file {config_path}: {e}") from e
RuntimeError: Failed to load config file C:\Users\Ben\invokeai\invokeai.yaml: 2 validation errors for InvokeAIAppConfig
max_cache_ram_gb
Extra inputs are not permitted [type=extra_forbidden, input_value=28, input_type=int]
For further information visit https://errors.pydantic.dev/2.7/v/extra_forbidden
max_cache_vram_gb
Extra inputs are not permitted [type=extra_forbidden, input_value=18, input_type=int]
For further information visit https://errors.pydantic.dev/2.7/v/extra_forbidden

What you expected to happen

I expect Invoke to launch

How to reproduce the problem

Edit YAML with LowVRAM settings and launch

Additional context

No response

Discord username

No response

@REDDKOMET REDDKOMET added the bug Something isn't working label Jan 12, 2025
@hipsterusername
Copy link
Member

Launcher or older batch script?

@psychedelicious
Copy link
Collaborator

This means your Invoke install isn't updated to v5.6.0rc2. Please update and try again.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants