If you upgraded to Ollama 0.40 and the model directory looks larger, check the actual files and free space before deleting anything or ordering more storage. Some models may be converted on disk, with older files temporarily retained for rollback; the effect depends on the model and its conversion state.
This is for developers who have just upgraded, teams running Ollama alongside a knowledge base, and technical leads planning self-hosted AI storage.
Last updated November 6, 2026. Version behavior checked against the Ollama maintainer discussion, the official release history, and the Open WebUI storage guidance.
The upgrade timeline and what it means
The useful distinction is not simply “before the update” versus “after the update.” It is whether Ollama has converted a particular model and whether it still retains the earlier files.
On October 8, 2026, an Ollama maintainer described disk conversion for some models, temporary retention of older files to support rollback, and unchanged files for models that had not yet been loaded and converted. That is the documented behavior to check against your installation; it is not evidence that all models grow, or that they grow by the same amount. See the maintainer’s explanation and the official release records for version context.
Use this timeline to guide the investigation:
- Before cleanup: record the current free space and identify the model directory.
- During inspection: compare the model inventory with the directory’s actual contents and usage.
- Before deleting or expanding: establish whether files are active, retained for rollback, or unrelated application data.
- After any change: check available space again and confirm that the models and applications you need still work.
The version number is a reason to investigate, not a capacity estimate. The decision should come from the files on your server and the storage your workload needs to retain.
Ollama 0.40 model storage usage: measure the right things
A larger directory is a symptom, not a diagnosis. Start with three separate measurements: the Ollama model directory, free space on the filesystem that holds it, and storage used by the rest of the AI stack.
First identify the actual model location. Ollama’s environment settings can affect where model files are stored, so check the service configuration and the official environment-variable reference. Do not assume that a default path applies if you set a custom location, run Ollama as a service, or launch it inside a container.
On a Linux host, after confirming the correct path, commands such as these can help you inspect it:
ollama list
du -sh "$MODEL_DIR"
df -h "$MODEL_DIR"
Set MODEL_DIR to the path you verified; do not copy a guessed path into a cleanup script. ollama list shows the models known to the CLI, while du measures directory usage and df reports filesystem capacity and free space. These answer different questions: a model inventory does not establish how much space is available to write new data.
If Ollama runs in Docker, find the volume or bind mount that holds the models, then inspect its location on the host. Docker volumes have their own lifecycle and may persist separately from a container, as described in the Docker volume documentation. Do not remove a volume simply because a container was replaced.
| Metric to record | What to inspect | Why it changes the decision |
|---|---|---|
| Model directory usage | The verified Ollama model path or its Docker-backed storage | Shows how much space Ollama’s files currently occupy |
| Filesystem free space | The filesystem containing that directory | Tells you whether the next pull, conversion, or write may run short |
| Retained model versions | Files associated with models you may need to roll back | Helps distinguish intentional retention from files you can manage through supported tools |
| Application and knowledge-base data | Container volumes, uploaded documents, and index storage | Prevents you from treating all storage use as model weights |
| Backup destination | The location holding recoverable copies | Clarifies whether your recovery plan depends on the same disk |
Take the measurements at the same point in your upgrade process when comparing them. A previous report from before a model was loaded may not be comparable with a report taken after conversion. If you do not have a baseline, record the current state and repeat the check after the next model operation. That gives you an observable change without guessing what happened earlier.
Model files, application volumes, and business data
Model weights are only one part of a self-hosted AI server. A knowledge-base deployment can also retain uploaded source documents, embeddings or vector indexes, application configuration, database files, logs, and temporary data. These categories have different retention and recovery requirements. A model can often be pulled again; private source documents or a carefully maintained index may not be replaceable.
Open WebUI’s official quick-start and storage guidance is useful when identifying application data, but the paths and mount points depend on your deployment. For Docker-based services, inspect the Compose file and its volume declarations. The host path or named volume is what matters for server capacity—not merely the path shown inside a container.
| Storage category | Inventory question | Avoid this mistake |
|---|---|---|
| Ollama model files | Which models and versions do you intend to keep? | Assuming each model has one file or a fixed footprint |
| Application state | Which databases, settings, and uploads use persistent volumes? | Deleting a volume while replacing or recreating a container |
| Knowledge-base content | Where are source documents and indexes stored? | Counting the model directory as the entire AI data set |
| Logs and temporary files | Which service owns the data, and does it have a retention policy? | Removing files before identifying their purpose |
| Backups | Are recoverable copies stored outside the working data disk? | Treating another directory on the same disk as an independent backup |
The model inventory and the storage inventory should agree with your deployment plan. If Compose maps several services to one host filesystem, a model pull, document import, and index rebuild may all compete for the same available space. A single “models” total will not reveal that risk.
Do not delete model files manually just because they appear to be an older copy. First verify their role and whether your installed version still needs them for normal operation or rollback. When the file relationship is unclear, preserve it until you have checked version-specific official guidance.
A capacity estimate based on your workload
Build the estimate from measured categories rather than a generic per-model allowance. Record the current footprint of the model directory, application volumes, documents, indexes, and logs. Then add the data you expect to retain: planned models, any old versions you need for rollback, likely document growth, and any index rebuild or migration data your process requires.
Compare that working total with usable free space on the filesystem that will receive the data. Also identify where backups will live. A backup stored on the same disk may protect against an application-level mistake, but it does not protect against loss of that disk.
Use a decision path:
- If the apparent increase is limited to files you have confirmed are safely manageable through Ollama’s supported tools, manage those files, then measure the directory and filesystem again. Keep rollback needs in the decision.
- If the usage is explained by model files you intend to retain, include those files in your planned capacity. Do not treat them as disposable merely because they appeared after an update.
- If model files, application volumes, and knowledge-base data all share a filesystem, measure each category and include expected growth before changing the server layout.
- If free space remains adequate for your measured workload and planned retention, keep the current storage and establish a review point. An upgrade alone does not justify expansion.
- If the working data is growing, the next planned model or import would leave insufficient headroom, or application data is competing with models, evaluate more storage or a different data layout. Keep independent backups in the plan.
This is a capacity-planning decision, not a performance benchmark. The Ollama CLI reference documents model-management commands; use the options supported by your installed version rather than relying on an unverified deletion command copied from an unrelated setup.
FAQ
Why did my model directory change after updating Ollama?
Ollama’s maintainer described disk conversion for some models and temporary retention of the earlier version for rollback. That can affect storage use, but it does not establish a uniform increase. Check whether the model was loaded and converted, compare the directory contents with Ollama’s model list, and measure filesystem free space. Treat reports from other users as individual cases, not as a capacity estimate for your server.
How do I find the Ollama model directory and measure it?
Check the environment settings for Ollama’s model location before measuring anything. Then use the CLI inventory alongside a disk-usage check on the verified path, and inspect free space on the filesystem that contains it. In a Docker deployment, trace the container mount to its host-side volume or bind mount. These checks help separate model storage from unrelated application data.
Can I remove files left behind by conversion?
Do not decide from a filename alone. Establish whether the files are associated with a model you still use, whether the installed version references them, and whether you need rollback. Prefer supported model-management operations and verify the result afterward. If official guidance for your version does not clearly identify the files as safe to remove, preserve them while you investigate.
How should I plan disk capacity for models and a knowledge base?
Measure models, persistent application data, uploaded documents, indexes, logs, and backups separately. Add the models and data you intend to retain, including any rollback copies that matter to your recovery plan, then compare that requirement with usable space on the relevant filesystem. Revisit the estimate when imports or indexes grow. A fixed allowance without a measured workload can either waste capacity or leave too little.
Mapping the measured need to a server
Once you know what consumes space, choose storage around the data you plan to keep—not around the Ollama version alone. Consider how many models you retain, whether you keep rollback copies, how quickly documents and indexes grow, and where you place backups. If all services write to the same filesystem, account for their combined use and check the actual Compose mounts before splitting data across disks.
AmdBit’s listed server options include a 32-core, 64-thread AMD EPYC 7543P; 128 GB or 256 GB of DDR4-3200 ECC RDIMM memory; and two directly attached 1 TB NVMe drives, with up to two additional 2 TB NVMe drives available. Confirm the current options on the AmdBit pricing page before choosing. The drives are direct-attached, not hardware RAID: usable capacity is not automatically mirrored, and additional drives are not a backup. If you need redundancy, plan and maintain software RAID and keep a separate off-machine backup.
For a single Ollama service and modest data growth, keeping models and application data together may be manageable if measured free space remains suitable. If document uploads, indexes, and models grow independently, a separate storage layout can make monitoring and capacity planning clearer. It does not by itself provide redundancy: decide how each category is backed up and how you would restore it.
A self-hosted setup is not always a reason to rent a physical server. If you run a short-lived experiment, have a light workload, or need rapid hourly scaling, a smaller or more elastic option may fit better. A shared VPS or public-cloud instance can be simpler for that case. But when your current environment has noisy-neighbor contention, uncertain CPU allocation, storage limits that force you to split persistent data, or usage-based charges that make sustained storage and compute hard to forecast, an exclusive AMD physical server can be a better fit for long-running workloads. Check the actual storage and billing options before deciding; the AmdBit order page is the next step only if the measured need justifies it.
This week, verify the model directory, record free space, and inventory application and knowledge-base volumes. If those measurements show that your current storage still covers the models and data you plan to retain, keep it and monitor growth. If they show sustained competition for space, compare your measured requirement with AmdBit’s listed storage options before moving the workload.
Frequently asked questions
Why might some Ollama model files take more space after the 0.40 update?
Ollama’s maintainer described disk conversion for some models and temporary retention of the previous version to support rollback. The change is conditional: models that have not been loaded and converted may remain unchanged, and the effect varies by model. Check the actual model directory and available disk space rather than assuming every model grew by the same amount.
How can I check which directory Ollama uses and how much space it takes?
First check the Ollama environment settings for the model location, including whether OLLAMA_MODELS overrides the default. Then compare the model list with a disk-usage report for that directory and inspect filesystem free space. If Ollama runs in Docker, identify the mounted volume and inspect its host-side location; do not assume the container’s visible path is the host storage path.
Is it safe to delete the old files left after model conversion?
Do not remove files based only on their names or apparent age. Confirm which model and version they belong to, whether the current Ollama version still references them, and whether rollback is part of your recovery plan. Use supported Ollama management commands where applicable, then recheck disk usage. If the relationship is unclear, preserve the files and consult the version-specific official guidance.
How much disk space should a self-hosted AI server reserve for models and a knowledge base?
There is no reliable fixed size without knowing your model set, retained versions, uploaded documents, index, logs, and backup policy. Measure each category on your deployment, add the models and data you actually plan to retain, then compare that total with usable filesystem space. Keep backups outside the server’s working storage and reassess when the dataset grows.
Further reading
Give Storage-Heavy Workloads More Room
Choose an AmdBit dedicated server with an AMD EPYC 7543P and 128GB or 256GB of ECC memory.
