Systems

    01

    Available models

    Start with the model files you can fit, then test whether the model can do the job. These size bands describe files at a chosen precision—not total runtime memory or a quality ranking.

    Small

    Under 5 GB

    Endpoints & everyday devices

    Keep these for a strict under-5-GB download budget and bounded endpoint tasks. The newer Qwen3.8 / 3.6 packages shown here need 18–23 GB, so they sit in Medium.

    Large

    40 GB and above

    Large memory → GPU clusters

    Some fit one large-memory accelerator or Mac. At Kimi scale, plan for distributed serving. Crossing 40 GB does not by itself require multiple machines.

    Examples checked · Qwen sizes are rounded Ollama llama.cpp package downloads at the listed quantization; backend variants differ. Kimi is shown by parameter count. Pin the exact artifact and check its license.

    Artificial Analysis Intelligence Index v5.0.1 · Checked

    Scores apply to AA’s evaluated settings, not the local Q4 downloads. N/A means no current index score is published. Older index versions are not comparable; test Korean quality and local TPS yourself. AA calls 4–40B-parameter models “small”; our tiers use file size in GB.

    Kimi K3 has 2.8T total and 104B active parameters. The current vLLM recipe starts at 8× GB300 or 8× MI355X/MI350X and recommends multiple nodes for production traffic.

    Match a model to your RTX, Mac or cloud GPU →
    02

    Choose what goes in—and what comes out

    Chat, visual understanding, image generation and video generation need different model capabilities. A single chat interface can hide several separate pipelines.

    Language model

    Chat & code

    1. Text / code
    2. LLM
    3. Text / tool call

    Use an instruction-tuned LLM for conversation; test a coding checkpoint for edits and tool calls. A model proposes a command—the harness runs it with the permissions you give it.

    Qwen3-Coder is text-only; a tool can supply text extracted from an image.

    Vision-language model · VLM

    Understand images

    1. Image
    2. Vision encoder + adapter
    3. LLM → text

    For screenshots, diagrams or visual questions, choose a model trained to accept image features. Its vision components and language model must be compatible; adding an arbitrary encoder to a text-only LLM is not enough.

    Qwen3.8 includes vision. If you only need printed text, OCR → a text LLM may be sufficient.

    Image generation pipeline

    Generate images

    1. Prompt / reference
    2. Denoising steps
    3. Image

    Use an image model such as FLUX.2 [klein] 4B for generation and editing. Its text encoder, image model and decoder have their own memory needs. Vision input on a chat model does not imply image output.

    Measure seconds per image at a fixed resolution, step count and quality target.

    Video generation pipeline

    Generate video

    1. Text / image
    2. Temporal generation
    3. Video frames

    Use a video model such as Wan2.2 TI2V-5B. More frames and higher resolution change the workload. Its documented 24 GB CUDA recipe uses model offload and a CPU text encoder; it is a hybrid setup.

    Measure seconds per clip with output duration, resolution, frame rate and steps held fixed.

    03

    Fit the weights. Leave room to work.

    A parameter is a learned number. “B” counts billions of parameters; GB counts bytes. Quantization stores those numbers with fewer bits, usually trading some accuracy for a smaller footprint.

    The same 30B parameters, fewer bits

    15 GB

    30B × 4 bits ÷ 8 = 15 GB

    Raw weights only, in decimal GB. Real formats add scales, metadata and mixed-precision tensors; runtime memory is extra.

    Runtime memory ≈ loaded weights + request state + working buffers

    The KV cache keeps attention keys and values from earlier tokens. Longer conversations and more simultaneous requests generally need more state; hybrid architectures may also keep recurrent state. Vision encoders, activations and the runtime need room too.

    An 18 GB download is not a promise that a 24 GB GPU can serve a long context or several users. Keep system memory for the OS and applications, especially on a shared-memory Mac.

    Q4_K_M, FP8 and MXFP4 are different formats. The model, runtime and hardware must support the chosen one. Benchmark both task quality and speed; fewer bits do not guarantee faster kernels.

    What quality do you give up?

    Qwen3.6 27B · dense · AIME-120 math accuracy. Each row uses the same model and test. These are task scores, not Artificial Analysis Index points or measurements of Qwen3.8 / 35B-A3B.

    Select a format to inspect uncertainty and file savings. Δ is calculated from unrounded solved counts.
    FormatFileCorrectAccuracyΔ vs BF16
    54.7 GB85/12070.8%—
    29.0 GB81/12067.5%−3.3 pp
    22.9 GB77/12064.2%−6.7 pp
    19.8 GB78/12065.0%−5.8 pp
    17.9 GB85/12070.8%0.0 pp
    17.1 GB79/12065.8%−5.0 pp
    13.8 GB88/12073.3%+2.5 pp
    12.6 GB65/12054.2%−16.7 pp
    9.6 GB39/12032.5%−38.3 pp

    Q4_K_M · smaller file vs BF16

    68.7%

    Reported 95% rerun interval: 61–70%

    The author does not find a statistically significant difference vs BF16. This does not prove equivalence or an improvement. (p = 0.21)

    Temperature 0.6 · top-p 0.95 · 32k output limit · H100/L40S hardware. Intervals concern rerunning these 120 questions, not all tasks. Δ uses unrounded counts; pp = percentage points. File sizes exclude runtime state. This noisy sample is not a speed study.

    A larger model can win at lower precision

    Historical Qwen2-Instruct example, greedy decoding. The score is the publisher’s average of MMLU, C-Eval and IFEval. It illustrates the tradeoff; it is not a current model recommendation.

    Model / formatRaw GB*Average
    Qwen2-7BBF1614.066.9
    Qwen2-7BGPTQ-Int43.564.1
    Qwen2-1.5BBF163.048.4

    7B at 4-bit loses 2.8 points against its own BF16 baseline, yet scores 15.7 points above 1.5B at BF16.

    *Nominal parameters × bits ÷ 8. About 3.5 vs 3.0 GB is a similar, not identical, raw-weight budget. Real artifacts include other precisions and metadata; reserve cache and working memory before deciding fit.

    And 1-bit?

    Qwen3-8B · five-shot MMLU. Even at 4 bits, the method changes the result. This is a separate study, not another point on the AIME table.

    MethodBitsMMLUΔ vs FP16
    FP161674.7%—
    GPTQ473.4%−1.3 pp
    AWQ469.3%−5.4 pp
    BiLLM1.0532.8%−41.9 pp

    Group 128 · 16-bit activations · calibration: 128 × 2,048-token C4 sequences. BiLLM’s 1.05 bits is an effective mixed/residual weight representation. These drops cannot be assigned to Qwen3.6 or Qwen3.8.

    Native low-bit training is different. Microsoft’s BitNet b1.58 learns ternary weights (−1, 0, +1) from the start. It is not a Qwen model squeezed to 1 bit; efficiency requires a compatible optimized runtime.

    Find the sweet spot for your workload

    Start by testing a good Q4 artifact. Compare Q5/Q6 if errors matter and memory allows. Try Q3 when it lets a more capable model fit, but check the exact format. Treat 1–2-bit as a specialized choice requiring its own evidence, not the default endpoint.

    Keep the best score that fits your actual context and concurrency budget. Test your Korean prompts, coding and tool calls with fixed settings, then measure TTFT and decode TPS. This is our selection procedure—not a universal Q4 guarantee. No matched Qwen3.8 quantization AA score is established here.

    Evidence checked · Published measurements; no new model benchmark was run.

    04

    Dense or sparse: how much works per token?

    Two models with similar file sizes can do very different amounts of work per token. Architecture changes the relationship between memory and speed.

    Dense: each token uses the same feed-forward network. Qwen3.6 27B is dense; its quantization results above are not results for the 35B MoE model.

    MoE: a router chooses feed-forward experts separately for each token at each MoE layer. Other shared computation still runs. The selected experts are not whole layers being skipped.

    Other conditional architectures do exist: Mixture-of-Depths routes which tokens receive a layer’s computation. That is a different design from the feed-forward expert routing compared here, and from putting layers on separate GPUs. Mixture-of-Depths paper ↗

    Qwen3.6-35B-A3B

    Total parameters
    35B
    Active per token
    3B

    Active / total ≈ 8.6% · rounded publisher counts

    8 / 256 routed experts per token, per MoE layer

    3.13% of the routed pool selected + 1 shared

    Main layers
    40 · 40 MoE
    Attention mix
    30 Gated DeltaNet + 10 Gated Attention

    Each of the 40 blocks combines attention with MoE. The repeating pattern is three DeltaNet blocks, then one gated-attention block.

    Hidden width 2,048; expert intermediate width 512.

    Kimi K3

    Total parameters
    2.8T
    Active per token
    104B

    Active / total ≈ 3.7% · rounded publisher counts

    16 / 896 routed experts per token, per MoE layer

    1.79% of the routed pool selected + 2 shared

    Main layers
    93 · 92 MoE + 1 dense
    Attention mix
    69 KDA + 24 Gated MLA

    Stable LatentMoE uses a narrower latent representation for expert computation. The 93-layer stack has one dense layer, leaving 92 MoE layers.

    Attention width 7,168; latent MoE width 3,584; expert intermediate width 3,072.

    Expert fraction ≠ parameter fraction ≠ speedup

    Qwen selects 3.13% of its routed experts per layer, while about 8.6% of total parameters are active. Attention, shared experts and other weights explain the difference. Every expert still needs storage. With many tokens in a batch, different routes can collectively use much of the pool.

    Kimi K3’s MXFP4 weights and MXFP8 activations come from quantization-aware training. This is separate from expert sparsity and from a post-training Q4 GGUF conversion. None of these counts establishes local TPS.

    Routing chooses experts. Parallelism places the work.

    “Layer-wise” and “tensor-wise” often describe splitting a model across devices. Both dense and MoE models can use those splits; expert parallelism specifically distributes experts. These methods can be combined.

    Different experts on different devices

    8 devices: 256 ÷ 8 = 32 routed Qwen experts per device, per layer; Kimi: 896 ÷ 8 = 112.

    Tokens travel to their selected experts and results return. Routing balance and all-to-all communication matter.

    Illustrative partitions, not deployment recipes or GPU-count requirements. Shared experts, attention, embeddings, memory balance and runtime support also constrain placement. EP does not mean only eight or sixteen devices ever work.

    05

    Read the prompt. Then generate tokens.

    TPS means tokens per second. A token is a piece of text, not necessarily a word. Input processing and output generation are different phases with different speed limits.

    Prefill · process the input

    Process the prompt tokens in parallel or in chunks and build the state needed for generation. Long uncached inputs often demand substantial compute. Image processing adds work before the answer can begin.

    Decode · produce the output

    An autoregressive LLM uses the previous tokens to predict the next one, then repeats. At low batch sizes, moving weights and cached state through memory often limits speed. Batching or speculative decoding changes this balance.

    A fast prefill can still lead to slow output. A fast output stream can still start after a long wait in the queue.

    Anatomy of a requestSchematic

    Read the input

    The model processes the prompt and builds reusable state. Long inputs, images and a cold cache change the wait for the first token.

    Measure time to first token

    Read a speed result correctly

    First response · TTFT
    Time from the request to the first token. Client-side TTFT includes network, queueing and input processing as well as prefill; state where you measured it.
    Input rate · prefill TPS
    New input tokens processed ÷ prefill seconds. Report input length and cache hits; a reused prefix is less work than a cold prompt.
    One output stream · decode TPS
    (Output tokens − 1) ÷ seconds from first to last token. This is the inverse of average time per output token (TPOT). Streaming chunks can contain several tokens.
    Server capacity · aggregate TPS
    All generated tokens ÷ the same wall-clock interval, across requests. Always pair it with concurrent load, per-user latency and the fraction of requests meeting your target.

    One user or many?

    For a personal assistant, optimize the wait and the pace of that one response. For a shared service, continuous batching lets the runtime work on several requests together and admit new ones as others finish.

    More users can improve GPU utilization, but also grow the cache and queue. Measure p50 and p95 latency at the intended load, plus goodput: requests completed within your quality and latency targets.

    Keep the model revision, quantization, hardware, runtime, context, output length and cache state fixed. Korean text, code and different tokenizers are not interchangeable workloads. Count reasoning tokens separately from the final visible answer.

    One stream, or the whole server?Illustrative counts in a 10-second output window. Not a benchmark or a scaling prediction; queueing and prefill are measured separately.
    Per user
    40TPS
    Server total
    40TPS

    1 × 400 tokens ÷ 10 seconds = 40 TPS

    With one active stream, per-user and server throughput coincide. This tells you nothing yet about performance under concurrent load.

    06

    From one device to a cluster

    “Local” describes control of the runtime, not just a machine on your desk. Choose the operating model along with the hardware.

    GPU resident or CPU/GPU hybrid?

    When weights and request state fit, keeping them on the GPU avoids offload transfers. CPU/GPU hybrids make larger models possible, but CPU memory bandwidth, compute and transfers can limit TPS. Compare against a smaller model that fits entirely.

    Capacity is not bandwidth

    Choose RTX 30/40/50-series cards by the exact VRAM and runtime support, not generation alone. On an Apple-silicon MacBook, mini or Studio, CPU and GPU share unified memory; their allocations are not separate capacities to add together.

    A personal lab

    Laptop / Mac mini

    Start with one user, a short context and a model that fits. Unified memory makes larger allocations possible, but capacity alone says little about generation speed.

    Measure sustained speed, memory pressure and swap—not just a short burst.

    A dedicated workstation

    RTX desktop / Mac Studio

    Choose by usable memory, runtime support and the actual workload. GPU-only inference avoids CPU offload traffic; a hybrid can fit a larger model at a latency cost.

    Compare a smaller resident model with a larger offloaded model on the same task.

    A service your team owns

    On-premises server

    Design for concurrent requests, isolation and recovery. Multiple GPUs need a parallelism strategy; their memory does not become one transparent pool.

    Include power, cooling, spare capacity, patching and operator time in the cost.

    Capacity without owning the server

    On-demand GPU cloud

    A GPU neocloud rents infrastructure; you still own the serving stack. Check GPU SKU, interconnect, region, storage and interruption policy before comparing hourly rates.

    Measure cold starts and idle time. Set a budget and verify that compute and retained storage stop billing when intended.

    Split the model, or copy it?

    One model, several GPUs

    Tensor parallelism splits layers’ calculations; pipeline parallelism places successive layers on different devices. MoE expert parallelism distributes experts. These help fit one model, with communication overhead.

    Several machines, one deployment

    A node is a server, often with several GPUs. Cross-node inference needs supported networking and orchestration; fast links such as InfiniBand/RDMA matter. Adding VRAM over a slow link can make generation slower.

    More users, more replicas

    If the model already fits, replicate the model or GPU group and route independent requests across replicas. This grows service capacity; it does not automatically accelerate a single response.

    Multi-GPU can stay inside one machine. Multi-node adds network and failure-handling requirements; neither guarantees a linear speedup.

    Choose exact hardware and model sizes →
    07

    Optimize the bottleneck

    Pick a hypothesis, run the same workload, and keep the quality check. More tokens per second are useful only if the result still works.

    Weights & memory

    Try a smaller model or lower-bit quantization before spilling onto the CPU.

    Quantization can alter accuracy. Leave room for KV cache and runtime buffers.

    MeasureTask success · peak memory · tokens/s

    Repeated input

    Reuse exact prompt prefixes with prefix caching.

    It saves prefill work, not output generation. Cache misses and tenant boundaries still matter.

    MeasureWarm / cold TTFT · cache hit rate

    Mixed request lengths

    Tune chunked prefill and continuous batching for the traffic mix.

    More aggregate throughput can mean a slower individual response. Cap input length and concurrent work.

    Measurep95 TTFT · inter-token latency · goodput

    Serial generation

    Benchmark speculative decoding with a supported draft method.

    The target model verifies proposed tokens. Low acceptance or draft overhead can erase the gain.

    MeasureAccepted tokens · end-to-end latency

    More than one GPU

    Shard a model to fit it; add replicas to serve independent requests.

    Tensor parallelism adds synchronization. The interconnect and model shape determine whether it pays off.

    MeasureThroughput under the same latency limit

    08

    Operate the service

    AIOps here means operating AI workloads: capacity, observability, security and change management. The deployment is part of the system.

    Continue to AIOps: serving, observation and releases →

    Technical references reviewed · Configuration and hardware support vary by runtime release.