In App Lab 0.9.0, there is a new example: Edge AI Assistant. I want to test it out. However, when I went to bricks -> Large Language Model (LLM) to download Qwen 3.5 0.8B or Gemma 3 1B, it took just too long to download, more than 20 minutes but still 0%. The models are both less than 1GB, and my Internet access is perfectly fine. What happened?
Hi @swanjeng. Thanks for your report.
Background
The problem can be understood a bit more clearly if we examine the logs from the App run attempt:
$ docker compose --file ~/ArduinoApps/copy-of-edge-ai-assistant/.cache/app-compose.yaml logs --timestamps
llamacpp-models-runner-1 | 2026-07-10T14:11:55.001324149Z Generating models.ini...
llamacpp-models-runner-1 | 2026-07-10T14:11:55.284929094Z Traceback (most recent call last):
llamacpp-models-runner-1 | 2026-07-10T14:11:55.305790546Z File "/generate_models_ini.py", line 41, in <module>
main-1 | 2026-07-10T14:11:56.243829584Z Using CPython 3.13.14 interpreter at: /usr/local/bin/python
main-1 | 2026-07-10T14:11:56.244027293Z Creating virtual environment at: .cache/.venv
main-1 | 2026-07-10T14:11:56.787611768Z ======== App is starting ============================
main-1 | 2026-07-10T14:12:04.729492542Z 2026-07-10 14:12:04.728 INFO - [MainThread] LargeLanguageModel: No model specified in constructor. Attempting to retrieve from app configuration or default brick configuration...
main-1 | 2026-07-10T14:12:04.743392833Z Found brick entry for 'arduino:llm' in app.yaml: {'arduino:llm': {}}
main-1 | 2026-07-10T14:12:04.743488250Z Found 'model_by_boards' in brick_config.yaml for brick 'arduino:llm'. Checking for matching board...
main-1 | 2026-07-10T14:12:04.743499812Z Looking for model configuration for board 'unoq' in brick_config.yaml...
main-1 | 2026-07-10T14:12:04.743508927Z Found matching board entry for platform 'unoq': {'platform': 'unoq', 'model': 'llamacpp:Qwen3.5-0.8B-Q4_0'}
main-1 | 2026-07-10T14:12:04.743820594Z 2026-07-10 14:12:04.743 INFO - [MainThread] LargeLanguageModel: Using model: 'llamacpp:Qwen3.5-0.8B-Q4_0'.
main-1 | 2026-07-10T14:12:04.744087105Z 2026-07-10 14:12:04.743 INFO - [MainThread] LargeLanguageModel: Initializing brick with model 'Qwen3.5-0.8B-Q4_0' at http://llamacpp-models-runner:9999/v1
main-1 | 2026-07-10T14:12:10.248938579Z 2026-07-10 14:12:10.248 WARNING - [MainThread] LargeLanguageModel: Failed to list models: Connection error.
main-1 | 2026-07-10T14:12:10.249802123Z 2026-07-10 14:12:10.249 ERROR - [MainThread] LargeLanguageModel: Model 'Qwen3.5-0.8B-Q4_0' not found among locally available models: []. Please download the model or configure it correctly.
llamacpp-models-runner-1 | 2026-07-10T14:11:55.305900338Z generate_models_ini(args.models_dir)
llamacpp-models-runner-1 | 2026-07-10T14:11:55.305911901Z ~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^
llamacpp-models-runner-1 | 2026-07-10T14:11:55.305920807Z File "/generate_models_ini.py", line 27, in generate_models_ini
llamacpp-models-runner-1 | 2026-07-10T14:11:55.305931172Z with open(output_path, "w") as f:
llamacpp-models-runner-1 | 2026-07-10T14:11:55.305939661Z ~~~~^^^^^^^^^^^^^^^^^^
llamacpp-models-runner-1 | 2026-07-10T14:11:55.306099922Z PermissionError: [Errno 13] Permission denied: '/models/models.ini'
main-1 | 2026-07-10T14:12:10.271831911Z 2026-07-10 14:12:10.271 INFO - [WebUI.execute] WebUI: The application interface is available here:
main-1 | 2026-07-10T14:12:10.271938161Z - Local URL: http://localhost:7000
main-1 | 2026-07-10T14:12:10.271957172Z - Network URL: http://192.168.254.17:7000
main-1 | 2026-07-10T14:12:10.272109151Z 2026-07-10 14:12:10.271 INFO - [MainThread] App: App started
llamacpp-models-runner-1 | 2026-07-10T14:11:55.397259185Z Starting LLama server...
llamacpp-models-runner-1 | 2026-07-10T14:11:55.434189995Z 0.00.014.350 I cmn common_param: common_params_print_info: verbosity = 3 (adjust with the `-lv N` CLI arg)
llamacpp-models-runner-1 | 2026-07-10T14:11:55.442409753Z 0.00.023.492 I srv load_models: Loaded 0 cached model presets
llamacpp-models-runner-1 | 2026-07-10T14:11:55.442864441Z 0.00.023.915 I srv load_models: Loaded 0 local model presets from /models
llamacpp-models-runner-1 | 2026-07-10T14:11:55.445873875Z 0.00.026.997 E srv llama_server: failed to initialize router models: preset file does not exist: /models/models.ini
On the first run of the App, it must download the AI model to the filesystem on the UNO Q board. This failed.
If we investigate the models folder where Arduino App Lab stores downloaded AI models, we see this:
$ ls -l --directory /var/lib/arduino-app-cli/models
drwxr-xr-x 3 root root 4096 Jul 10 14:04 /var/lib/arduino-app-cli/models
Note that the folder is owned by the root user instead of by the standard arduino user account on the UNO Q's Linux operating system. The download is performed by the arduino user, so the operating system blocks the download as the user does not have permissions to modify that folder.
The Arduino App Lab developers are tracking this bug here:
Solution
The developers have implemented a fix for this bug in the Arduino App CLI tool that actually handles the model download for Arduino App Lab under the hood:
They released a new version 0.12.1 of Arduino App CLI with that fix just minutes ago. Arduino App Lab will soon display a dialog that offers to update to that new version. After you install that update, Arduino App Lab will be able to download the model automagically as intended.
Please let us know if you still encounter any problems after installing the update.
I apologize for any inconvenience caused by this bug.