invoke-ai / invoke-ai/InvokeAI

[bug]: repo_name error when using starter SDQN model

Open
#9,580 1 comment 0 reactions 0 assignees View on GitHub
bug
Dominant language
Python
Stars
28.2k
Forks
3k
Avg merge
6d 5h
Merged PRs (30d)
19

Description

### Is there an existing issue for this problem?

- [x] I have searched the existing issues

### Install method

Manual

### Operating system

Linux

### GPU vendor

AMD (ROCm)

### GPU model

RX 6700 XT

### GPU VRAM

12

### Version number

6.14.1

### Browser

Firefox 155.0.1

### System Information

{
"version": "6.14.1",
"dependencies": {
"absl-py" : "2.5.0",
"accelerate" : "1.14.0",
"annotated-doc" : "0.0.5",
"annotated-types" : "0.8.0",
"anyio" : "4.15.1",
"argon2-cffi" : "25.1.0",
"argon2-cffi-bindings" : "26.1.0",
"arrow" : "1.4.0",
"asttokens" : "3.0.2",
"async-lru" : "2.3.0",
"attrs" : "26.1.0",
"babel" : "2.18.0",
"bcrypt" : "3.2.2",
"beautifulsoup4" : "4.15.0",
"bidict" : "0.24.1",
"bitsandbytes" : "0.50.2",
"blake3" : "1.0.9",
"bleach" : "6.4.0",
"certifi" : "2022.12.7",
"cffi" : "2.1.1",
"charset-normalizer" : "2.1.1",
"click" : "8.5.0",
"coloredlogs" : "15.0.1",
"comm" : "0.2.3",
"compel" : "2.4.0",
"contourpy" : "1.3.3",
"cryptography" : "50.0.1",
"CUDA" : "N/A",
"cycler" : "0.12.1",
"debugpy" : "1.8.21",
"decorator" : "5.3.1",
"defusedxml" : "0.7.1",
"Deprecated" : "1.3.1",
"diffusers" : "0.40.0",
"dnspython" : "2.8.0",
"dynamicprompts" : "0.31.0",
"ecdsa" : "0.19.2",
"einops" : "0.8.2",
"email-validator" : "2.3.0",
"executing" : "2.2.1",
"fastapi" : "0.141.1",
"fastapi-events" : "0.12.2",
"fastjsonschema" : "2.22.2",
"filelock" : "3.32.3",
"flash_attn" : "2.8.3.post1",
"flatbuffers" : "25.12.19",
"fonttools" : "4.64.0",
"fqdn" : "1.5.1",
"fsspec" : "2026.7.0",
"gguf" : "0.19.0",
"h11" : "0.16.0",
"hf-xet" : "1.6.0",
"httpcore" : "1.0.9",
"httptools" : "0.8.0",
"httpx" : "0.28.1",
"huggingface_hub" : "1.30.0",
"humanfriendly" : "10.0",
"idna" : "3.4",
"ImageIO" : "2.37.4",
"imageio-ffmpeg" : "0.6.0",
"importlib_metadata" : "8.7.0",
"iniconfig" : "2.1.0",
"invisible-watermark" : "0.2.0",
"InvokeAI" : "6.14.1",
"ipykernel" : "7.3.0",
"ipython" : "9.17.1",
"ipython_pygments_lexers" : "1.1.1",
"isoduration" : "20.11.0",
"jax" : "0.7.1",
"jaxlib" : "0.7.1",
"jedi" : "0.20.0",
"Jinja2" : "3.1.6",
"json5" : "0.15.0",
"jsonpointer" : "3.1.1",
"jsonschema" : "4.26.0",
"jsonschema-specifications": "2025.9.1",
"jupyter-events" : "0.12.1",
"jupyter-lsp" : "2.3.1",
"jupyter_client" : "8.10.0",
"jupyter_core" : "5.9.1",
"jupyter_server" : "2.21.0",
"jupyter_server_terminals" : "0.5.4",
"jupyterlab" : "4.1.6",
"jupyterlab_pygments" : "0.3.0",
"jupyterlab_server" : "2.24.0",
"kiwisolver" : "1.5.1",
"lark" : "1.3.1",
"lion-pytorch" : "0.2.3",
"markdown-it-py" : "4.2.0",
"MarkupSafe" : "3.0.3",
"matplotlib" : "3.11.1",
"matplotlib-inline" : "0.2.2",
"mdurl" : "0.1.2",
"mediapipe" : "0.10.14",
"mistral_common" : "1.11.7",
"mistune" : "3.3.4",
"ml_dtypes" : "0.5.4",
"mpmath" : "1.3.0",
"nbclient" : "0.11.0",
"nbconvert" : "7.17.1",
"nbformat" : "5.11.1",
"nest-asyncio2" : "1.7.2",
"networkx" : "3.6.1",
"notebook" : "7.1.3",
"notebook_shim" : "0.2.4",
"numpy" : "1.26.4",
"onnx" : "1.16.1",
"onnxruntime" : "1.19.2",
"opencv-contrib-python" : "4.11.0.86",
"opencv-python" : "4.11.0.86",
"opt_einsum" : "3.4.0",
"packaging" : "24.1",
"pandas" : "2.2.3",
"pandocfilters" : "1.5.1",
"parso" : "0.8.7",
"passlib" : "1.7.4",
"pexpect" : "4.9.0",
"picklescan" : "1.0.5",
"pillow" : "12.3.0",
"platformdirs" : "4.11.7",
"pluggy" : "1.5.0",
"prometheus_client" : "0.26.0",
"prompt_toolkit" : "3.0.53",
"protobuf" : "4.25.9",
"psutil" : "7.2.2",
"ptyprocess" : "0.7.0",
"pure_eval" : "0.2.3",
"pyasn1" : "0.6.4",
"pycountry" : "26.2.16",
"pycparser" : "3.0",
"pydantic" : "2.13.5",
"pydantic-extra-types" : "2.11.1",
"pydantic-settings" : "2.15.0",
"pydantic_core" : "2.46.5",
"Pygments" : "2.21.0",
"pyparsing" : "3.3.2",
"PyPatchMatch" : "1.0.2",
"pytest" : "8.3.5",
"python-dateutil" : "2.9.0.post0",
"python-dotenv" : "1.2.3",
"python-engineio" : "4.14.0",
"python-jose" : "3.5.0",
"python-json-logger" : "4.2.0",
"python-multipart" : "0.0.32",
"python-socketio" : "5.16.4",
"pytorch-triton-rocm" : "3.3.1",
"pytz" : "2025.2",
"PyWavelets" : "1.10.0",
"PyYAML" : "6.0.3",
"pyzmq" : "27.2.0",
"referencing" : "0.37.0",
"regex" : "2026.9.3",
"requests" : "2.28.1",
"rfc3339-validator" : "0.1.4",
"rfc3986-validator" : "0.1.1",
"rfc3987-syntax" : "1.1.0",
"rich" : "15.0.0",
"rpds-py" : "2026.6.3",
"rsa" : "4.9.1",
"safetensors" : "0.8.0",
"scipy" : "1.17.1",
"semver" : "3.0.4",
"Send2Trash" : "2.1.0",
"sentencepiece" : "0.2.0",
"setuptools" : "78.1.0",
"shellingham" : "1.5.4",
"simple-websocket" : "1.1.0",
"six" : "1.17.0",
"sniffio" : "1.3.1",
"sounddevice" : "0.5.6",
"soupsieve" : "2.9.2",
"spandrel" : "0.4.2",
"stack-data" : "0.6.3",
"starlette" : "1.6.0",
"sympy" : "1.14.0",
"terminado" : "0.18.1",
"tiktoken" : "0.14.0",
"tinycss2" : "1.5.1",
"tokenizers" : "0.22.2",
"torch" : "2.13.0+rocm7.1",
"torchsde" : "0.2.6",
"torchvision" : "0.28.0+rocm7.1",
"tornado" : "6.5.8",
"tqdm" : "4.66.5",
"traitlets" : "5.16.1",
"trampoline" : "0.1.2",
"transformers" : "5.5.4",
"triton-rocm" : "3.7.1",
"typer" : "0.27.2",
"typing-inspection" : "0.4.4",
"typing_extensions" : "4.16.0",
"tzdata" : "2026.3",
"uri-template" : "1.3.0",
"urllib3" : "1.26.13",
"uvicorn" : "0.52.4",
"uvloop" : "0.22.1",
"watchfiles" : "1.2.0",
"wcwidth" : "0.8.3",
"webcolors" : "25.10.0",
"webencodings" : "0.6.1",
"websocket-client" : "1.9.2",
"websockets" : "17.1",
"wheel" : "0.43.0",
"wrapt" : "2.4.0",
"wsproto" : "1.3.2",
"zipp" : "3.23.0"
},
"config": {
"schema_version": "4.0.3",
"legacy_models_yaml_path": null,
"host": "127.0.0.1",
"port": 9090,
"allow_origins": [],
"allow_credentials": true,
"allow_methods": ["*"],
"allow_headers": ["*"],
"ssl_certfile": null,
"ssl_keyfile": null,
"base_url": null,
"forwarded_allow_ips": "127.0.0.1",
"http_compression_level": 9,
"log_tokenization": false,
"patchmatch": true,
"models_dir": "models",
"convert_cache_dir": "models/.convert_cache",
"download_cache_dir": "models/.download_cache",
"legacy_conf_dir": "configs",
"db_dir": "databases",
"outputs_dir": "/home/user/Documents/invokeai/outputs",
"image_subfolder_strategy": "flat",
"custom_nodes_dir": "nodes",
"style_presets_dir": "style_presets",
"workflow_thumbnails_dir": "workflow_thumbnails",
"log_handlers": ["console"],
"log_format": "color",
"log_level": "info",
"log_sql": false,
"log_level_network": "warning",
"use_memory_db": false,
"dev_reload": false,
"profile_graphs": false,
"profile_prefix": null,
"profiles_dir": "profiles",
"max_cache_ram_gb": null,
"max_cache_vram_gb": null,
"log_memory_usage": false,
"model_cache_keep_alive_min": 0,
"device_working_mem_gb": 5,
"enable_partial_loading": true,
"keep_ram_copy_of_weights": true,
"ram": null,
"vram": null,
"lazy_offload": true,
"pytorch_cuda_alloc_conf": null,
"device": "auto",
"generation_devices": "auto",
"offload_text_encoders_to_idle_gpus": true,
"precision": "float16",
"sequential_guidance": false,
"wan_memory_optimization": false,
"pid_memory_optimization": true,
"attention_type": "sliced",
"attention_slice_size": "balanced",
"force_tiled_decode": true,
"pil_compress_level": 1,
"max_queue_size": 10000,
"session_queue_mode": "round_robin",
"clear_queue_on_startup": false,
"max_queue_history": null,
"allow_nodes": null,
"deny_nodes": null,
"node_cache_size": 512,
"hashing_algorithm": "blake3_single",
"remote_api_tokens": [ {"url_regex": "huggingface.co", "token": "**********"} ],
"scan_models_on_startup": false,
"allow_private_download_urls": false,
"download_proxy": null,
"unsafe_disable_picklescan": false,
"allow_unknown_models": true,
"multiuser": false,
"strict_password_checking": false,
"external_alibabacloud_api_key": null,
"external_alibabacloud_base_url": null,
"external_gemini_api_key": null,
"external_openai_api_key": null,
"external_gemini_base_url": null,
"external_openai_base_url": null,
"external_seedream_api_key": null,
"external_seedream_base_url": null
},
"set_config_fields": [
"force_tiled_decode", "pid_memory_optimization", "outputs_dir", "remote_api_tokens",
"device_working_mem_gb", "attention_type", "precision", "attention_slice_size",
"legacy_models_yaml_path"
]
}

### What happened

Receive this error upon attempting to use the Z-Image Turbo SDQN starter model

```
[2026-09-09 10:48:44,434]::[InvokeAI]::ERROR --> Error while invoking session 301ed14e-c976-498e-80c5-5c4f882cfe0c, invocation 739c1304-ebb2-4768-9922-e6da46f2c640 (z_image_text_encoder): Repo id must be in the form 'repo_name' or 'namespace/repo_name': 'models/invoke/tmpinstall_jlpgfd2n/Z-Image-Turbo-SDNQ-uint4-svd-r32/text_encoder'. Use `repo_type` argument if needed.
[2026-09-09 10:48:44,434]::[InvokeAI]::ERROR --> Traceback (most recent call last):
File ".venv/lib/python3.12/site-packages/transformers/utils/hub.py", line 422, in cached_files
hf_hub_download(
File ".venv/lib/python3.12/site-packages/huggingface_hub/utils/_validators.py", line 84, in _inner_fn
validate_repo_id(arg_value)
File ".venv/lib/python3.12/site-packages/huggingface_hub/utils/_validators.py", line 132, in validate_repo_id
raise HFValidationError(
huggingface_hub.errors.HFValidationError: Repo id must be in the form 'repo_name' or 'namespace/repo_name': 'models/invoke/tmpinstall_jlpgfd2n/Z-Image-Turbo-SDNQ-uint4-svd-r32/text_encoder'. Use `repo_type` argument if needed.

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

Traceback (most recent call last):
File ".venv/lib/python3.12/site-packages/invokeai/app/services/session_processor/session_processor_default.py", line 278, in run_node
output = invocation.invoke_internal(context=context, services=self._services)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File ".venv/lib/python3.12/site-packages/invokeai/app/invocations/baseinvocation.py", line 248, in invoke_internal
output = self.invoke(context)
^^^^^^^^^^^^^^^^^^^^
File ".venv/lib/python3.12/site-packages/torch/utils/_contextlib.py", line 124, in decorate_context
return func(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^
File ".venv/lib/python3.12/site-packages/invokeai/app/invocations/z_image_text_encoder.py", line 60, in invoke
prompt_embeds = self._encode_prompt(context, max_seq_len=Z_IMAGE_MAX_SEQ_LEN)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File ".venv/lib/python3.12/site-packages/invokeai/app/invocations/z_image_text_encoder.py", line 76, in _encode_prompt
text_encoder_info = context.models.load(self.qwen3_encoder.text_encoder)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File ".venv/lib/python3.12/site-packages/invokeai/app/services/shared/invocation_context.py", line 553, in load
return self._services.model_manager.load.load_model(model, submodel_type, user_id=self._data.queue_item.user_id)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File ".venv/lib/python3.12/site-packages/invokeai/app/services/model_load/model_load_default.py", line 100, in load_model
).load_model(model_config, submodel_type)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File ".venv/lib/python3.12/site-packages/invokeai/backend/model_manager/load/load_default.py", line 253, in load_model
cache_record, first_use_claim = self._load_and_cache(model_config, submodel_type)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File ".venv/lib/python3.12/site-packages/invokeai/backend/model_manager/load/load_default.py", line 355, in _load_and_cache
loaded_model = put_in_eval_mode(self._load_model(config, submodel_type))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File ".venv/lib/python3.12/site-packages/invokeai/backend/model_manager/load/model_loaders/z_image.py", line 622, in _load_model
return self._load_text_encoder(config)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File ".venv/lib/python3.12/site-packages/invokeai/backend/model_manager/load/model_loaders/z_image.py", line 639, in _load_text_encoder
te_config = AutoConfig.from_pretrained(te_dir, local_files_only=True)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File ".venv/lib/python3.12/site-packages/transformers/models/auto/configuration_auto.py", line 1483, in from_pretrained
config_dict, unused_kwargs = PreTrainedConfig.get_config_dict(pretrained_model_name_or_path, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File ".venv/lib/python3.12/site-packages/transformers/configuration_utils.py", line 670, in get_config_dict
config_dict, kwargs = cls._get_config_dict(pretrained_model_name_or_path, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File ".venv/lib/python3.12/site-packages/transformers/configuration_utils.py", line 725, in _get_config_dict
resolved_config_file = cached_file(
^^^^^^^^^^^^
File ".venv/lib/python3.12/site-packages/transformers/utils/hub.py", line 278, in cached_file
file = cached_files(path_or_repo_id=path_or_repo_id, filenames=[filename], **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File ".venv/lib/python3.12/site-packages/transformers/utils/hub.py", line 473, in cached_files
raise OSError(f"{e}") from e
OSError: Repo id must be in the form 'repo_name' or 'namespace/repo_name': 'models/invoke/tmpinstall_jlpgfd2n/Z-Image-Turbo-SDNQ-uint4-svd-r32/text_encoder'. Use `repo_type` argument if needed.
```

### What you expected to happen

Normal generation

### How to reproduce the problem

- Navigate to starter models in the UI
- Install the Z-Image Turbo model
- Select the model and Invoke

### Additional context

I do not have a huggingface token. Per a recommendation, I tried adding a dummy one to the config without change.

### Discord username

cubethethird

Contributor guide

No contributing guide indexed for this repository

Research direction

The report names no source file, test, traceback, or entry point. First reproduce the starter SDQN model on InvokeAI 6.14.1 with the reported Linux/AMD ROCm environment and capture the full repo_name error, then trace the model-loading path that raises it. Done means the starter model loads without that error.

Written by the indexing model from the issue text.

Assessment

Tech stack
python, pytorch
Domain
machine-learning
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Active
Clarity
Needs clarification
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.