Run Qwen 3.8 27B Locally: GGUF Downloads and Memory Requirements

Plan Qwen3.8-27B on a 16 GB GPU or RTX 5080: compare GGUF sizes, short-context setup, CPU offload and errors without confusing file size with VRAM.

Flat isometric illustration of a desktop workstation beside a stepped stack of memory blocks, with a bright orange line marking a hard ceiling partway up the stack and the blocks above it greyed out.

Qwen3.8-27B is an open-weight model published by Qwen under Apache 2.0. The original weights and community GGUF conversions are separate downloads. Start with the publisher and exact filename, then budget runtime memory; a download size is not a VRAM requirement.

Can Qwen3.8-27B run on 16 GB or an RTX 5080?

A 16 GB card is a constrained starting point, not a blanket yes or no. NVIDIA lists the RTX 5080 with 16 GB GDDR7. Evaluate a smaller quantization, a short context and partial CPU placement if needed; do not promise a full-GPU Q4 run from the filename. These are planning choices, not configurations we benchmarked.

Your starting pointFirst configuration to evaluateWhat still needs checking
16 GB GPU / RTX 5080, text onlyUD-Q3_K_XL; 4,096 context; one slot; automatic GPU placement in a supported buildFree VRAM, actual offloaded layers, host RAM and peak allocations
16 GB GPU, considering UD-Q4_K_MInspect the 16.46 GB file as about 15.33 GiB, then budget overhead or partial CPU placementThe remaining headroom is small; file size alone proves neither fit nor failure
24–32 GB GPUEvaluate a 4-bit file at 4,096 context before increasing contextCache, batch/work buffers, other GPU processes and concurrency
16 GB unified-memory MacReserve memory for macOS and apps; evaluate a smaller file and short contextThe OS and model share the pool; this is not 16 GB of dedicated VRAM
Image input on any setupAdd the matching projector only after text worksProjector and image-processing memory add to the text workload

The model card specifies 262,144 native context tokens, but this is not a promise that your machine can run that length. Start with 4K as a diagnostic choice, not a model limit. Increase context only after a representative request succeeds and you have measured memory headroom.

GGUF downloads and memory: check the current files first

Use the official Qwen model card for architecture, license and supported runtime guidance. The table below is a September 16, 2026 snapshot of Unsloth’s GGUF file listing. These are community conversions, not files published by Qwen. Sizes use decimal GB (1 GB = 1,000,000,000 bytes); GiB uses 1,073,741,824 bytes. The inspected conversion revision is 4ca720788d1e01f1bff70c033e0d0028fd02e502.

FileDownload GBDownload GiB
Qwen3.8-27B-UD-IQ2_XXS.gguf7.276.77
Qwen3.8-27B-UD-Q3_K_XL.gguf13.1512.24
Qwen3.8-27B-UD-Q4_K_M.gguf16.4615.33
Qwen3.8-27B-UD-Q4_K_XL.gguf17.5616.35
Qwen3.8-27B-UD-Q6_K.gguf21.9820.47
mmproj-F16.gguf0.930.86

Starting point for memory planning

Weight files need additional memory for KV cache, compute buffers, the runtime and the operating system. Dedicated VRAM, system RAM and Apple unified memory are different budgets; adding RAM and VRAM does not turn them into one GPU allocation. CPU offload needs sufficient host RAM and changes performance. Swap is not evidence that a configuration has enough physical memory.

For each trial, budget resident GPU weights + cache/state + compute buffers + projector/image work, if used + other GPU allocations. File bytes are only a starting estimate of the weight component. Inspect startup logs for actual placement and allocations rather than subtracting the download size from the card label.

24–32 GB GPU: start by evaluating a 4-bit file and a short context. A 16 GB GPU may need a smaller quant or CPU offload. On a 16 GB unified-memory Mac, reserve memory for macOS and other apps; neither the filename nor the total RAM guarantees a successful run. Lower-bit quantization can reduce quality, so test representative tasks before choosing it.

Download and run with llama.cpp

Use a recent llama.cpp release that supports the model. After installing it, check llama-server --version and its local --help; do not infer compatibility from an old build date alone. The following example selects the 13.15 GB UD-Q3_K_XL file and begins with a 4K context. This is a setup example, not a new hardware benchmark. The server reference documents context, parallel slots and GPU-layer controls; the build guide covers GPU backends. For an RTX card, use a compatible CUDA build and driver, then check the detected device before attributing an error to quantization.

llama-server --version
llama-server --list-devices

curl --fail --location -o qwen38-27b.gguf \
  "https://huggingface.co/unsloth/Qwen3.8-27B-GGUF/resolve/4ca720788d1e01f1bff70c033e0d0028fd02e502/Qwen3.8-27B-UD-Q3_K_XL.gguf"
llama-server -m qwen38-27b.gguf -c 4096 --parallel 1 --n-gpu-layers auto --port 8080

auto lets the supported runtime choose GPU placement; it is not a claim that every layer stays on the GPU. If your build rejects the option, check its version and help instead of silently assuming the requested configuration took effect. Record the actual offload and context reported at startup.

Vision needs a matching projector

For image input, use the projector from the same conversion repository and add --mmproj mmproj.gguf to the server command. The current Unsloth F16 projector is about 0.93 GB in addition to the main weights. Loading the language weights alone does not establish that the vision path works.

curl --fail --location -o mmproj.gguf \
  "https://huggingface.co/unsloth/Qwen3.8-27B-GGUF/resolve/4ca720788d1e01f1bff70c033e0d0028fd02e502/mmproj-F16.gguf"
llama-server -m qwen38-27b.gguf --mmproj mmproj.gguf -c 4096 --parallel 1 --n-gpu-layers auto --port 8080

Measure your own workload

Record the publisher revision, exact filename, llama.cpp build, hardware, GPU offload and context size. Measure prompt processing separately from generation and include a realistic prompt length. A short synthetic benchmark does not predict a long agent session.

Earlier versions of this article quoted August 16 file sizes and M2 Pro timings. The current repository has changed, including UD-IQ2_XXS at 7.27 GB rather than 9.01 GB. Those older timings cannot be applied to the current files without re-testing; this update does not claim a fresh inference benchmark.

If it fails

Keep the first complete error and the startup allocation log. Change one variable at a time so that a successful retry tells you something.

SymptomCheck firstNext diagnostic change
Unknown architecture, tensor or unsupported optionRuntime version, selected GGUF and supported flagsInstall a compatible build; do not rename tensors or files as a fix
GPU not listed, CUDA initialization or kernel errorDevice detection, driver and CUDA build compatibilityFollow the runtime build guide; lowering context alone does not fix a missing backend
Allocation failure during model loadingFree VRAM/RAM, selected quant, actual offloadTry a smaller quant or fewer GPU layers with enough host RAM
Starts, then fails on a longer prompt or imagesContext, concurrency, input length and projectorRetest text only with one slot and short context; add workload gradually
Much slower than expectedCPU/GPU placement, swapping, prompt-processing versus decode timeCheck placement logs before comparing GPU specifications
Truncated or empty final answerFinish reason, output/reasoning budget, chat templateSeparate output-limit behavior from loading and memory errors

A low-level decode error alone does not identify one specific memory cause. Save the exact file/revision, build, command, available memory and shortest failing input when reporting an issue. No new inference or RTX 5080 throughput measurement was performed for this update.

Frequently asked questions

Does the 16.46 GB Q4 file automatically exceed a 16 GB GPU?

Do not compare labels without units. The file is about 15.33 GiB, but loading also needs cache and working memory, and the display may already occupy VRAM. A file-only comparison establishes neither a successful full-GPU run nor a universal failure.

Should I lower context or choose a smaller quant first?

If weights fail to load, inspect the quantization and placement first. If loading succeeds but a longer request fails, isolate context and concurrency. Both can affect memory; the error stage helps select the next test.

Is 4,096 the model’s maximum context?

No. It is the conservative diagnostic context used in these examples. A larger model-card limit does not establish that your hardware can allocate it.

Local or hosted?

Local inference is useful for offline work and data control. Hosted service may suit occasional use or larger workloads, but verify current model IDs, context and rates in the provider catalog. The open 27B weights are not the same product as Qwen3.8-Max. See the Qwen family overview for that distinction.

If you are evaluating a different sparse model, the K2 Horizon deployment guide explains its current runtime and weight-file constraints; it is not a benchmark against this Qwen model.