Open-Source Multimodal LLM: Architecture, MoE Quantization, and Deployment Considerations
This article examines a recently open-sourced experimental large multimodal model, covering its released assets, MoE routing architecture, FP4/FP8 mixed-precision quantization, visual tokenization, KV-cache sizing, and the hardware and framework checks required before local deployment.
Introduction: From Cloud API Calls to Local Control
Multimodal large models are already used in image understanding, image-text question answering, and automated agent workflows. Enterprises often face three constraints when deploying them: data cannot leave their domain, business requirements call for model customization, and some scenarios require edge-side execution. Relying only on cloud APIs makes it difficult to satisfy all of these requirements at the same time.
Recently, an open-source team released an experimental, very-large-scale multimodal model. In addition to API service, the team provided model weights and a reference implementation. Developers can therefore inspect the model structure, adjust the vision module, and run it in their own environments. This article reviews the open-source contents, architecture highlights, and issues that need to be evaluated before deployment.
1. Open-Source Contents: From API to Weights and Reference Implementation
1.1 Changes in Scope
Previously, the model was mainly offered through an API. In API mode, developers could not modify the vision module, and it was difficult to validate quantization schemes or integrate the model into local agents. This open-source release provides model weights, the prompt encoding implementation, and a minimal inference path, allowing developers to reproduce the inference workflow in their own environments.
1.2 Open-Source Asset List
The repository mainly contains the following:
- Model weight files: in safetensors format, split into dozens of shards, with a total size of about 168GB.
- Prompt encoding implementation for image-text messages: the message structure is similar to common multimodal interfaces, making it easier to migrate existing calling code.
- Vision encoder and alignment module: maps image features into the language model’s representation space.
- Reference implementation: includes code for attention computation, expert routing, and hyper-connection.
- Auxiliary tools: weight conversion scripts, image-text examples, preprocessing tests, and an open-source license.
1.3 A Reference Implementation Is Not a Production Inference Engine
The official description positions the inference code as a “readable reference implementation.” Such code is clearly structured and suitable for researchers validating algorithm logic. Production environments also need to handle high concurrency, dynamic VRAM scheduling, and compatibility across multiple hardware backends, which reference implementations usually do not cover. Teams planning to launch a service will generally adapt the model to mature inference frameworks such as vLLM or TensorRT-LLM. Whether a framework supports the model’s architecture and quantization formats must be checked separately.
2. Core Architecture: MoE Routing and Mixed-Precision Quantization
2.1 Total Parameters and Sparse Activation
According to the model’s public configuration files, the model has about 305B total parameters (305 billion), and the repository size is about 168GB. The counting methodology, such as whether the vision module or optimizer states are included, should follow the repository documentation. If treated as a dense model, this scale far exceeds what conventional hardware can carry, so the model uses a mixture-of-experts (MoE) architecture.
The same configuration shows that the model has 43 layers, 256 routed experts, and 1 shared expert. For each input token, the gating network selects 6 routed experts for computation. Sparse activation allows the model to retain a large parameter capacity while keeping the computation per inference within an acceptable range. The shared expert provides general features for all tokens, which helps inference stability.
2.2 FP4 and FP8 Mixed-Precision Quantization
The model’s weight size can be compressed to around 168GB mainly through asymmetric quantization:
- Expert weights use FP4. Expert weights account for most of the storage, and quantizing them to 4-bit floating point significantly reduces disk footprint and VRAM requirements.
- The remaining parts use FP8. Attention layers, normalization layers, and the gating network are more sensitive to precision, so they retain a higher bit width.
This scheme makes a tradeoff among size, speed, and precision. If the underlying hardware natively supports FP4 and FP8 computation, dequantization overhead can be reduced. If the hardware does not natively support them, inference frameworks usually need to provide dequantization or simulated computation paths; in that case, performance and VRAM usage should be measured in practice. Actual throughput depends on hardware, framework version, and batch size, and cannot be judged only by quantization bit width.
3. Vision Module: How Images Become Tokens
3.1 Vision Encoder Structure
The model is a multimodal version obtained by adding a vision module to a text-only base and continuing training. According to public information, its vision encoder uses a 32-layer Transformer with a hidden dimension of 1024. Images are split into 14×14 pixel patches, encoded and aligned, and then fed into the language model.
3.2 Visual Token Limit and Context Usage
The model specifies that a single image can be converted into at most 384 visual tokens. The total number of tokens for image-text input can be estimated as follows:
Total tokens ≈ text tokens + number of images × visual tokens per image (no more than 384 per image)
Every token in the context occupies KV cache. KV cache VRAM can be estimated as follows:
KV cache bytes ≈ 2 × layers × KV heads × head dimension × bytes per element × total tokens
Example: assume the model has 43 layers, 8 KV heads, and a head dimension of 128, and uses BF16 (2 bytes per element). In this case, each token occupies about 172KiB. When processing 4096 tokens, KV cache alone requires about 688MiB. The actual number of layers, KV heads, and head dimension should follow the model configuration. With concurrent requests, KV cache usage grows in proportion to the number of requests.
4. Deployment Considerations and Challenges
4.1 Low Precision Does Not Mean Low Configuration
FP4/FP8 quantization reduces weight size, but it does not mean the model can run easily on consumer-grade GPUs. Three things need to be checked before deployment:
- VRAM requirements: weights, KV cache, framework runtime, and activations all occupy VRAM together; weights are only one part.
- Parameter scope: the text-only version has been reported as having 13B active parameters, while the exact active parameter count for the vision version has not been published. When planning capacity, do not directly apply the number from the text-only version.
- Hardware and framework: confirm whether the hardware supports the required low-precision formats and whether the framework provides the corresponding loading and computation paths.
4.2 Minimal Deployment Workflow
Proceed in the following order, and move to the next step only after each step passes:
- Confirm hardware: record the GPU model, total VRAM, and driver version, and check the vendor documentation for low-precision support.
- Select an inference framework: consult the framework documentation and confirm which version supports the model architecture, MoE routing, and FP4/FP8 quantization formats.
- Prepare the environment: install CUDA, Python, and dependencies according to the framework requirements, and pin versions within the documented ranges.
- Obtain weights: download all shards and verify the file manifest and checksums. Missing shards will cause loading failure.
