26 billion total parameters, with about 4 billion activated per token: that is Google’s description of Gemma 4 26B-A4B. It can run on CPU alone, but you must budget for the complete model weights—not just the active parameters.
Symptom: The model seems small enough because its active count is around 4B.
Fastest fix: Estimate weight memory from the full parameter count, then add context cache, runtime, and every other service sharing the host.
This guide is for developers who want to connect Gemma 4 to a private AI application without a GPU. It also helps teams comparing 128GB and 256GB dedicated server options, or deciding whether Ollama or llama.cpp fits their deployment.
Last updated October 19, 2026. Model details and inference options checked against the Google Gemma 4 model card, which documents the model and its memory-estimate caveats.
Active parameters do not determine the weight budget
Gemma 4 26B-A4B is a mixture-of-experts model. Its A4B label refers to the approximate number of parameters activated for a token. It does not mean the remaining weights disappear from the model or that the runtime only needs to load 4B parameters.
For memory planning, separate four quantities:
- Total parameters: the basis for estimating the model’s full weight set.
- Active parameters: a description of work selected for a token, not the total weight memory.
- Quantized model file: the on-disk representation, affected by format and metadata.
- Runtime memory: the memory used while serving requests, including the context cache.
The distinction matters when comparing a small virtual server with a dedicated machine. A model can fit in available RAM and still leave too little room for a vector database, an application platform, or a second inference process. Conversely, a large RAM number alone does not guarantee a useful generation speed.
Google’s model card provides an official memory estimate for a Q4_0 version and warns that model weights are not the whole requirement. Software and context-cache overhead need separate consideration. Use the estimate as a reference for that format, not as a promise that the same amount of system RAM will be enough for your complete deployment.
Weight size is a baseline, not a complete RAM estimate
A first-pass calculation is:
Theoretical weight size ≈ total parameters × quantization bits ÷ 8
For a 26-billion-parameter model at four bits per parameter, that gives about 13 billion bytes, or roughly 13 GB using decimal units. The arithmetic is a planning baseline based on the model’s total parameter count; it is not a measurement of an installed model.
Actual files and memory use differ because quantization formats include metadata and may use mixed precision. The inference framework can also allocate buffers beyond the weight file. Compare like with like: Google’s Q4_0 estimate and the downloadable size shown for an Ollama tag are different measurements. The Ollama Gemma 4 tags page is useful for checking the specific tag and its listed download size, but that figure does not replace a runtime memory check.
Use a measured budget rather than a single file-size figure:
Available memory needed ≈ model weights + KV cache + inference runtime + operating system + other services
The terms vary by configuration. Do not assign a fixed memory allowance to the context cache without knowing the model settings and request pattern.
Context length and concurrency add variable cache costs
The KV cache stores information needed to continue generation from the existing context. A longer context increases this cache. Serving multiple requests at once can increase the total again. The impact depends on the model, runtime, context configuration, and concurrency; a generic estimate cannot safely predict every deployment.
This is why “the model file fits” is not the same as “the server has enough usable memory.” If the host also runs a knowledge-base application and a vector database, those processes compete for RAM. A deployment may load successfully during a quiet test and then run short of memory when a real request includes a large prompt or when several services are active.
Keep the test conditions with the result. Record the model tag, quantization, context setting, concurrency, and memory observed during the test. A result from one setup does not establish a general Gemma 4 memory requirement.
For a reliable estimate, count memory by process. Start with the model’s weights, add cache and runtime use observed under representative prompts, then include the other services you plan to run. Leave room for the operating system rather than assigning all installed RAM to the model.
CPU capacity affects responsiveness, not just whether the model loads
Three different questions are often collapsed into one:
- Can it load? The complete weight set and runtime must fit in available memory.
- How long until the first token? Prompt processing and system load affect the wait.
- How quickly does it generate after that? CPU execution, memory bandwidth, quantization, and framework optimizations all matter.
A CPU-only setup can be appropriate for development, evaluation, background jobs, and modest workloads where latency is acceptable. It is not a substitute for a GPU when the requirement is model training or high-throughput inference. This article makes no tokens-per-second or concurrency promise: those depend on a specific machine and test.
The AMD EPYC 7543P used in TermAMD’s listed server configuration is a Zen 3 processor with 32 cores and 64 threads; AMD’s processor specifications list support through AVX2, not AVX-512. That instruction-set boundary can affect which optimized inference paths are available. It does not, by itself, predict a generation rate.
The processor platform has eight memory channels. At DDR4-3200, the theoretical bandwidth calculation is 8 × 25.6 GB/s, or about 204.8 GB/s. This is a theoretical figure derived from the channel rate, not a measured application result. Real performance depends on workload, memory configuration, software, and how the model uses the CPU.
Framework choice also changes the deployment. llama.cpp supports local inference across a range of hardware, while its build documentation describes configuration choices that affect the build. Ollama offers a simpler model workflow, but the model tag and runtime settings still need to be checked. Neither framework makes the active parameter count a substitute for the full weight budget.
Use a repeatable memory check before committing
The following process keeps the estimate tied to the actual deployment instead of an assumed model size.
- Choose a model tag and quantization. Check the Ollama Gemma 4 library page and note the exact tag and listed download size.
- Calculate a theoretical weight baseline. Use the total parameter count and quantization width. Keep this separate from the actual file size and from runtime RAM.
- List every co-hosted service. Include the AI application, vector database, reverse proxy, monitoring, and any virtual machines. Do not budget for the model in isolation if these services share the host.
- Pull and start the selected tag. Use the documented Ollama workflow for Gemma 4, then send a representative prompt. A first download consumes disk space, so check free storage before pulling the model. For API-based checks, refer to the Ollama API documentation.
- Observe memory under realistic use. Record process memory during model load, prompt processing, and generation. Repeat with the context length and request concurrency expected in production.
- Recalculate before adding services. If the combined workload leaves too little headroom, reduce co-located services, choose a larger memory configuration, or move inference to a separate host.
The test is evidence about that machine, tag, and settings only. It is not a TermAMD benchmark or a general speed guarantee.
FAQ: CPU-only memory planning
Can Gemma 4 26B-A4B run without a GPU?
Yes. A CPU can run the model if the complete quantized weight set, context cache, inference runtime, operating system, and other services fit in available memory. That confirms feasibility, not speed. CPU generation depends on the processor, memory bandwidth, quantization, context length, and inference framework, so test your actual workload before promising a response time.
How much memory should I plan for Gemma 4 26B-A4B on CPU?
Start with the full parameter count and the weight format, not the active-parameter count. A simple four-bit calculation gives a theoretical baseline, but metadata and implementation details change the model file size. Add context-cache and runtime use, then reserve memory for the operating system and any application or vector database running on the same host.
Does A4B mean Gemma 4 needs memory for only four billion parameters?
No. A4B describes the approximate number of parameters activated for a token in this mixture-of-experts model. The model still has a larger total parameter set, and inference needs access to its complete weights. Treating the active count as the weight-memory requirement understates the budget.
What changes when I use a longer context in Ollama?
A longer context increases the memory needed for the key-value cache. Concurrent requests can increase cache use further, while Ollama and the operating system also need memory. There is no single safe extra-memory figure for every setup: record the model tag, context setting, request concurrency, and observed process memory on the machine you plan to use.
Compare memory tiers by the work they must host
TermAMD lists 128GB and 256GB ECC memory configurations for its dedicated AMD server options. Check the current server configurations and pricing before procurement; do not infer a price from a memory estimate. The following comparison is workload-based, not a benchmark.
| Workload shape | What competes for memory | Starting decision |
|---|---|---|
| One quantized model, modest context, few co-hosted services | Weights, cache, runtime, operating system | Consider 128GB only after a representative test confirms comfortable headroom |
| One model with longer contexts or a knowledge-base stack | Weights, larger cache, application, vector database, runtime | Compare measured peak use with both memory tiers; 256GB gives more room for co-hosting |
| Several services or virtual machines alongside inference | Model and cache plus each VM and application’s assigned memory | Favor 256GB when the combined measured budget does not leave adequate room on 128GB |
| Training or high-throughput inference requirement | Workload exceeds the CPU-only use case | Choose a GPU-capable design elsewhere; TermAMD’s offer discussed here is CPU-based |
A larger memory tier does not make CPU inference inherently fast. It reduces pressure to evict services or constrain context and gives more room for parallel workloads. If the model is the only workload and measured memory stays well below the smaller tier, extra RAM may not solve the actual bottleneck.
Decision conditions for a CPU server
Use these branches to decide whether a CPU-only deployment is a fit:
- If the goal is model training or high-throughput serving, do not select a CPU-only server for that requirement. Plan for a GPU system.
- If a representative test shows the complete model and services fit with room for context growth, CPU inference is a valid option when latency is acceptable.
- If the model fits but the application and vector database push memory close to capacity, choose a larger RAM tier or split the services across hosts.
- If the workload is occasional and short-lived, a persistent dedicated server may be unnecessary. Start with a smaller test environment.
- If you need predictable, sustained access to the whole machine, compare dedicated hardware with shared cloud instances, where CPU contention, oversubscription, and opaque bandwidth or storage limits can complicate capacity planning.
For teams that also need a virtualization host, TermAMD’s AMD-V and NPT support and Proxmox VE installation option allow a virtualized layout; verify the current system and access details in the server access guide. Virtual machines do not create extra physical memory. Their allocations must still be included in the same budget.
| Approach | Best fit | Main trade-off |
|---|---|---|
| Shared virtual server | Lightweight tests and small services | Shared CPU resources and constrained memory can make model capacity less predictable |
| CPU-only dedicated server | Persistent inference with private applications and controllable co-hosting | RAM capacity does not remove CPU latency limits |
| GPU-oriented host | Training or demanding inference throughput | Different hardware and procurement requirements |
| Local workstation | Short experiments near the developer | Availability and memory are tied to one workstation |
Separate model capacity from server procurement
The two available memory tiers are not interchangeable through a later memory add-on: select the required capacity at purchase. The listed configuration also includes direct-attached NVMe storage; use the current product page to verify the exact option and available operating systems. Model weights, downloaded files, logs, and application data all consume disk, even though disk capacity does not replace RAM.
For a virtualized AI host, account for the memory assigned to each guest before deciding how much remains for inference. Proxmox VE and nested virtualization can support a flexible service layout, but they do not prevent CPU or RAM contention when several guests run at once. Give the inference service a planned allocation and monitor it alongside the host and other guests.
A CPU-only Gemma 4 deployment is a reasonable choice when the complete quantized weights fit, the context and services have been budgeted, and the measured latency matches the workload. It is a poor fit when the requirement is fast, high-volume inference or training. Shared VPS instances can add neighbor contention and resource limits; public cloud instances may also make bandwidth, storage, and long-running costs harder to forecast. For sustained use where the whole CPU server and its memory are needed, compare the workload against TermAMD’s current dedicated AMD configurations rather than assuming that a smaller shared instance will behave like a fixed-capacity host.
Frequently asked questions
Can Gemma 4 26B-A4B run without a GPU?
Yes. A CPU can run the model if the complete quantized weight set, context cache, inference runtime, operating system, and other services fit in available memory. That confirms feasibility, not speed. CPU generation depends on the processor, memory bandwidth, quantization, context length, and inference framework, so test your actual workload before promising a response time.
How much memory should I plan for Gemma 4 26B-A4B on CPU?
Start with the full parameter count and the weight format, not the active-parameter count. A simple four-bit calculation gives a theoretical baseline, but metadata and implementation details change the model file size. Add context-cache and runtime use, then reserve memory for the operating system and any application or vector database running on the same host.
Does A4B mean Gemma 4 needs memory for only four billion parameters?
No. A4B describes the approximate number of parameters activated for a token in this mixture-of-experts model. The model still has a larger total parameter set, and inference needs access to its complete weights. Treating the active count as the weight-memory requirement understates the budget.
What changes when I use a longer context in Ollama?
A longer context increases the memory needed for the key-value cache. Concurrent requests can increase cache use further, while Ollama and the operating system also need memory. There is no single safe extra-memory figure for every setup: record the model tag, context setting, request concurrency, and observed process memory on the machine you plan to use.