Open-Source Vision LLM Deployment: 9B vs. 100B Model Selection
This article explains how to choose between 9B and 100B open-source vision language models for deployment. It covers long-context and document processing, image input and image-text output, tool calling and agents, VRAM estimation for 9B models on consumer GPUs, local serving with vLLM and Ollama, evaluation methods for industrial quality inspection, private deployment compute requirements for 100B models, selection criteria, and common deployment mistakes.
1. Core Capabilities of Multimodal Vision Models
Open-source multimodal vision models have been updating rapidly over the past year or two. Most new models have improved in multimodal understanding, complex reasoning, and long-context processing, but capabilities vary significantly between models. Model selection should be based on actual testing, not just release announcements.
1.1 Long Context and Document Processing
Some open-source vision models claim to support 128k context. The actual usable length depends on the model card and server configuration. The token count of a text page varies by layout and font. A common estimate is 800 to 1,000 tokens per page, so 128k can hold roughly 120 to 150 pages of plain text documents. When pages contain many images, image tokens consume more context, and the usable page count drops noticeably.
Video has the same limitation. Assuming one frame extracted per second, a one-hour video is about 3,600 frames. If each frame takes hundreds of tokens, the total far exceeds 128k. In practice, you need to reduce the frame extraction rate or image resolution, or split the video into multiple segments and process them separately.
1.2 Image Input and Image-Text Output
Most models support image input. Support for interleaved image-text output varies by model. Some models can generate responses with charts, while others can only output text. If the business requires generating charts or design sketches, validate this on the target model at a small scale first.
1.3 Tool Calling and Agents
Vision models can select external tools based on image content, such as database queries or code execution. This capability depends on the model’s function-calling implementation and the upper-layer orchestration logic. Tool-calling stability should be evaluated with a fixed test set; a single success does not prove reliability.
2. 9B Lightweight Models: What Can Run on Consumer GPUs
9B-level vision models have fewer parameters and are suitable for running on personal gaming laptops or workstation GPUs. Stable operation depends on quantization precision, VRAM capacity, and context length.
2.1 Estimating VRAM
The VRAM footprint of model weights can be roughly calculated from the parameter count and bytes per parameter:
| Precision | Weight estimate | Notes |
|---|---|---|
| FP16 | ~18GB | 9B × 2 bytes |
| INT8 | ~9GB | 9B × 1 byte |
| INT4 | ~5GB | ~0.5 bytes per parameter, plus overhead for quantization scales, etc. |
Weights are only part of the picture. The vision encoder, KV cache, activations, and inference framework itself also consume VRAM. Longer contexts, higher concurrency, and larger image resolutions increase additional usage. Therefore, INT4 weights at about 5GB do not mean an 8GB GPU can run without pressure.
Based on the table above, INT4 precision can be loaded on an 8GB GPU such as the RTX 4060 8GB, but it is only suitable for short contexts, low-resolution images, and single-request workloads. A 12GB GPU such as the RTX 4070 12GB has more headroom and is suitable for daily testing and small-batch inference. The final configuration should be based on actual testing. Record VRAM after loading, first-request latency, and peak VRAM.
2.2 Local Deployment Steps
- Confirm that the GPU driver and CUDA version are compatible with the inference framework.
- Select a quantized model version and confirm whether its quantization method (such as AWQ, GPTQ, or GGUF) is supported by the chosen framework.
- Pin the inference framework version and find the corresponding startup parameters in the official documentation.
- Limit the maximum context length and concurrency first to ensure the service starts stably.
- Check outputs with a fixed test image set, and record peak VRAM and latency.
Using vLLM as an example, the startup command has the following form. Refer to the documentation for the corresponding version for specific parameters:
vllm serve <local-model-path> --quantization awq --max-model-len 8192 --gpu-memory-utilization 0.85
Ollama is simpler to operate, but its support for vision input and parameter control is less flexible than vLLM. If you need batch processing or fine-grained control, use vLLM or a similar serving framework.
2.3 Calling Example
The following example uses an OpenAI-compatible interface and passes a local image as a base64 data URL. The server must support image input.
import base64from openai import OpenAIclient = OpenAI(base_url="http://localhost:8000/v1", api_key="EMPTY")with open("/path/to/box_image.jpg", "rb") as f:b64 = base64.b64encode(f.read()).decode("utf-8")response = client.chat.completions.create(model="your-vision-model-9b",messages=[{"role": "user","content": [{"type": "text","text": "Inspect the cardboard box in the image for damage and check whether the tape seal is intact. Output only JSON: {\"damaged\": bool, \"tape_ok\": bool, \"reason\": str}",},{"type": "image_url","image_url": {"url": f"data:image/jpeg;base64,{b64}"},},],}],max_tokens=256,temperature=0,)print(response.choices[0].message.content)
Require the model to output fixed-format JSON so downstream programs can parse it. The model may occasionally return malformed content, so the program needs to handle parsing failures.
3. Industrial Quality Inspection: How to Judge Effectiveness
In a packaging quality inspection case at a state-owned enterprise, the existing traditional CV algorithms or smaller vision models had a high false-positive rate, and many qualified cardboard boxes were judged as defective, requiring workers to recheck them. After switching to a 9B vision model, the team observed a reduction in false positives. This conclusion is currently only qualitative and lacks public test data.
To determine whether a new model is truly effective, at least the following should be recorded:
- Test set size and labeling method, and the number of samples in each class.
- Lighting conditions, box types, camera models, and shooting angles.
- Accuracy, recall, and false-positive rate compared with the original solution. The false-positive rate here means the proportion of qualified products judged as defective.
- Inference latency per image and the throughput required by the production line.
- Model stability across different batches of samples.
Prompts can describe inspection rules, but they cannot replace labeled data. For difficult cases such as subtle damage and tape wrinkles, model performance may vary widely, so a dedicated difficult-case test set should be prepared.
The advantage of edge deployment is controllable latency, and images and production data do not need to leave the factory. The prerequisite is that on-site hardware can meet inference speed requirements and that someone maintains the model service.
4. 100B-Level Models: Compute Budget for Enterprise Private Deployment
100B-level models, such as a 106B-parameter model, have a large weight footprint. Estimating by parameter count multiplied by bytes, FP16 requires about 212GB, INT8 about 106GB, and INT4 about 53GB. A single 80GB GPU cannot carry the full weights at any of these precisions alone, so multi-GPU parallelism is usually required.
The actual number of GPUs depends on the following factors:
- Quantization precision: lower precision reduces weight usage.
- Context length: KV cache grows with length.
- Number of concurrent requests: higher concurrency increases cache usage.
- Parallelism method: tensor parallelism requires sufficiently fast inter-GPU communication; otherwise performance drops noticeably.
Before procurement, estimate VRAM based on target concurrency and context length, then run stress tests with actual workloads. Looking only at model parameter count is not enough.
The core benefit of private deployment is that data does not leave the domain. Documents, drawings, and videos are all parsed inside the enterprise intranet, which helps meet compliance and audit requirements. The deployment environment can be a general Kubernetes cluster or standalone GPU servers. Platform choice should be based on existing operations capabilities and compliance requirements, not simply on a cloud vendor’s recommendation.
5. How to Choose Between 9B and 100B
Model selection should mainly consider three dimensions: business latency and concurrency requirements, data privacy requirements, and budget and operations capabilities.
| Dimension | Better suited to 9B | Better suited to 100B |
|---|---|---|
| Typical scenarios | Edge quality inspection, single-machine inspection, personal tools | Enterprise knowledge base, complex document review |
| Latency requirements | Low latency, single or low concurrency | Higher latency acceptable, batch processing |
| VRAM | Single consumer or professional GPU | Multiple 80GB-class GPUs |
| Data privacy | Can run locally, data does not leave | Private cluster, data does not leave |
| Budget and operations | Low hardware barrier, simple maintenance | High hardware and operations costs |
Selection should also consider full lifecycle costs. Beyond hardware procurement, this includes model version iteration, logging and monitoring alerts, inference framework upgrades, and re-evaluation of new models.
6. Common Mistakes
- Estimating VRAM only from weights. Ignoring the vision encoder, KV cache, and framework overhead leads to VRAM exhaustion soon after the model loads.
- Using an image path instead of image data. The server usually cannot access a client’s local path. Use base64 encoding or provide an HTTP address accessible to the server.
- Not limiting context length. Long videos or long documents exhaust VRAM, and the service crashes.
- Judging effectiveness with a single image. Use a fixed test set and record false-positive and missed-detection rates.
- Forgetting to pin the framework version. Startup parameters and quantization support may differ between versions, and the service may fail to start after an upgrade.
- Ignoring output parsing failures. The format returned by the model may not match expectations, so downstream programs need fault tolerance.
7. Conclusion
The capability improvements in open-source vision models are real, but deployment results depend on hardware conditions, testing methods, and operations investment. 9B models are suitable for localized applications on consumer hardware, provided that VRAM is estimated properly and context length is controlled. 100B models are suitable for enterprise private deployment and require multi-GPU compute and a stable operations system. Before selecting a model, clarify business latency, data privacy, and budget requirements, then run a small-scale evaluation with your own data. The conclusions will be more reliable than relying on public leaderboards.
