# mancera1/model-opt-vllm architecture

> Architecture diagram of the GitHub repository mancera1/model-opt-vllm, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-12). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/mancera1/model-opt-vllm
- Repository: https://github.com/mancera1/model-opt-vllm

## Overview

This repository defines reproducible NVIDIA inference-container variants, a shared offline quantization image, and GPU-dependent handoff tools for checking model artifacts and serving behavior. The main workflow is to select an engine/image and model profile, run inference on a supported GPU host, then evaluate outputs or capacity; offline quantization is a separate artifact-preparation path. The graph reflects README-documented capabilities and the sampled tool behavior; Dockerfile internals and unsampled handoff tools were not inspected, so their internal call relationships are omitted.

Main entry points: [`configs`](https://github.com/mancera1/model-opt-vllm/tree/main/configs) (Model profiles), [`variant-a/serve-main/Dockerfile`](https://github.com/mancera1/model-opt-vllm/blob/main/variant-a/serve-main/Dockerfile) (vLLM main), [`variant-a/serve-omni/Dockerfile`](https://github.com/mancera1/model-opt-vllm/blob/main/variant-a/serve-omni/Dockerfile) (vLLM Omni), [`variant-b/serve-unified/Dockerfile`](https://github.com/mancera1/model-opt-vllm/blob/main/variant-b/serve-unified/Dockerfile) (Unified vLLM)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_serving["Serving Images"]
  node_main["vLLM main"]
  node_omni["vLLM Omni"]
  node_unified["Unified vLLM"]
  node_sglang["SGLang serving"]
  node_trtllm["TensorRT infrastructure"]
  node_profiles["Model profiles"]
end

subgraph group_quant["Quantization"]
  node_quantimage["Quantization image"]
  node_omniquant["Omni FP8 PTQ"]
  node_qwenquant["Qwen fallback PTQ"]
end

subgraph group_verify["Validation Tools"]
  node_scale["Scale integrity scan<br/>[scale_scan.py]"]
  node_capacity["Capacity probe<br/>[capacity_probe.py]"]
  node_genbench["Generation benchmark<br/>[gen_bench.py]"]
  node_specgrid["Speculative decode grid<br/>[specdec_grid.py]"]
  node_embedding["Embedding parity"]
  node_audiocheck["Omni audio parity"]
  node_degen["Degenerate detector"]
end

node_operator(("Serving operator"))
node_gpu["Hopper GPU host"]
node_clients(("Inference clients"))

node_operator -->|"selects image"| node_main
node_operator -->|"selects image"| node_omni
node_operator -->|"selects image"| node_unified
node_operator -->|"selects image"| node_sglang
node_operator -->|"selects image"| node_trtllm
node_profiles -.->|"configures serving"| node_main
node_profiles -.->|"configures serving"| node_omni
node_profiles -.->|"configures serving"| node_unified
node_profiles -.->|"configures serving"| node_sglang
node_main -->|"runs on"| node_gpu
node_omni -->|"runs on"| node_gpu
node_unified -->|"runs on"| node_gpu
node_sglang -->|"runs on"| node_gpu
node_trtllm -->|"runs on"| node_gpu
node_clients -.->|"requests inference"| node_main
node_clients -.->|"requests inference"| node_omni
node_clients -.->|"requests inference"| node_unified
node_clients -.->|"requests inference"| node_sglang
node_operator -->|"runs PTQ"| node_quantimage
node_quantimage -->|"provides toolchain"| node_omniquant
node_quantimage -->|"provides toolchain"| node_qwenquant
node_operator -->|"scans checkpoint"| node_scale
node_operator -->|"probes capacity"| node_capacity
node_operator -->|"benchmarks serving"| node_genbench
node_operator -->|"benchmarks decoding"| node_specgrid
node_operator -->|"checks parity"| node_embedding
node_operator -->|"checks parity"| node_audiocheck
node_genbench -->|"analyzes outputs"| node_degen
node_specgrid -->|"analyzes outputs"| node_degen
node_audiocheck -->|"analyzes outputs"| node_degen

click node_main "https://github.com/mancera1/model-opt-vllm/blob/main/variant-a/serve-main/Dockerfile"
click node_omni "https://github.com/mancera1/model-opt-vllm/blob/main/variant-a/serve-omni/Dockerfile"
click node_unified "https://github.com/mancera1/model-opt-vllm/blob/main/variant-b/serve-unified/Dockerfile"
click node_sglang "https://github.com/mancera1/model-opt-vllm/blob/main/variant-c/serve-sglang/Dockerfile"
click node_trtllm "https://github.com/mancera1/model-opt-vllm/blob/main/variant-d/serve-trtllm/Dockerfile"
click node_profiles "https://github.com/mancera1/model-opt-vllm/tree/main/configs"
click node_quantimage "https://github.com/mancera1/model-opt-vllm/blob/main/quant-offline/Dockerfile"
click node_omniquant "https://github.com/mancera1/model-opt-vllm/blob/main/quant-offline/scripts/quantize_omni_thinker_fp8.py"
click node_qwenquant "https://github.com/mancera1/model-opt-vllm/blob/main/quant-offline/scripts/quantize_qwen36_fallback.py"
click node_scale "https://github.com/mancera1/model-opt-vllm/blob/main/handoff/scale_scan.py"
click node_capacity "https://github.com/mancera1/model-opt-vllm/blob/main/handoff/capacity_probe.py"
click node_genbench "https://github.com/mancera1/model-opt-vllm/blob/main/handoff/gen_bench.py"
click node_specgrid "https://github.com/mancera1/model-opt-vllm/blob/main/handoff/specdec_grid.py"
click node_embedding "https://github.com/mancera1/model-opt-vllm/blob/main/handoff/parity_embedding.py"
click node_audiocheck "https://github.com/mancera1/model-opt-vllm/blob/main/handoff/omni_audio_check.py"
click node_degen "https://github.com/mancera1/model-opt-vllm/blob/main/handoff/degenerate_detector.py"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_main,node_omni,node_unified,node_sglang,node_trtllm,node_profiles,node_clients toneBlue
class node_quantimage,node_omniquant,node_qwenquant toneAmber
class node_scale,node_capacity,node_genbench,node_specgrid,node_embedding,node_audiocheck,node_degen toneMint
class node_operator,node_gpu toneIndigo
```

## Components

### Serving Images

- [vLLM main](https://github.com/mancera1/model-opt-vllm/blob/main/variant-a/serve-main/Dockerfile): `variant-a/serve-main/Dockerfile`
- [vLLM Omni](https://github.com/mancera1/model-opt-vllm/blob/main/variant-a/serve-omni/Dockerfile): `variant-a/serve-omni/Dockerfile`
- [Unified vLLM](https://github.com/mancera1/model-opt-vllm/blob/main/variant-b/serve-unified/Dockerfile): `variant-b/serve-unified/Dockerfile`
- [SGLang serving](https://github.com/mancera1/model-opt-vllm/blob/main/variant-c/serve-sglang/Dockerfile): `variant-c/serve-sglang/Dockerfile`
- [TensorRT infrastructure](https://github.com/mancera1/model-opt-vllm/blob/main/variant-d/serve-trtllm/Dockerfile): `variant-d/serve-trtllm/Dockerfile`
- [Model profiles](https://github.com/mancera1/model-opt-vllm/tree/main/configs): `configs`

### Quantization

- [Quantization image](https://github.com/mancera1/model-opt-vllm/blob/main/quant-offline/Dockerfile): `quant-offline/Dockerfile`
- [Omni FP8 PTQ](https://github.com/mancera1/model-opt-vllm/blob/main/quant-offline/scripts/quantize_omni_thinker_fp8.py): `quant-offline/scripts/quantize_omni_thinker_fp8.py`
- [Qwen fallback PTQ](https://github.com/mancera1/model-opt-vllm/blob/main/quant-offline/scripts/quantize_qwen36_fallback.py): `quant-offline/scripts/quantize_qwen36_fallback.py`

### Validation Tools

- [Scale integrity scan](https://github.com/mancera1/model-opt-vllm/blob/main/handoff/scale_scan.py): `handoff/scale_scan.py`
- [Capacity probe](https://github.com/mancera1/model-opt-vllm/blob/main/handoff/capacity_probe.py): `handoff/capacity_probe.py`
- [Generation benchmark](https://github.com/mancera1/model-opt-vllm/blob/main/handoff/gen_bench.py): `handoff/gen_bench.py`
- [Speculative decode grid](https://github.com/mancera1/model-opt-vllm/blob/main/handoff/specdec_grid.py): `handoff/specdec_grid.py`
- [Embedding parity](https://github.com/mancera1/model-opt-vllm/blob/main/handoff/parity_embedding.py): `handoff/parity_embedding.py`
- [Omni audio parity](https://github.com/mancera1/model-opt-vllm/blob/main/handoff/omni_audio_check.py): `handoff/omni_audio_check.py`
- [Degenerate detector](https://github.com/mancera1/model-opt-vllm/blob/main/handoff/degenerate_detector.py): `handoff/degenerate_detector.py`

### Other components

- **Serving operator**
- **Hopper GPU host**
- **Inference clients**

## Connections

- Serving operator → vLLM main: selects image (evidence: `README.md`)
- Serving operator → vLLM Omni: selects image (evidence: `README.md`)
- Serving operator → Unified vLLM: selects image (evidence: `README.md`)
- Serving operator → SGLang serving: selects image (evidence: `README.md`)
- Serving operator → TensorRT infrastructure: selects image (evidence: `README.md`)
- Model profiles → vLLM main: configures serving
- Model profiles → vLLM Omni: configures serving
- Model profiles → Unified vLLM: configures serving
- Model profiles → SGLang serving: configures serving
- vLLM main → Hopper GPU host: runs on (evidence: `README.md`)
- vLLM Omni → Hopper GPU host: runs on (evidence: `README.md`)
- Unified vLLM → Hopper GPU host: runs on (evidence: `README.md`)
- SGLang serving → Hopper GPU host: runs on (evidence: `README.md`)
- TensorRT infrastructure → Hopper GPU host: runs on (evidence: `README.md`)
- Inference clients → vLLM main: requests inference
- Inference clients → vLLM Omni: requests inference
- Inference clients → Unified vLLM: requests inference
- Inference clients → SGLang serving: requests inference
- Serving operator → Quantization image: runs PTQ (evidence: `README.md`)
- Quantization image → Omni FP8 PTQ: provides toolchain (evidence: `README.md`)
- Quantization image → Qwen fallback PTQ: provides toolchain (evidence: `README.md`)
- Serving operator → Scale integrity scan: scans checkpoint (evidence: `handoff/scale_scan.py`)
- Serving operator → Capacity probe: probes capacity (evidence: `handoff/capacity_probe.py`)
- Serving operator → Generation benchmark: benchmarks serving (evidence: `handoff/gen_bench.py`)
- Serving operator → Speculative decode grid: benchmarks decoding (evidence: `handoff/specdec_grid.py`)
- Serving operator → Embedding parity: checks parity (evidence: `handoff/parity_embedding.py`)
- Serving operator → Omni audio parity: checks parity (evidence: `handoff/omni_audio_check.py`)
- Generation benchmark → Degenerate detector: analyzes outputs (evidence: `handoff/gen_bench.py`)
- Speculative decode grid → Degenerate detector: analyzes outputs (evidence: `handoff/specdec_grid.py`)
- Omni audio parity → Degenerate detector: analyzes outputs (evidence: `handoff/omni_audio_check.py`)
