gemma4¶
Model type |
|
Class |
|
Task |
|
Source |
|
Description¶
Unified Gemma4 multimodal model (3- or 4-model split).
Builds three or four separate ONNX models depending on whether the config includes an audio sub-config:
Always produced:
decoder: Gemma4 text decoder takinginputs_embedsvision_encoder: SigLIP-style encoder + projectorembedding: scaled word embedding + multimodal feature fusion
Added when config.audio is not None:
audio_encoder: Conformer audio encoder + projection to text hidden size
Covers all Gemma4 variants:
Vision-language (26B-A4B, 31B):
audio=NoneAny-to-Any (E2B-it, E4B-it):
audio=Gemma4AudioConfig(...)
Registered as gemma4 (and gemma4_any_to_any for back-compat).
Usage¶
mobius build --model <MODEL_ID> output_dir/
from mobius import build
model = build("<MODEL_ID>")