How to Change Install and Model Storage Paths for Local LLMs on Windows
This article explains how to keep local LLM downloads off the Windows system drive. It covers planning disk roles before installation, passing a target directory to the installer, relocating the model cache through the settings UI or an environment variable, migrating weights that are already on the system drive, verifying that the new path is actually in use, and long-term maintenance such as backups and container volumes. The guidance is tool-agnostic and applies to common local inference runtimes.
Running a local LLM on a personal PC rarely fails at the “can I install it” stage. The real pain point is how much space is left on the system drive afterwards. The inference runtime itself is usually only a few gigabytes, while model weights routinely reach tens of gigabytes and sometimes more than a hundred. If both the installer and the model cache land on the system drive, you quickly run into failed updates, virtual memory warnings, and temp files filling the disk. This article gives practical Windows guidance across path planning, choosing an install directory, migrating model storage, verifying the change, and day-to-day maintenance. It does not depend on any specific product name; it summarizes the common practices shared by local inference tools in general.
1. Plan disk roles before you install anything
The system drive is meant for the operating system, a small number of system-level components, and necessary caches. It is not a warehouse for large files. Create two directory trees on a data drive in advance: one for the runtime (executables, dependency libraries, logs) and one for the model repository (weights, shards, checksum files). Keep directory names to English letters, digits, and underscores, and avoid very long paths and special characters, which reduces encoding compatibility problems in some command-line tools. Before installing, confirm that the target drive has clearly more free space than “program size + the largest model you plan to download + room for extraction and temporary files.” As a rule of thumb, reserve at least 20% on top of the largest model’s size.
2. Change the install location instead of moving files later
Many Windows installers accept a target directory argument at launch. The correct approach is to open a command prompt in the folder containing the installer, then start the wizard with the installer file name, the directory argument, and the absolute path you want. The exact argument form depends on the tool used to build the package; it is commonly an option that sets the install root. The graphical interface still appears afterwards, so check the path shown on the summary or progress page and confirm it points to the data drive. If the UI still points at the system drive, cancel the installation and check whether the quotes are matched, whether the path exists, and whether the current user has write permission on that drive. Once installation finishes, do not treat “the shortcut is still in the Start menu” as proof of success. Go to the target drive and verify the actual working directory of the main program, service, or background process.
One point deserves emphasis: changing the program install directory usually does not change the model cache. Many runtimes write weights to a user profile directory or a hidden folder on the system drive by default. Step two must therefore be handled separately, or the system drive will be filled up as soon as a large model finishes downloading.
3. Change the model storage location: settings UI and environment variables are equivalent
Newer local inference tools offer a settings page where you pick the model root with a “browse for folder” control. After selecting it, the path should update immediately. Download a very small test model right away and confirm the files appear in the new directory rather than on the system drive. If the software is already running in the background, you must fully exit the tray process and restart it after the change; otherwise it may keep using the old path.
A more robust and scriptable alternative is an environment variable. Open Advanced Settings in System Properties, then Environment Variables, and create a new entry under user variables or system variables. Use the “model root directory” variable name defined in that runtime’s documentation, and set the value to the absolute path on the data drive. User variables apply only to the current account; system variables apply to all accounts. On multi-user machines in an organization, a system variable combined with tightened permissions is the better choice. After saving, open a new command prompt window (already-open windows do not refresh their environment), print the variable, and confirm the output matches exactly what you set. If it prints empty, check whether you created it in the wrong scope, whether there is a spelling error or stray space, or whether a group policy is overriding it.
4. Migrating models that are already downloaded
If the weights are already on the system drive, do not just change the variable and leave the files behind. Stop the inference process first, copy the entire original cache directory to the new path, and verify the file count and total size. Then change the environment variable or the settings page, start the software, and confirm it recognizes the existing weights instead of downloading them again. Only after that should you delete the old directory to free space on the system drive. Disabling real-time antivirus scanning for the large-file directory during the copy can reduce the time it takes, but do not make disabling system protection a long-term habit.
5. Verification, logs, and common failure points
Verification should cover three layers: the variable or settings page shows the correct value; new files appear on disk with updated timestamps; and Task Manager or Resource Monitor shows read/write activity on the data drive rather than the system drive. If writes still go to the system drive, the usual causes are:
- The service runs as a different user and therefore cannot read the user variable.
- Multiple variables share the same name and the system variable overrides the user variable.
- The software keeps “working directory” and “model directory” as two separate settings, and you changed only one.
- The path has a trailing space or uses an unexpanded relative path.
If the logs show permission denied, grant the account running the process modify rights on the new directory rather than opening the whole data drive to Everyone.
6. Long-term maintenance
When you include the model directory in a backup strategy, back up configuration and manifests first; weights can be re-fetched from official sources on demand, which shortens the backup window. Periodically clean up incomplete download shards and old weight versions. If you also run inference in containers or virtual machines, put the container volumes or virtual disk files on the data drive as well; otherwise you have only traded a folder for one huge virtual disk file. For teams that need to reuse models across machines, object storage or a file share can hold the weights while each machine keeps only a local cache, further reducing pressure on any single system drive.
In short, controlling local LLM disk usage on Windows is not about picking a different installer. It is about planning the program directory and the model repository separately: specify the program path during installation, pin the model path at runtime through the settings page or an environment variable, then confirm it actually took effect with one small model download and disk monitoring. Follow that order and the system drive only has to carry the operating system and a few runtime files, while the large weights stay on the data drive.
