SuperAPI AI Directory

VisCPM-10B

VisCPM is an open-source series of multimodal large models, including VisCPM-Chat, which supports Chinese-English bilingual multimodal dialogue, and VisCPM-Paint, which supports Chinese-English bilingual text-to-image generation. The models are trained based on the 10-billion-parameter large language model CPM-Bee (10B), integrating a visual encoder (Q-Former) and a visual decoder (Diffusion-UNet), and achieve the best level among Chinese multimodal open-source models. VisCPM-Chat can conduct Chinese-English bilingual multimodal dialogue about images, and VisCPM-Paint supports Chinese-English bilingual text-to-image generation. The models require a GPU with more than 40GB of memory on a single card to run.

Open website

About this tool

VisCPM is an open-source series of multimodal large models that supports Chinese-English bilingual multimodal dialogue capabilities (the VisCPM-Chat model) and text-to-image generation capabilities (the VisCPM-Paint model), achieving the best level among Chinese multimodal open-source models. VisCPM is trained based on the 10-billion-parameter large language model CPM-Bee (10B), integrating a visual encoder (Q-Former) and a visual decoder (Diffusion-UNet) to support the input and output of visual signals. Thanks to the excellent bilingual capabilities of the CPM-Bee base, VisCPM can generalize to excellent Chinese multimodal capabilities through pre-training on English multimodal data alone.

VisCPM-Chat supports Chinese-English bilingual multimodal dialogue about images. The model uses Q-Former as the visual encoder, uses CPM-Bee (10B) as the base language interaction model, and fuses the vision and language models through a language modeling training objective. Model training includes two stages: pre-training and instruction fine-tuning. Pre-training uses about 100M high-quality English image-text pair data (including CC3M, CC12M, COCO, Visual Genome, Laion, etc.), keeps the language model parameters fixed, and updates only some Q-Former parameters to support efficient alignment of large-scale visual-language representations; instruction fine-tuning uses LLaVA-150K English instruction fine-tuning data, mixed with correspondingly translated Chinese data, and updates all model parameters to align the model's multimodal foundational capabilities with user usage intentions. Research found that even if only English instruction data is used for instruction fine-tuning, the model can understand Chinese questions but can only answer in English; further adding a small amount of Chinese translation data can align the model's reply language with the user's question language. Evaluated on the LLaVA English test set and the translated Chinese test set, VisCPM-Chat achieved the best average performance in Chinese multimodal capabilities, performed excellently in general-domain dialogue and complex reasoning, and also demonstrated good English multimodal capabilities.

VisCPM-Paint supports Chinese-English bilingual text-to-image generation. The model uses CPM-Bee (10B) as the text encoder, uses UNet as the image decoder, and fuses the language and vision models through a diffusion model training objective. During training, the language model parameters always remain fixed. The visual decoder is initialized with the UNet parameters of Stable Diffusion 2.1 and is fused with the language model by gradually unfreezing key bridging parameters: first training the mapping of text representations to the visual model'slinear layer, and then further unfreezing the cross-attention layers of the UNet. The model was trained on LAION 2B English image-text pair data. Similar to VisCPM-Chat, VisCPM-Paint can generalize to good Chinese text-to-image generation capabilities through training on English image-text pairs alone, achieving the best results among Chinese open-source models. By further adding 20M cleaned native Chinese image-text pair data and 120M image-text pair data translated into Chinese, the model's Chinese text-to-image generation capabilities can be further improved. 30,000 images were sampled on MSCOCO, and FID (Fréchet Inception Distance) and Clip Score were calculated; the former is used to evaluate the quality of the generated images, and the latter is used to evaluate the degree of match between the generated images and the input.

VisCPM requires a GPU with more than 40GB of memory on a single card to run, and the official team states that a more memory-saving inference method will be updated as soon as possible.