vLLM with bitsandbytes 4-bit and 8-bit models

vLLM can load bitsandbytes 4-bit and 8-bit checkpoints on NVIDIA hardware, which suits experiments and memory-constrained trials more than high-throughput production. This page explains the trade-offs and the production alternatives to plan for.

On this page

When vLLM with bitsandbytes 4-bit and 8-bit models fits your plan

bitsandbytes is a reasonable option for a team that needs to fit a larger model onto GPUs it already owns, or that wants to test a quantized model quickly, but it is not a default choice for high-throughput production serving. Before committing, decide which of those two goals you have, because the answer changes which quantization path you should validate. If the goal is a short evaluation on NVIDIA hardware, vLLM bitsandbytes support can get you there with little preparation. If the goal is a serving tier that must hold latency and throughput targets for many users, plan to compare other formats early.

In general terms, bitsandbytes is a Python library that loads model weights at reduced precision, commonly 8-bit or 4-bit, so the model occupies less GPU memory than its full-precision checkpoint. The format is attractive because a team can often quantize a standard checkpoint at load time rather than producing a separate pre-quantized artifact. What vLLM documents for this path should be confirmed against the current vLLM installation docs and the supported-model list for your target release, since the hardware range and kernel behavior are version-dependent. Treat the support statement as a starting point for your own test, not a guarantee for your model family.

The platform itself is open source under Apache-2.0, so there is no license fee for running vLLM with bitsandbytes. The costs that matter are the NVIDIA GPU capacity you run, the surrounding infrastructure, and the engineers who test, operate and upgrade the stack. Ask your team to measure accuracy on your own evaluation set, record memory use and tokens per second at realistic concurrency, and confirm which vLLM release you will pin. Those measurements decide whether bitsandbytes stays an experiment or moves toward production.

Which quantization path fits which situation

If you already have an NVIDIA GPU and want to see how a model behaves on vLLM, bitsandbytes is the lowest-effort route. It quantizes weights when the model loads, so you usually do not need to produce a separate checkpoint first. The trade-off is that the trial tells you about output quality and basic behavior, not about the capacity or latency a production service will need.

  • Setup effort: Load the model with bitsandbytes quantization and confirm the server starts. Check the load options for your vLLM version in the vLLM online serving docs.
  • Hardware fit: Confirm your GPU and driver stack fall within the NVIDIA range bitsandbytes supports before you plan around the trial.
  • Capacity expectations: Treat throughput numbers from a single experimental run as informational only.
  • Separation: Keep the trial configuration in its own environment so it does not drift into production settings.

Before the trial starts, check your GPU, driver and CUDA versions against the vLLM installation requirements for the release you plan to use.

How bitsandbytes loading differs from pre-quantized checkpoints

bitsandbytes quantizes weights when the model loads, not in advance. Teams that serve a pre-quantized checkpoint, such as one produced by a dedicated quantization tool, download a fixed set of quantized weight files and load them as they are. With bitsandbytes, the team points vLLM at the original full-precision model and asks the loader to convert the weights to 4-bit or 8-bit as they are read into accelerator memory. No separate quantized artifact is published, stored or versioned, so the converted weights exist only for the life of that process.

That difference has three practical consequences. First, startup time is longer than with a pre-quantized checkpoint, because every replica reads the full-precision weights and performs the conversion before it accepts traffic. Plan rollout and restart windows with that cost in mind, and measure it on your own hardware rather than assuming it. Second, repeatability depends on the environment. The same command can produce different results if the bitsandbytes version, the CUDA libraries or the vLLM release changes, so pin each of these in your deployment image and record them with every change request.

Third, your team takes on a dependency on a specific quantization library version. Confirm which bitsandbytes versions your chosen vLLM release supports, track that compatibility on each vLLM upgrade, and check the vLLM quantization documentation for the exact flags, the supported model families and any load-format limits before rollout. A pre-quantized checkpoint can be validated once and promoted between environments as a file. A load-time quantized model has to be validated as a combination of model, library, engine and flags.

Hardware range and what to confirm before buying or reusing GPUs

This table compares the accelerator families vLLM documents and shows where bitsandbytes fits within them. Read each row as a question to answer before you buy or reuse hardware. The main takeaway is that bitsandbytes on vLLM depends on NVIDIA CUDA hardware, so the CUDA, driver and vLLM versions must be confirmed together.

Accelerator familybitsandbytes on vLLMWhat to confirm before buying or reusing
NVIDIA CUDA GPUsSupported path, limited to NVIDIA CUDA in this topic's contextConfirm the GPU generation, CUDA toolkit and driver versions against the vLLM installation docs and the bitsandbytes project's requirements for your chosen release
AMD ROCm GPUsNot a supported path for bitsandbytes on vLLM in this topic's contextChoose a different 4-bit or 8-bit format for AMD hardware, and confirm its ROCm support in the vLLM installation docs
Intel XPU GPUsNot a supported path for bitsandbytes on vLLM in this topic's contextConfirm the quantization format you plan to use on XPU with the vLLM installation docs before purchase
x86 and ARM CPUsNot a supported path for bitsandbytes on vLLM in this topic's contextTreat CPU serving as a separate design with its own format choice, and confirm it against the vLLM installation docs
Apple silicon and IBM Z CPUsNot a supported path for bitsandbytes on vLLM in this topic's contextDo not reuse these machines for a bitsandbytes test plan without confirming support in the vLLM installation docs
Third-party hardware pluginsUnverified for bitsandbytesAsk the plugin vendor and the bitsandbytes project whether any path exists, and confirm the vLLM release it targets
Your current fleetDepends on GPU generation and driver stackRecord GPU model, CUDA and driver versions, and the vLLM release you will run, then check them together before ordering or reusing hardware

How to set up a bitsandbytes test on vLLM

This sequence takes a team from hardware checks to a documented baseline, so the bitsandbytes test on vLLM produces evidence on memory use and output quality that can be compared against an unquantized or other quantized run.

  1. Confirm the NVIDIA hardware and driver stack

    The platform engineer confirms that the test host has an NVIDIA GPU with a CUDA-capable driver and a container runtime if you plan to use one. Record the GPU model, GPU memory, driver version and CUDA version in the test log, and confirm them against the vLLM installation documentation for the release you intend to use. Bitsandbytes support is limited to NVIDIA hardware, so an AMD or Intel host stops the test here. The step is complete when nvidia-smi reports the expected GPU and the driver and CUDA versions are written down alongside the target vLLM release.

  2. Install vLLM and bitsandbytes at matching versions

    The engineer installs vLLM in an isolated Python environment, then installs the bitsandbytes package at the version that the vLLM documentation and your CUDA stack support. Pin both versions in a requirements file rather than installing the latest packages on each run. Do not assume that a newer vLLM release will work with an older or newer bitsandbytes build, so check the release notes for the vLLM version you chose. The step is complete when both packages import cleanly in the same environment and the pinned versions are recorded in the test log.

  3. Load the model with the documented quantization flag

    The engineer starts vllm serve with the quantization option that the vLLM documentation describes for bitsandbytes, pointing at a model whose license permits your test. Use a small model first so that load problems are separated from capacity problems. Record the exact command, model identifier, precision, tensor parallel size and any memory utilization setting. The step is complete when the server logs show the model loaded on the GPU without an out-of-memory error and the startup log confirms the bitsandbytes quantization method is active.

  4. Check the OpenAI-compatible endpoints

    With the server running, the engineer sends test requests to /v1/completions and /v1/chat/completions, and checks /v1/models for the served model name. Use curl or a small client script built against the OpenAI API, and set the base URL to the vLLM server. Confirm that responses return valid JSON, finish reasons are present and token counts are reported. The step is complete when both endpoints return well-formed responses for a fixed set of prompts and the results are saved for later comparison.

  5. Confirm the chat template exists

    The engineer checks that the model provides a chat template that vLLM can use for the chat completions API. If the tokenizer does not include one, the engineer supplies a template with the chat template option and records which file was used. Send a multi-turn conversation through /v1/chat/completions and confirm that the roles and turn boundaries render as the model expects. The step is complete when the chat endpoint returns sensible replies to the multi-turn test and the template source is written into the test record.

  6. Record memory use against a baseline

    The engineer measures GPU memory after load and under a fixed concurrency test, and compares the figures with a baseline run of the same model at its unquantized or other reference precision where the hardware allows it. Use the Prometheus metrics at /metrics for request counts, token throughput and KV cache use, and record the GPU memory from nvidia-smi during the run. Confirm the figures are reproducible across at least two runs. The step is complete when a table with weight memory, KV cache use and throughput for both runs is saved in the test record.

  7. Compare output quality against the baseline

    The engineer runs the same evaluation prompts against the quantized and baseline servers, scores the answers with a fixed rubric or an evaluation tool agreed with the workload owner, and notes every regression in tone, factual accuracy or format. Because bitsandbytes is generally suited to experiments rather than high-throughput production, the results should be read as a decision input, not a production sign-off. The step is complete when the quality comparison, the memory figures and the throughput figures are signed off together and the next decision, whether to continue testing or to move to a production-grade format, is recorded.

Why bitsandbytes suits experiments more than high-throughput serving

Treat bitsandbytes as a good fit for experiments and a question mark for high-throughput serving until your own measurements say otherwise. The supplied vLLM material does not give throughput or latency figures for bitsandbytes against other quantization paths, so the team should not assume either way. A bitsandbytes checkpoint is often the quickest way to load a model on a single NVIDIA GPU and see whether it answers the workload at all, which is the right use for it. The decision to put it behind production traffic needs evidence from the team's own hardware, prompts, output lengths and concurrency, not from a general claim about 4-bit or 8-bit weights.

Run the same workload through each candidate on the GPUs you own: bitsandbytes in 4-bit and 8-bit, FP8 where the hardware supports it, AWQ, GPTQ and INT8 where a checkpoint exists. Hold the model, the prompt set, the max_model_len setting and the request concurrency constant, then record the results side by side. The vLLM server exposes Prometheus-format metrics at /metrics, and the vLLM production metrics documentation describes the counters and histograms to scrape. Collect request counts, token throughput, the latency histograms for time to first token and per-token generation, and KV cache usage over the run. Scraping these during a sustained load test shows whether a path saturates the cache early, which a single-request test will hide.

Confirm the results before you rely on them: check that the answer quality of each quantized variant meets your acceptance tests, and that the metrics were captured under load long enough to reach steady state. Keep the metrics endpoint on an internal network, because the vLLM security guidance recommends a reverse proxy that exposes only user-facing endpoints. If the measured numbers favor another format, the sibling pages on choosing a quantization method and on each format give the hardware and checkpoint requirements to plan the switch.

Security and operating risks of the quantized server

A bitsandbytes model served on vLLM inherits the same exposure, network and upkeep risks as any vLLM deployment, and the quantized checkpoint adds a provenance question on top. The cards below cover the items a security review will ask about first, in the order they usually fail in practice. Each one names what to check before traffic reaches the server.

Endpoint exposure beyond the API key

The --api-key option does not protect /metrics, /health, /invocations or the control endpoints such as /pause and /resume. vLLM's security documentation warns against relying on the key alone and recommends a reverse proxy that allowlists only the endpoints meant for users. Confirm that the proxy blocks every path not on that list, and test the blocked paths from outside the network before go-live.

vLLM security docs

Multi-node traffic on isolated networks

In a multi-node deployment, communication between nodes is insecure by default, with no authorization or encryption. The vLLM security documentation says these nodes must sit on an isolated network. bitsandbytes is generally run on a single GPU host, so this risk applies only if you extend the deployment across machines, and the design should be reviewed before that step is taken.

Parallelism and scaling docs

Checkpoint provenance and verification

A bitsandbytes checkpoint is a set of weights and config files pulled from a model hub, and the quantization step may have been run by someone outside your organization. Record the source repository, the revision hash and the checksums of each file, then load the model only from a locked, internally mirrored copy. Ask who produced the quantized weights and whether their process is reproducible.

Metrics and log access

The /metrics endpoint exposes request counts, token throughput, latency histograms and KV cache use in Prometheus format. These figures are useful to operators but can reveal traffic patterns and load to anyone who can reach them. Restrict scraping to your monitoring network, and review the request logging settings so prompts and outputs are not written to logs that have wider access than the model itself.

vLLM metrics docs

Patching on a fast release cadence

vLLM ships new minor releases about every two weeks, so a deployment that is not scheduled for upgrades falls behind quickly. Set a monthly review of the release notes and security documentation, pin the version in your container image, and test each candidate against your bitsandbytes model before promotion. Agree in advance who approves an emergency patch and how fast it must reach production.

Typical minor release cadence
Two weeks
vLLM releases

Production alternatives to plan for

Which FP8 checkpoint options should we evaluate before moving off bitsandbytes?

FP8 is usually the first option to evaluate when your GPUs are Hopper, Ada or AMD Instinct class, because it keeps weights and activations in an 8-bit float format that those accelerators handle natively. Check your GPU generation against the vLLM hardware documentation first, then confirm whether the model publisher or a recipe already provides an FP8 W8A8 checkpoint. If none exists, plan online FP8 quantization and test it. Accuracy testing should compare your own prompts and evaluation set against the bitsandbytes baseline before any traffic moves. Ask your team to budget for that evaluation work, since it is the part most often skipped.

When does AWQ make sense as a 4-bit production option on vLLM?

AWQ is a 4-bit weight format worth evaluating when you run Ampere or later NVIDIA GPUs and want lower memory use than 8-bit options while keeping the familiar weight-only workflow. Confirm that a pre-quantized AWQ checkpoint exists for your model family, since producing one yourself adds calibration work and a repeatable pipeline. AMD GPUs need a different format, so do not assume AWQ carries over to an Instinct fleet. Accuracy testing should cover the tasks your users run, including long prompts and structured output, because 4-bit error can appear there first.

Is GPTQ a good choice for an existing fleet that already uses GPTQ checkpoints?

GPTQ is worth evaluating when your fleet is already built around GPTQ checkpoints produced with GPTQModel, because it has broad hardware coverage from Volta to Hopper and benefits from Marlin acceleration on supported GPUs. Confirm the checkpoint exists for your exact model and revision, and record which quantization tool and settings produced it. Choosing between GPTQ and AWQ should rest on which pre-quantized checkpoints your models actually have and on accuracy results for your workload. Ask for a side-by-side accuracy comparison rather than relying on general benchmark scores.

Can INT8 W8A8 run on older GPUs and CPUs for vLLM production serving?

INT8 W8A8 is the option to check when your accelerators lack FP8, such as Turing and Ampere GPUs, or when you serve on x86 or Arm CPUs. Confirm the hardware coverage in the vLLM installation and hardware documentation for your exact platform, and check whether a checkpoint already exists or whether you must produce one with LLM Compressor. Producing your own checkpoint means owning a calibration dataset, a reproducible command and a stored artifact, which adds engineering time. Test accuracy against the bitsandbytes baseline on representative traffic before switching.

Does NVFP4 on Blackwell GPUs replace bitsandbytes for our hardware plan?

NVFP4 is a 4-bit option for B200-class Blackwell GPUs, and it only applies if you are buying or already run that generation. Check whether the model recipes you need publish NVFP4 checkpoints, and note which FlashInfer kernel settings those recipes require. Ask your hardware vendor or platform team to confirm the GPU count the target model needs at this precision, since the savings depend on the model and layout. Recipes also warn about accuracy tuning, so schedule evaluation against your own workload before committing capacity.

What should we check before enabling FP8 KV cache on vLLM?

FP8 KV cache, set with the kv-cache-dtype option to fp8, halves KV cache memory compared with a 16-bit cache, which can allow more concurrent requests or longer context on the same GPUs. Check that your GPU generation and model recipe support it, and whether the recipe you follow already enables it by default. Because it changes attention behavior, run accuracy checks on long-context and multi-turn prompts before production use. Measure concurrency and latency under your real request mix, not only with synthetic load.

How much accuracy testing do we need before replacing bitsandbytes in production?

The amount of testing depends on how much your workload depends on exact output: classification and extraction usually need less than open-ended reasoning, code generation or regulated decisions. Build an evaluation set from real, de-identified requests, record the bitsandbytes baseline, then run each candidate format against the same set and compare task scores, refusal behavior and structured output validity. Ask the team that owns the evaluation to define pass thresholds in writing before testing starts. Repeat the test whenever the checkpoint, vLLM release or GPU type changes, because each can shift results.

Can DeployOpen run the quantization comparison and move the chosen format into production?

DeployOpen implements, hardens and supports self-hosted open-source platforms inside your own infrastructure, so vLLM deployment, the chosen quantized checkpoint and its serving configuration can be scoped in a written agreement. Most engagements are fixed-scope, with deliverables and timelines agreed before work starts, and a quote follows from that scope. Your team keeps ownership of the evaluation criteria and the go or no-go decision on production traffic. Ask for the scope to name which formats are compared, which GPUs are in use and what evidence is delivered.

Limits to confirm in your environment

The bitsandbytes path in vLLM depends on hardware, model format, chat setup, air-gap constraints, release timing and output quality. Each card below is a check to close with your own test environment before a model is approved for use.

NVIDIA-only hardware for this path

The bitsandbytes route is the one to confirm first, because vLLM runs on NVIDIA CUDA, AMD ROCm and Intel XPU GPUs, but the bitsandbytes quantization path is not available on every one of those targets. Ask your engineers to confirm the supported GPU generations, CUDA and driver versions and the vLLM build used on your exact hardware. Do not plan capacity for AMD or Intel accelerators on this path until that is verified in a test environment.

vLLM installation docs

Model family compatibility

Quantized support is tied to specific model architectures, not to the vLLM engine as a whole. Confirm that the exact model family, size and quantization mode you plan to serve is listed as working in your target vLLM release. Run a load and generation test on the same checkpoint you will use in production, since a related family may load but behave differently.

Chat template presence for chat completions

The chat completions API needs a chat template. Many base or experimental checkpoints ship without one, and vLLM will not serve /v1/chat/completions correctly until one is supplied. Check whether the tokenizer includes a template, and if not, plan to pass a reviewed template with --chat-template and test it against your application's message format.

Online serving docs

Air-gapped installs and offline docs

If the server runs in an isolated network, confirm that the image, Python packages, model weights, tokenizer files and any quantization libraries are staged in advance. The --enable-offline-docs option supports air-gapped environments for the documentation pages, so enable it deliberately and verify that no startup step reaches the internet.

Version drift across fast releases

vLLM ships new minor releases about every two weeks, and releases from v0.28.0 (August 26, 2026) through v0.31.0 (October 5, 2026) changed quickly. Pin one tested version, record the bitsandbytes and CUDA versions beside it, and repeat the compatibility test before any upgrade. Review release notes for quantization changes at each step.

Releases to track
v0.28.0 to v0.31.0
vLLM releases

Accuracy against workload needs

4-bit and 8-bit quantization reduce memory use but can change answers, especially on reasoning, code, numeric extraction or long outputs. Define an evaluation set drawn from your real tasks, compare the quantized model with the unquantized baseline, and set acceptance thresholds before the first run. Ask the team who owns sign-off for any change in output quality.

What buyers ask before bringing in a partner

What does it cost to run bitsandbytes models on vLLM if the software is free?

The software cost is zero, because vLLM has no paid edition and is licensed under Apache-2.0. The real cost is GPU capacity, the surrounding infrastructure such as storage, networking and monitoring, and the people who build and operate the service. GPU capacity is usually the largest recurring line, and it depends on how much memory the chosen model and context length need and how many concurrent users you expect. Ask any partner for a quote that separates one-time work (planning, installation, validation, documentation) from recurring work (patching, upgrades, on-call, retesting), and that states which GPU hardware it assumes.

How long does a bitsandbytes test on vLLM take, and what drives the duration?

Duration depends on the number of models being tested, the GPU hardware available, whether the team already runs vLLM, and how much output quality checking the workload needs. A single-model proof of concept on a machine you already own is usually much shorter than validating several models against an accuracy baseline with load tests. Access to the right NVIDIA hardware is often the first delay, so confirm GPU availability before setting a date. Ask for a timeline in the written scope that lists each phase and the client decisions each phase depends on.

What does our team need to provide for a bitsandbytes test?

You need to provide access to NVIDIA GPU hosts or a cloud account where they can be provisioned, a list of candidate models and their licenses, representative prompts or evaluation data, and a named owner who can approve the results. Your team also needs to decide which clients will call the endpoint and how they authenticate. Network rules, DNS names and a place to store model weights should be agreed early, because these often decide whether a test can move beyond a single machine.

Can our internal team run a bitsandbytes test on vLLM without a partner?

Often yes, for a single-GPU experiment, provided the team has someone comfortable with Linux, CUDA drivers, Python environments and container runtimes. The work becomes harder when you add accuracy comparisons against a higher-precision baseline, load testing, and a hardened endpoint with an authenticated reverse proxy. Consider the people time as well as the hardware: a partner is most useful when the internal team lacks these skills or lacks time to run and document the test. Compare an internal plan and a partner scope against the same list of deliverables.

Which serving problems usually surface during a bitsandbytes test?

Teams most often hit problems with CUDA and driver versions, model loading time and memory headroom, missing chat templates for the chat completions API, and output quality that differs from the unquantized model. Throughput under concurrent load is another common finding, since bitsandbytes is generally better suited to experiments than to high-throughput serving. Ask the partner to name the checks it will run for each of these and to record the vLLM version used, since the project ships new minor releases about every two weeks.

When should we move from bitsandbytes to a production quantization format?

Move when the test shows that the model must serve steady production traffic, when throughput or latency targets are not met under load, or when you need a format with broader hardware support or a pre-quantized checkpoint from a model provider. The decision should rest on measured results, including accuracy on your own evaluation set. Plan the move as a migration with a new checkpoint, a new accuracy baseline, a load test and a rollback path, and confirm the candidate format on the vLLM quantization documentation for your GPU generation before committing.

What evidence should we ask for before approving a bitsandbytes deployment?

Ask for a written record of the vLLM version, GPU model and driver versions, the exact model and quantization settings, the accuracy comparison method and results, load test figures at the concurrency you expect, and the configured API access controls. For regulated environments, also ask how logs, metrics and model files will be stored and reviewed. DeployOpen prepares systems, controls and evidence for compliance assessments, but independent auditors and certification bodies issue any formal opinion.

How the bitsandbytes request path crosses the trust boundary

The request starts at a client application and enters through a reverse proxy that allowlists only the user-facing OpenAI-compatible endpoints. Behind it, vllm serve runs the bitsandbytes-loaded model on NVIDIA GPUs. The /metrics endpoint is reached only from the internal monitoring network, not through the proxy. Check that the proxy blocks /metrics, /pause, /resume and /abort_requests, because the --api-key option does not protect them.

Client traffic passes an allowlist proxy before reaching the quantized model, while metrics stay internal.

How DeployOpen scopes and delivers a vLLM quantization test

A written scope comes before any work on a bitsandbytes test. For this topic, the scope should name the model checkpoints to load, the GPUs they will run on, the quantization flags under test (4-bit with NF4 or FP4, or 8-bit), the prompts and evaluation sets used to compare outputs, and the throughput and latency targets. DeployOpen agrees deliverables and timelines in writing before work starts, so the client knows what a finished test contains: a reproducible load and serving configuration, a comparison of accuracy and memory use against the unquantized baseline, and a recorded decision on whether the format is fit for the workload. Most engagements are fixed-scope, and a quote follows from that written scope. Pricing depends on the scope, the number of models and GPU configurations, and how much evaluation data the client can supply, so ask for a quote that itemizes these items.

The work runs in the client's own infrastructure: their cloud accounts, data centers or air-gapped networks. That matters for bitsandbytes because the test needs the same NVIDIA hardware the client will use, and the model weights and evaluation data often cannot leave the environment. DeployOpen can prepare the evidence a security or compliance team will ask for, including the vLLM deployment configuration, access controls on the serving endpoint, and records of the test runs. It does not issue audit reports or certifications; independent auditors do that. Ongoing work, such as re-running the comparison when vLLM releases change quantization behavior or when a new checkpoint is published, can be covered by a retainer for upgrades and continuous testing, which should be priced separately and agreed in writing.

Sources and further reading

Talk to our team.

Tell us what you're working on, whether it's a deployment, an audit, a security test or a cyber range. You'll speak with an engineer who can help you scope it.

  • 30-minute call: free, with no obligation.
  • NDA on request: we can sign before you share details.
  • Clear next steps: a scope and plan after the call.