LOCAL AI · APPLE SILICON · BUILD JOURNAL 02
Building a Portable, Private AI Model Library on Apple Silicon
Without filling your internal SSD.
One of the first practical challenges I encountered when planning my private AI environment was not choosing a language model. It was deciding where to put all the models I wanted to use.
Download a handful of large language models, add specialist coding models, alternative fine-tunes and eventually audio and video generation models, and several hundred gigabytes of storage can disappear surprisingly quickly.
Rather than treating my Mac Studio as a machine that must contain every component of my AI environment, I started thinking about separating the different responsibilities across my hardware.
My approach is to separate the workstation, the model library and the inference environment. The objective is to create something modular, portable and easier to maintain without relying on expensive internal SSD capacity for everything.
Why build a portable AI model library?
Large language models are becoming increasingly accessible to people who want to run AI locally. However, accessibility does not mean they have become small.
A quantised 70-billion-parameter model can occupy approximately 40 to 45GB of disk space. Some larger models can require 60GB or more, depending on their architecture and quantisation format.
The challenge becomes more obvious when you stop thinking about AI as a single model.
Different models can serve different purposes:
- General-purpose reasoning and analysis.
- Software development and code generation.
- Document analysis and educational content.
- Embedding generation and semantic retrieval.
- Specialist research and model experimentation.
- Audio, image and video generation.
I do not necessarily want to run all these models simultaneously. I want a library from which I can select the right model for a particular task.
That distinction changes the infrastructure requirements considerably.
Separating storage, workstations and inference
My proposed architecture uses two Macs and a dedicated network storage device.
Each component has a different responsibility rather than duplicating everything across multiple computers.
| Component | Primary responsibility |
|---|---|
| Mac mini | Everyday workstation, development, model downloads and library preparation. |
| WD My Cloud NAS | Central storage for downloaded model weights and associated files. |
| 96GB Mac Studio | Dedicated inference, larger language models and local AI processing. |
| Local network | Controlled communication between authorised devices and applications. |
Logical architecture showing how models are downloaded, stored and subsequently used. The directly connected NAS is moved between hosts when required.
The Mac mini can download models overnight while the Mac Studio remains available for inference and other computationally demanding tasks.
The model library is not permanently tied to either computer.
Why unified memory matters
Running a large language model locally is not simply a question of having a powerful processor. Memory capacity is one of the most important constraints.
Conventional computers with discrete graphics cards generally separate system memory from GPU video memory, commonly referred to as VRAM.
A graphics card with 24GB of VRAM cannot hold the complete weights of a typical 4-bit 70B model entirely within its own GPU memory.
Other approaches, such as CPU offloading or distributing the model across multiple GPUs, are possible, but they introduce different performance and infrastructure considerations.
Apple Silicon uses a unified memory architecture. Its CPU, GPU and other processing components share a common memory pool.
For local language models, the attraction is that a high-memory Mac can make a much larger memory allocation available to GPU-accelerated inference than many conventional desktop graphics cards.
Understanding the memory requirements
| Model configuration | Approximate weight size |
|---|---|
| 70B at 16-bit precision | 140GB |
| 70B at 8-bit precision | 70GB or more |
| 70B at 4-bit quantisation | Typically 40–45GB |
| 120B-class quantised model | Format-dependent; approximately 60–70GB for some distributions |
Quantisation reduces the precision used to represent model parameters. It does not automatically reduce the number of parameters in the model.
A 4-bit 70B model remains a 70B-parameter model, but its weights are represented more efficiently.
Formats such as Q4_K_M and MXFP4 use different approaches to representing low-precision weights. They should not be treated as interchangeable formats with identical performance or quality.
My interest in a 96GB Mac Studio is therefore not simply about running the largest possible model. It is about balancing model capability with enough remaining memory to support a useful working environment.
Repurposing a WD My Cloud NAS
Rather than immediately purchasing another expensive storage device, I wanted to explore whether an existing WD My Cloud drive could become the central repository for my AI models.
With approximately 1.8TB of usable storage, the drive provides considerably more room for experimentation than I want to allocate on my internal Mac SSD.
The drive connects directly to the Mac mini through Ethernet, while the Mac mini maintains its internet connection through Wi-Fi.
The direct connection avoids the need to expose the NAS to the internet or make it available across the wider home network.
However, the physical connection alone does not guarantee security. Network sharing, routing, authentication and internet-sharing settings still need to be considered.
Connecting the NAS directly through Ethernet
Step 1: Discover the local network address
Without a router or DHCP server between the two devices, they may assign themselves link-local IPv4 addresses within the 169.254.0.0/16 range.
On macOS, Terminal provides a useful starting point for discovering devices that have already been detected on the local network.
arp -aIn my setup, the WD My Cloud appeared with a link-local address.
I have used a placeholder address in the following commands because the actual address can differ between devices and connections.
Step 2: Mount the network share
Once the NAS address and share name are known, a dedicated mount directory can be created within the Mac’s home directory.
mkdir -p "$HOME/WDCloud"
mount_smbfs \
"//MODEL_USER@NAS_IP/MODEL_SHARE" \
"$HOME/WDCloud"Replace MODEL_USER, NAS_IP and MODEL_SHARE with the appropriate account, network address and share name for the storage device.
A dedicated authenticated share is preferable to using a public share or an administrator account for routine model storage.
The challenge with legacy SMB devices
Older WD My Cloud devices may use outdated SMB protocols and authentication mechanisms that modern versions of macOS no longer accept by default.
That creates a compatibility challenge, particularly when repurposing older storage hardware for modern development workflows.
Legacy compatibility settings can sometimes restore connectivity, but weakening SMB signing or enabling obsolete authentication protocols can affect the security of the Mac.
Moving Ollama’s model storage off the internal SSD
By default, Ollama stores downloaded models within the user’s local Ollama directory.
~/.ollama/modelsFor a small model collection, that is perfectly reasonable. For a library containing several large models, the internal storage requirements can grow quickly.
Ollama supports an environment variable called OLLAMA_MODELS, which allows the model storage directory to be changed.
Before redirecting Ollama, I want to confirm that the network share is actually mounted. Otherwise, the mount directory could simply become another local folder and defeat the entire purpose of the exercise.
mount | grep -F " on $HOME/WDCloud ("Only continue once the output confirms that the expected network filesystem is mounted.
mkdir -p "$HOME/WDCloud/OllamaModels"
launchctl setenv OLLAMA_MODELS \
"$HOME/WDCloud/OllamaModels"Ollama must be fully stopped before changing its environment configuration and restarted afterwards so that the new process inherits the storage location.
The application may also require permission to access network volumes on macOS.
Once the configuration is working, Ollama should create its model storage structure within the NAS directory.
WDCloud/
└── OllamaModels/
├── blobs/
└── manifests/Building a library of specialist models
I do not expect one language model to be the best choice for every task.
Part of the value of maintaining my own model library is being able to compare different architectures, model sizes and fine-tunes without being restricted to a single provider.
| Model candidate | Intended evaluation |
|---|---|
| GPT-OSS 120B | Larger-model reasoning and structured problem-solving |
| Qwen3 Coder 30B | Software development and codebase analysis |
| Llama 3.3 70B | General-purpose language tasks and document analysis |
| Gemma 3 27B | Alternative general-purpose model evaluation |
| OLMo 2 32B | Open model research and comparative evaluation |
| Dolphin Mistral 24B | Alternative fine-tune behaviour and instruction-following |
| Hermes 3 Llama 3.1 70B | Structured outputs and alternative model behaviour |
| Nomic Embed Text | Local embeddings and semantic retrieval |
I am also interested in evaluating community fine-tunes, including models whose refusal behaviour has been modified.
These models can behave differently from their original distributions. That does not make them inherently more accurate, more capable or more appropriate for educational applications.
Model selection needs to consider licensing, provenance, factual accuracy, instruction following, safety and suitability for the intended application.
A model library is therefore more than a collection of downloaded files. It is also a catalogue of capabilities, limitations and engineering decisions.
Queuing model downloads overnight
Downloading several hundred gigabytes of model weights can take hours, depending on internet speed, repository performance and the write speed of the storage device.
I do not want those downloads to interrupt the computer responsible for running my larger AI workloads.
The Mac mini can act as a dedicated download node during periods when I am not using it.
macOS includes a utility called caffeinate, which can prevent idle system sleep while a specified process is running.
caffeinate -i bash -c '
set -e
ollama pull gpt-oss:120b
ollama pull qwen3-coder:30b
ollama pull llama3.3:70b
ollama pull gemma3:27b
ollama pull olmo2:32b
ollama pull dolphin-mistral:24b
ollama pull nomic-embed-text
ollama list
'The command prevents idle sleep while the download script runs. The display can still turn off without necessarily interrupting the background process.
The script uses set -e so that it stops if a download fails, rather than silently continuing through an unsuccessful queue.
Additional GGUF models can also be downloaded from compatible Hugging Face repositories through Ollama.
ollama pull \
hf.co/NousResearch/Hermes-3-Llama-3.1-70B-GGUF:Q4_K_MThe exact model tags, quantisation variants and repository compatibility should be checked before starting a large download.
I also want to keep track of the actual storage consumed rather than relying on theoretical estimates.
du -sh "$HOME/WDCloud/OllamaModels"
df -h "$HOME/WDCloud"
ollama listThese commands provide a starting point for checking the size of the library, remaining storage capacity and models registered with Ollama.
Moving the library to the Mac Studio
One of the main reasons for separating model storage from the workstation is portability.
Once the model library has been downloaded and prepared on the NAS, I want to make those same files available to the Mac Studio without downloading everything again.
The intended process is straightforward:
- Stop Ollama and any active downloads on the Mac mini.
- Safely unmount the network share.
- Move the Ethernet connection to the Mac Studio.
- Discover the NAS address and mount the same model share.
- Configure OLLAMA_MODELS to use the mounted library.
- Launch Ollama and check that the existing models are recognised.
launchctl setenv OLLAMA_MODELS \
"$HOME/WDCloud/OllamaModels"After launching Ollama, I can check whether the existing library is recognised.
ollama list
ollama run qwen3-coder:30bThe objective is to avoid downloading the same model weights twice.
Successful reuse depends on the integrity of the model files, compatible Ollama versions, permissions and reliable access to the network storage.
The Ethernet performance trade-off
A Gigabit Ethernet connection has a theoretical maximum transfer rate of approximately 125MB per second before protocol overhead.
At that theoretical rate, transferring 40GB would take approximately five minutes and twenty seconds.
Real-world loading can take considerably longer, particularly with an older NAS, mechanical disks and SMB overhead.
Once model data is resident in memory, inference performance is more dependent on the processing hardware and memory bandwidth. However, memory mapping, paging and model reloads can still require access to the underlying storage.
That makes the NAS attractive as a model archive, but frequently used models may benefit from being cached on a faster external SSD.
Organising models by inference engine
Not every AI application stores models in the same format.
Ollama maintains its own model blobs and manifests. Other applications may use standalone GGUF files, MLX weights or different model directory structures.
Rather than combining everything into one folder, I want the library to have a deliberate structure from the beginning.
WDCloud/
│
├── OllamaModels/
│ ├── blobs/
│ └── manifests/
│
├── LMStudioModels/
│ ├── GGUF/
│ └── MLX/
│
├── MediaModels/
│ ├── Audio/
│ ├── Video/
│ └── Image/
│
└── ModelRegistry/
├── Licences/
├── ModelCards/
└── EvaluationNotes/The structure allows different inference applications to maintain their own model files without interfering with one another.
It also creates a place for model cards, licence information, evaluation notes and documentation.
As the library grows, I want to know more than just the name of each model.
- Which model version am I using?
- Which quantisation format is installed?
- What licence applies to the model?
- How much memory does it require?
- Which tasks has it performed well on?
- What limitations have I identified?
Those questions become increasingly important when moving from personal experimentation towards a dependable education-focused AI environment.
Connecting Visual Studio Code to local AI and RAG
Downloading and organising models is only one part of the wider architecture.
The next step is connecting those models to applications that can use them in practical development workflows.
Ollama provides a local API that applications can use to send requests to a running model.
http://localhost:11434It also provides compatibility with a number of OpenAI-style API endpoints.
http://localhost:11434/v1For a development environment running directly on the Mac Studio, applications can communicate with Ollama without using a hosted inference API.
Step 1: Install a local embedding model
A language model and an embedding model perform different responsibilities.
The language model generates responses. The embedding model converts text into numerical representations that support semantic search and retrieval.
ollama pull nomic-embed-textStep 2: Connect a VS Code extension
Extensions such as Continue and Cline provide interfaces for connecting coding workflows to different language model providers.
My preference is to configure the relevant extension to use a local Ollama endpoint instead of automatically sending development requests to a hosted AI service.
Step 3: Configure local models
The following illustrates a role-based Continue configuration using local Ollama models.
name: DigiFixIT Local AI
version: 1.0.0
schema: v1
models:
- name: Qwen3 Coder 30B
provider: ollama
model: qwen3-coder:30b
apiBase: http://localhost:11434
roles:
- chat
- edit
- apply
- name: GPT-OSS 120B
provider: ollama
model: gpt-oss:120b
apiBase: http://localhost:11434
roles:
- chat
- name: Local Embeddings
provider: ollama
model: nomic-embed-text
apiBase: http://localhost:11434
roles:
- embedExtension configuration formats can change between releases. The example should be checked against the documentation for the installed version of Continue.
A separate, smaller coding model may be more appropriate for low-latency autocomplete than keeping a large 30B or 120B model loaded for every suggestion.
Step 4: Introduce retrieval-augmented generation
Retrieval-augmented generation, or RAG, allows an application to retrieve relevant material before asking the language model to generate an answer.
Depending on the installed extension and its supported indexing features, codebase context can be retrieved from local project files and supplied to the language model.
Educational documents, PDFs and course material may require a separate ingestion pipeline or dedicated RAG application, such as AnythingLLM.
My objective is to use these tools together where appropriate, rather than assuming a coding extension automatically provides a complete document management and educational knowledge platform.
Private AI requires more than local inference
One of the reasons I am building this environment is to have greater control over where my information is processed.
Running a language model locally is an important part of that objective, but it does not automatically make the entire software stack private.
Applications and extensions may still communicate with external services for telemetry, updates, authentication, documentation retrieval or other features.
A genuinely controlled environment requires decisions about the entire data flow.
- Where the model weights are stored.
- Where inference takes place.
- Where documents and embeddings are stored.
- Which applications can access private material.
- Which services can communicate with the internet.
- How users are authenticated and authorised.
- How generated outputs are reviewed.
- How files and configurations are backed up.
I also want to distinguish downloadable model weights from the private knowledge that will eventually be used by the system.
Model weights can generally be downloaded again. Personal research, unpublished educational material and proprietary documents may be considerably more difficult to replace.
Those two categories of information should not automatically share the same storage, access permissions or backup arrangements.
Conclusion
Building infrastructure I can adapt
The more I explore local AI, the more I realise that choosing a language model is only one of many decisions.
Storage architecture, memory capacity, model management, retrieval, network connectivity and security all influence what the finished environment can do.
Separating my model library from the machine responsible for inference gives me greater flexibility.
I can prepare models on one computer, move the library to another and select the most appropriate model for a particular workload.
I can also evaluate different inference engines and introduce specialist models without redesigning the entire storage environment every time.
There are trade-offs. An older NAS is slower than a modern SSD, compatibility requires careful consideration and the actual performance of larger models needs to be measured.
But the objective is not to create the fastest possible AI system at any cost.
It is to create an environment that I understand, can control and can adapt as my requirements develop.
The next stage is to test model loading times, memory consumption, inference performance and retrieval quality, then determine which models belong on slower archive storage and which deserve faster local access.
That is the difference between simply downloading AI models and deliberately engineering a private AI environment.
Technical documentation
The following resources provide further information about the tools and technologies discussed in this article.
DIGIFIXIT · BUILDING MY PRIVATE AI
Building AI with control, not just convenience.
Follow my private AI build journey as I explore local models, infrastructure, retrieval-augmented generation, automation and the engineering decisions behind a controlled AI environment.
Explore More Insights


