Persistent Deployment
This guide explains how to load a model automatically when the device starts, ensuring that LlamaPi remains available to external applications.
Enable Automatic Loading
llamapi enable qwen3:4bThis command saves the model's automatic-loading settings. The model loads automatically the next time the device starts.
Load Immediately and Verify
Enable automatic loading and load the model now:
llamapi enable qwen3:4b --nowCheck the model state:
llamapi psWhen the ENABLE column shows yes(N), the model is configured for automatic loading, and N is the configured instance count.
Configure Instances and a Runtime ID
llamapi enable qwen3:4b --instance 2 --id assistant --nowThe instance count affects hardware resource usage. Select a count appropriate for the device.
Disable Automatic Loading
llamapi disable qwen3:4bDisable automatic loading and unload the model now:
llamapi disable qwen3:4b --nowIf automatic loading was configured with a custom runtime ID, use that ID to remove the entry:
llamapi disable assistant --nowFor additional LlamaPi service configuration and troubleshooting, see Service Configuration and Operations. See the Terminal Command Guide for complete command options.

