Quantized Deployment of 27B-Class Open-Source LLMs: A Practical Guide from Server to Local

    This guide examines why 27B-class open-source models are worth deploying, compares common quantization formats such as FP8, AWQ-INT4, NVFP4, GGUF, and MLX, and explains how to deploy them with vLLM on servers and on consumer GPUs, Macs, and CPU-only systems. It also covers format selection trade-offs, key vLLM parameters, and engineering practices for evaluation, KV cache monitoring, and quantization tiering.

    Quantized Deployment of 27B-Class Open-Source LLMs: A Practical Guide from Server to Local

    The open-source community has recently released a number of 27B-class mid-sized models. These models approach flagship-level capability while significantly lowering the VRAM barrier, making them a focus for individual developers and small and medium-sized businesses. However, native FP16 weights for a 27B model typically exceed 50GB, which places high demands on hardware for direct deployment. Fortunately, the open-source community responds quickly: multiple quantized versions often appear shortly after a model release, covering deployment scenarios from data centers to laptops. Against this background, this article provides a complete technical guide covering quantization principles, version selection, and deployment practice.

    1. Why 27B-Class Models Are Worth Deploying

    Around 27B is a particular sweet spot in model size selection:

    1. High capability density: Advances in distillation and training techniques in recent years mean some 27B models perform close to giant models with ten times their parameter count on reasoning, coding, and agent tasks. This is especially true when combined with long-context and tool-calling capabilities, making their cost-effectiveness outstanding.
    2. Consumer-grade deployment after quantization: FP16 27B weights are about 55GB and require multiple professional GPUs. After 4-bit quantization, however, they can be compressed to under 20GB, allowing a single high-end consumer GPU to host the model.
    3. Balanced context and concurrency: Compared with giant models that can require hundreds of GB, a 27B model still has sufficient VRAM headroom for KV cache in long-context scenarios such as 128K or more.

    2. Selecting a Mainstream Quantization Format

    Quantization essentially stores weights at lower numerical precision, trading a small amount of accuracy for VRAM and bandwidth benefits. Common formats compare as follows:

    Format Precision Size (27B reference) Use cases
    FP8 8-bit floating point About 27GB Server-side production deployment, minimal accuracy loss
    AWQ-INT4 4-bit integer About 16–20GB Consumer GPUs, balancing speed and accuracy
    NVFP4 4-bit floating point About 16GB Acceleration on newer architecture GPUs
    GGUF Multiple options 10–30GB CPU/hybrid inference, local Mac operation
    MLX Multiple options 10–30GB Local operation on Apple Silicon

    The selection principles can be summarized in three points:

    • Accuracy first: Production environments are sensitive to output quality, so FP8 is preferred. When FP8 uses fine-grained group quantization, such as a block size of 128, evaluation metrics are usually almost identical to the original version, making it effectively a zero-risk choice.
    • VRAM first: A single 24GB consumer card can only choose the INT4 tier; with two cards, users can move to higher precision or longer context.
    • Hardware architecture first: New-generation GPUs have native acceleration for 4-bit floating point, and NVFP4-style solutions have a clear throughput advantage on corresponding hardware. For older GPU architectures, AWQ-INT4 is the safer choice.

    3. Server-Side Deployment: vLLM

    For production scenarios that require concurrency and throughput, a mainstream inference framework is the first choice. The official FP8 version is a reliable starting point. An example launch command is as follows:

    1. vllm serve <model-path> \
    2. --port 8000 \
    3. --tensor-parallel-size 2 \
    4. --max-model-len 262144 \
    5. --reasoning-parser qwen3

    Several key parameters:

    1. —tensor-parallel-size: Multi-GPU tensor parallelism. Two professional GPUs at the A100/H100/L40S level are sufficient to launch the FP8 version.
    2. —max-model-len: Maximum context length. Note that long context significantly increases KV cache VRAM usage and must be balanced with --gpu-memory-utilization.
    3. Reasoning parser: After enabling reasoning mode, the corresponding parser must be configured to separate reasoning content from the final answer.

    If tool calling is required, add:

    1. --enable-auto-tool-choice --tool-call-parser qwen3_coder

    If the framework supports speculative decoding such as multi-token prediction (MTP), speculative sampling can also be enabled to further reduce first-token latency and improve generation speed:

    1. --speculative-config '{"method":"qwen3_next_mtp","num_speculative_tokens":2}'

    Speculative decoding works by letting a smaller step predict multiple candidate tokens, which are then verified in parallel by the main model. This can provide considerable speedup on greedy generation tasks.

    Suitable for: Teams with two or more data-center-class GPUs that need stability, high concurrency, and full functionality such as long context, tool calling, and structured output.

    4. Local Deployment: Consumer and Personal Options

    1. Single RTX 4090/3090 Users

    Choose a community AWQ-INT4 version. Weights are compressed to about 20GB, which can run on a single 24GB card. With a VRAM utilization of 0.9, it can handle medium-length contexts:

    1. vllm serve <int4-model-path> \
    2. --port 8000 \
    3. --max-model-len 65536 \
    4. --gpu-memory-utilization 0.9 \
    5. --reasoning-parser qwen3 \
    6. --trust-remote-code

    Notes:

    • The KV cache of a 4-bit quantized model is still stored at high precision. When context is maxed out, OOM may occur, so it is advisable to validate with a smaller length first.
    • Dual RTX 4090 cards can extend context to longer tiers or switch to higher-precision quantization to reduce quality loss.

    2. Mac and CPU-Only Users

    GGUF and MLX formats are standard choices for Mac users. GGUF supports layer offloading (hybrid GPU+CPU inference), allowing users to flexibly choose Q4/Q5/Q8 tiers based on unified memory size. MLX is optimized for Apple Silicon and achieves higher memory bandwidth utilization. A rule of thumb is to reserve 8–10GB for the system and context, with the remaining memory determining the available quantization tier.

    5. Engineering Best Practices

    1. Evaluate before launch: Run a set of business-relevant evaluation sets on the quantized version, covering coding, math, and instruction following, to confirm that accuracy loss is acceptable. Do not blindly trust “lossless” claims.
    2. Monitor KV cache and throughput: In long-context scenarios, KV cache is the main VRAM consumer. Enable prefix caching to improve reuse in multi-turn dialogue and agent scenarios.
    3. Use a quantization tier ladder: For tasks that are extremely sensitive to accuracy, such as complex reasoning chains, keep FP8 as a fallback and use INT4 for daily use and drafts.
    4. Pay attention to community version quality: Community quantized versions vary in quality. Prefer projects with clear quantization method descriptions, calibration set descriptions, and evaluation data, and verify compatibility with the inference framework version.

    Conclusion

    The quantization ecosystem for 27B-class open-source models is maturing much faster than before: official FP8 ensures production stability, community INT4 opens the consumer market, and GGUF/MLX cover lightweight local scenarios. The core work for developers is to balance the triangle of hardware, precision, and context, obtaining capability as close as possible to the original model at the lowest VRAM cost. As fine-grained quantization and speculative decoding become more widespread, the cost-effectiveness advantage of mid-sized models will be further amplified, making continued practical investment worthwhile.