Beers-Base
an all-in-one multimodal model based on Qwen3-VL 4B with no separate VAE
2 min readupdated
The ERNIE Research team has released the Stage 3 base checkpoint from their Beers / Cheers V2 pipeline. Built on the Qwen3-VL 4B architecture, this unified multimodal model (~4.97B parameters) handles text-to-image generation, image editing, visual Q&A, and text chat all in one package. Its standout architectural feature is pixel-space diffusion using flow matching (a generation method that smoothly transports noise into an image), eliminating the need for a separate VAE (variational autoencoder for image compression). It is a solid fit for researchers and developers looking for a compact, all-in-one model with high-resolution support right through the standard Transformers interface.
Key features
- Four modes in one model: supports text-to-image generation, instruction-based image editing, image understanding, and standard text generation/chat.
- No separate VAE: operates directly in pixel space via flow matching with Euler steps, keeping the inference pipeline simple.
- High resolution out of the box: output dimensions are defined in grid cells with a 16x multiplier—a standard 128×128 grid produces a 2048×2048 pixel image.
- Flexible generation controls: supports negative prompts, standard CFG (classifier-free guidance), a dedicated
image_cfg_scaleto balance fidelity to the source image during edits, and akappaparameter for the noise schedule.
What you can do
- Generate and edit images in 2K: create illustrations or tweak details in existing photos (such as recoloring the sky or changing the lighting) using the
generate_imageandedit_imagemethods. - Build a multimodal assistant: plug the model into a Python script or bot so it can analyze user-uploaded images via
understandand reply with text or newly generated graphics. - Use it as a base for fine-tuning: released as a Stage 3 Base checkpoint under the Apache 2.0 license, ready to be adapted to custom tasks with
transformers.
Example
import torch
from transformers import AutoModel
from torchvision.utils import save_image
model = AutoModel.from_pretrained("/path/to/Beers-Base", trust_remote_code=True, torch_dtype=torch.bfloat16, device_map="auto").eval()
image = model.generate_image(prompt="A small red cabin beside a quiet lake", height=128, width=128, num_steps=75, shift=3.0, cfg_scale=4.0, kappa=0.35, seed=123)
save_image(image, "generated.png")
Read more
DetailsBase architecture: Qwen3-VL 4B (4.97B parameters, sharded
safetensors weights in bfloat16).Requirements: CUDA-enabled PyTorch environment; loading requires the
trust_remote_code=True flag (uses custom code in modeling_cheers_v2.py).Limitations: grid
height and width values must be even numbers; output quality depends on sampling settings (75 steps by default, with shift=3.0 for generation and 6.0 for editing).License: Apache License 2.0 (ERNIE Research, 2026).










Comments