Gemma4-31B-RBLN
compiled multimodal model for Rebellions NPU
2 min readupdated
This repository contains a ready-to-use precompiled artifact of the google/gemma-4-31B-it model (a multimodal model with support for image and text processing), optimized to run on Rebellions RBLN-CA25 hardware accelerators. The model has 31 billion parameters and runs at native bf16 precision without quantization. The solution is designed for deployment in specialized infrastructures using the optimum-rbln and vllm-rbln libraries, requiring a pool of 16 NPU devices. This optimization allows for efficient processing of requests with massive context length and batch processing.
Key features
- Base model: Built on
google/gemma-4-31B-itwith support for text and image input. - Hardware optimization: Precompiled using
rebel-compiler==0.12.0for 16 RBLN-CA25 chips. - Massive context: Maximum sequence length (
max_seq_len) is 262,144 tokens. - Batch processing: Supports decoder dynamic batches
[1, 2, 4, 8]and a batch size of up to 8.
What you can do
- Service deployment: Launch a high-performance request processing server using
vllm-rblnon a cluster of 16 NPUs. - Multimodal tasks: Process requests containing text and images (one image per prompt) using the built-in vision profile.
- Reasoning management: Use the built-in reasoning parser and control the model thinking mode via request parameters.
Example
vllm serve \
--max-num-seqs 8 \
--max-num-batched-tokens 128 \
--enable-chunked-prefill \
--no-enable-prefix-caching \
--enable-auto-tool-choice \
--tool-call-parser gemma4 \
--reasoning-parser gemma4Read more
DetailsNumber of devices: 16× RBLN-CA25 (the language part is distributed across 16 devices, the vision module on device zero)
Precision: bf16 weights and activations (no quantization)
Cache and attention:
flash_attn, hybrid cache (hybrid) with a window of 1024 and KV cache block size of 16,384License: in accordance with the Google Gemma Terms of Use










Comments