Skip to article
Insights / Artificial Intelligence
Artificial Intelligence Building My Private AI

Building a Portable, Private AI Model Library on Apple Silicon

Large AI models can quickly consume hundreds of gigabytes of internal storage. In the second article of my private AI build series, I explore how Apple Silicon, a dedicated NAS and local inference tools can create a modular, portable AI model library without filling the internal SSD.

READUNDERSTANDAPPLY
INSIGHT / Artificial Intelligence Read the evidence. Understand the service. Apply the thinking.
17 MIN READ 5 Dec 2026
Share Insight Share this article
Share on LinkedIn Facebook X Email

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.

96GB Unified memory in the planned inference machine
1.8TB Approximate NAS storage capacity available
2 Macs Separate workstation and AI inference roles
01 / 12

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.

02 / 12

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.

ComponentPrimary 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.
Proposed model library workflow
Model repositories Ollama Registry and Hugging Face
↓
Mac mini Internet-connected download and model management workstation
↓
WD My Cloud NAS Ethernet-connected portable model library
↓
Mac Studio Model loading, inference and local AI services
↓
AI applications Visual Studio Code, local RAG and authorised development tools

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.

03 / 12

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 configurationApproximate weight size
70B at 16-bit precision140GB
70B at 8-bit precision70GB or more
70B at 4-bit quantisationTypically 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.

04 / 12

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.

Direct Ethernet connection
Internet Model repositories
↓ Wi-Fi
Mac mini Downloads and local file management
↓ Ethernet
WD My Cloud Directly connected model storage

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.

05 / 12

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.

Terminal — Discover network devices
arp -a

In 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.

Terminal — Create and mount the share
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.

06 / 12

Moving Ollama’s model storage off the internal SSD

By default, Ollama stores downloaded models within the user’s local Ollama directory.

Default Ollama model location
~/.ollama/models

For 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.

Terminal — Check mounted storage
mount | grep -F " on $HOME/WDCloud ("

Only continue once the output confirms that the expected network filesystem is mounted.

Terminal — Configure Ollama storage
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.

Expected Ollama directory structure
WDCloud/
└── OllamaModels/
    ├── blobs/
    └── manifests/
07 / 12

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 candidateIntended 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.

08 / 12

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.

Terminal — Overnight model download queue
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.

Terminal — Import a compatible GGUF model
ollama pull \
hf.co/NousResearch/Hermes-3-Llama-3.1-70B-GGUF:Q4_K_M

The 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.

Terminal — Check model library storage
du -sh "$HOME/WDCloud/OllamaModels"

df -h "$HOME/WDCloud"

ollama list

These commands provide a starting point for checking the size of the library, remaining storage capacity and models registered with Ollama.

09 / 12

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:

  1. Stop Ollama and any active downloads on the Mac mini.
  2. Safely unmount the network share.
  3. Move the Ethernet connection to the Mac Studio.
  4. Discover the NAS address and mount the same model share.
  5. Configure OLLAMA_MODELS to use the mounted library.
  6. Launch Ollama and check that the existing models are recognised.
Terminal — Mac Studio configuration
launchctl setenv OLLAMA_MODELS \
  "$HOME/WDCloud/OllamaModels"

After launching Ollama, I can check whether the existing library is recognised.

Terminal — Check available models
ollama list

ollama run qwen3-coder:30b

The 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.

10 / 12

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.

Proposed model library structure
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.

11 / 12

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.

Local Ollama API
http://localhost:11434

It also provides compatibility with a number of OpenAI-style API endpoints.

OpenAI-compatible API base
http://localhost:11434/v1

For 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.

Terminal — Download embedding model
ollama pull nomic-embed-text

Step 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.

YAML — Example local Continue configuration
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:
      - embed

Extension 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.

Local RAG workflow
Private source material Authorised code, documents and notes
↓
Document processing Extract, organise and chunk content
↓
Local embedding model Convert content into searchable vectors
↓
Retrieval layer Identify relevant authorised passages
↓
Local language model Generate an answer using retrieved context
↓
Human review Review the answer and supporting evidence

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.

12 / 12

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
Share Insight Share this article
Share on LinkedIn Facebook X Email
Put the thinking into practice DIGIFIXIT / INSIGHTS

Follow My Private AI Build Journey

Tell us what is not working, what is changing or what your organisation needs to understand. We can start with the evidence.

Explore More Insights ↗
Scroll to Top