Running LLM Inference on Older GPUs with Containers: A 32GB GPU Deployment and Troubleshooting Guide

    Older data center GPUs with 32GB of VRAM are still common in many fleets, but newer compute stacks often reject them outright: recent images do not support older architectures, operator kernels are missing, and inference fails immediately on startup. This article walks through deploying mainstream open-source LLM inference on a single 32GB older data center GPU using containers. It covers whether the upgrade is worth it and a hardware/software version checklist, why containerization is safer than installing the compute stack on the host, how to choose between official all-in-one and community images, the most common failure mode (compute libraries no longer shipping prebuilt kernels for older architectures), how to backfill operator kernels along with prerequisites and rollback steps, GPU passthrough for both NVIDIA and AMD/ROCm, model and quantization sizing for 32GB of VRAM, parameter tuning, a verification checklist, an error-to-cause-to-fix reference table, and the explicit limits of this approach.

    Introduction: Can older GPUs still run large models?

    Many teams still hold a batch of data center GPUs purchased years ago — for example, cards with 32GB of VRAM each. Under newer compute software stacks these cards are often turned away: recent images do not support the older architecture, operator kernels are missing, and starting inference directly produces errors. Yet if you ask “can an older GPU still run a large model?”, the answer is rarely a flat no. It depends on whether the driver, compute libraries, inference engine, and model quantization actually line up.

    This article targets a common scenario: deploying mainstream open-source large language model inference in a container on a single older data center GPU with 32GB of VRAM. The goal is not merely to get something running, but to answer practical questions: how to do LLM inference on older GPUs, how to configure containerized LLM inference deployment, how to troubleshoot common GPU passthrough errors, and which model size to pick for 32GB of VRAM.

    1. Start with a cost/benefit assessment: is the upgrade worth it?

    Before you touch anything, ask yourself one question: do you want to “get a model running as fast as possible”, or do you want to “upgrade the compute stack for higher performance”?

    If you only need to get running quickly, prioritize a community-validated all-in-one image: the compute stack, inference engine, and model format are already matched, and the cost is lowest. If you intend to move to a newer compute stack, you must re-validate driver, compute library, inference framework, and model operator compatibility yourself.

    It helps to build a hardware and software version checklist first:

    Check item Purpose Common verification method
    GPU model and architecture Determine whether it is supported by the newer compute stack NVIDIA: nvidia-smi -L; AMD: rocm-smi
    VRAM capacity Determines model size and quantization bit width Run the inference engine’s device detection inside the container
    Driver version Affects GPU passthrough and compute stack compatibility NVIDIA: nvidia-smi; AMD: rocm-smi --showdriverversion
    Compute stack version Determines operator library and architecture support Check the CUDA/ROCm version inside the container
    Inference engine version Affects supported model formats and parameters vllm --version, etc.
    Target architecture support Indicates whether operators will be missing Consult the official support matrix or test empirically

    If the driver does not support the older GPU at all, or the device is physically damaged, containerization will not fix it. Only when the driver works but the compute libraries do not recognize the older architecture does it make sense to proceed to the operator backfill process.

    2. Why containers instead of installing the compute stack directly on the host?

    A common mistake with older-GPU LLM inference deployments is installing the compute stack straight onto the host. GPU compute stacks span drivers, runtime libraries, compiler toolchains, communication libraries, and more. Once these conflict with the operating system or with other applications, troubleshooting and rollback become painful.

    The better approach: keep only the necessary drivers and a container runtime on the host, and package the compute stack, operating system dependencies, and inference engine into the image.

    The benefits include:

    • Environment isolation: multiple inference engines and multiple compute stacks can coexist.
    • Reproducibility: the image is the environment, so moving to new hardware or scaling out is just a pull.
    • Easy rollback: when something breaks you switch image tags instead of reinstalling the operating system.

    If you need several containers to cooperate — inference service, gateway, monitoring — create a dedicated network first. The host needs a container runtime installed, such as Docker or Podman:

    1. # Docker example
    2. docker network create inference-net
    3. # Podman example
    4. podman network create inference-net

    3. Choosing an image: official all-in-one images vs. community images

    Prefer officially maintained all-in-one images that bundle the compute stack, a Linux distribution, and the inference engine, because the version dependencies are already pinned and the image runs as soon as it is pulled. If the goal is a stable working deployment, official images are the safer choice.

    Image type Advantages Risks
    Official all-in-one image Complete version alignment, easy rollback May not support older architectures
    Community image for older architectures May be optimized for older cards Maintenance cadence, security, and stability need evaluation
    Self-built image Components can be customized You handle dependencies and validation yourself

    When evaluating a community image, confirm its maintenance cadence, support for the older architecture, reproducibility, and rollback cost. Do not push an image of unknown provenance straight into production.

    4. The biggest pitfall: the newer compute stack cannot see the older architecture GPU

    The most common error when containerizing LLM inference on older GPUs is not a badly installed driver — it is the compute library not “recognizing” the card.

    Newer compute software stacks tend to focus on mainstream hardware and may drop prebuilt operator kernels for earlier architectures. When the inference engine starts, it loads the operator library matching the current GPU architecture; if the corresponding files are not there, initialization fails. Typical errors include:

    • no kernel image is available for execution on the device
    • undefined symbol
    • libcudart.so: cannot open shared object file
    • Device information is visible, but inference initialization fails

    Reinstalling the image repeatedly will not solve this class of problem. You need to confirm whether the GPU architecture, compute library version, and operator files actually match.

    5. Backfilling operator kernels: prerequisites, risks, and rollback steps

    If the newer compute stack is missing operator files for the older architecture, you can try copying the corresponding prebuilt operator kernels back in from an older version of the compute stack. This is not a blind file copy, though. The following conditions must hold:

    • Trusted source: from an official, internally validated image, or another trusted channel.
    • License permits it: do not introduce components that violate licensing or compliance requirements.
    • Driver and compute library ABI compatibility: the operator library must match the current driver and compute libraries.
    • Matching GPU architecture identifiers: for example, operator files built for the specific older architecture.
    • Back up first and keep the old image: so a failure can be rolled back quickly.

    Recommended procedure:

    1. Back up the current image or container.
    2. Extract the operator files from an older image that still supports the architecture.
    3. Confirm the directory layout matches what the current compute library expects.
    4. Run a minimal load test before running full inference.
    5. If errors appear or performance is abnormal, restore the backup.

    Example commands:

    1. # Assuming the old container already has compatible operator files, export them to the host first
    2. docker cp old-inference:/path/to/operator-files ./operator-files
    3. # Then copy them into the corresponding compute library directory in the new container
    4. docker cp ./operator-files inference-server:/usr/local/lib/python3.10/dist-packages/torch/lib/
    5. # Restart the container
    6. docker restart inference-server

    Note: modifying compute library directories is a non-standard maintenance operation and may affect future upgrades. If you repeatedly hit operator fallbacks, performance degradation, or crashes, switch to an official or community image that supports the older architecture, or pin an older compute stack version within acceptable limits.

    6. GPU passthrough: NVIDIA and AMD are handled differently

    When containerizing LLM inference on older GPUs, the usual reason the GPU is invisible inside the container is a misconfigured device passthrough.

    NVIDIA

    The host needs the NVIDIA driver installed, plus the NVIDIA Container Toolkit. Start the container with --gpus:

    1. docker run -it \
    2. --name inference-server \
    3. --gpus all \
    4. --network=inference-net \
    5. --shm-size=2g \
    6. -v /local/path/models:/models \
    7. -p 8000:8000 \
    8. inference-image-tag \
    9. vllm serve /models --max-model-len 8192 --enable-prefix-caching

    To select specific GPUs:

    1. docker run -it --gpus '"device=0,1"' ...

    Verify visibility inside the container:

    1. docker exec -it inference-server nvidia-smi

    AMD / ROCm

    The host needs the AMD GPU driver and ROCm components. Container passthrough usually involves /dev/kfd and /dev/dri:

    1. docker run -it \
    2. --name inference-server \
    3. --device=/dev/kfd \
    4. --device=/dev/dri \
    5. --group-add video \
    6. --group-add render \
    7. --network=inference-net \
    8. --shm-size=2g \
    9. -v /local/path/models:/models \
    10. -p 8000:8000 \
    11. inference-image-tag \
    12. vllm serve /models --max-model-len 8192 --enable-prefix-caching

    Verify:

    1. docker exec -it inference-server rocm-smi

    Least-privilege recommendation: do not blindly add a long list of user groups just because it “seems to work”. Prefer the default authorization mechanisms of the container runtime and driver, and add device permissions only when they are genuinely required.

    7. Choosing a model for 32GB of VRAM

    32GB of VRAM is usable but not generous legacy compute capacity. Choosing a quantized model is practically unavoidable. The table below gives example selections; it does not represent measured results for every model:

    Model size Quantization suggestion Context example Concurrency suggestion Notes
    Around 7B 4-bit 4096–8192 2–4 Relatively easy to get running
    Around 13B 4-bit 2048–4096 1–2 Watch peak VRAM usage
    14B–34B 4-bit or lower 2048–4096 1 Be careful with context and concurrency
    70B class Not recommended on a single 32GB card - - VRAM is usually insufficient

    Practical recommendations:

    • Use widely supported quantization formats so inference frameworks can load them easily.
    • Map the model directory in with a volume mount; do not bake large models into the image.
    • Set the maximum context length explicitly, for example --max-model-len 4096.
    • Validate with a small context and low concurrency first, then scale up gradually.

    8. Inference service parameter tuning and a verification checklist

    The goal of parameter tuning is to balance throughput and latency. Commonly used parameters include maximum context length, prefix caching, concurrency, and batching.

    During the verification stage, a checklist you can tick off is useful:

    • The container starts with no crash logs
    • The GPU device is visible inside the container
    • The inference engine can load the target model
    • No missing-architecture errors while loading operators
    • The shortest input returns a normal response
    • VRAM usage stays stable after concurrency load testing
    • No frequent out-of-memory events or killed processes

    Common errors and where to look:

    Error keyword Likely cause Direction to investigate
    no kernel image Missing operators for the older architecture Backfill matching operators or switch to an older compute stack
    undefined symbol Library version or ABI incompatibility Check compute library, driver, and image versions
    device not visible Incorrect GPU passthrough configuration Check NVIDIA --gpus or AMD device nodes
    shm / bus error Insufficient shared memory Increase --shm-size
    out of memory Insufficient VRAM Lower quantization bit width, context length, or concurrency

    9. Risks and boundaries

    The core methodology of containerized inference on older GPUs is “trade isolation for stability, and backfilling for compatibility”. But it has clear boundaries:

    • If the driver does not support the older GPU at all, do not force operator backfilling.
    • If the hardware is damaged or VRAM is faulty, prioritize replacing the hardware.
    • If a closed-source ecosystem, firmware, or model cannot pass licensing and compliance review, do not deploy it.
    • Performance after operator backfilling is not guaranteed to match newer cards; rely on your own measurements.
    • Whenever you modify compute libraries, add device permissions, or copy third-party files, keep backups and a rollback path.

    Conclusion

    Idle older data center GPUs do not have to sit gathering dust. As long as you properly assess the driver, compute stack, inference engine, and model quantization, then package the environment in containers, pass the GPU through correctly, and backfill the older-architecture operators, a 32GB-class older card can still be reused as an LLM inference node at low cost. The approach is not limited to one particular old GPU — it also transfers to any scenario with legacy compute capacity where official support is insufficient but the hardware is still usable.