VisCPM
is a family of open-source large multimodal models, which support multimodal conversational capabilities (
VisCPM-Chat
model) and text-to-image generation capabilities (
VisCPM-Paint
model) in both Chinese and English, achieving state-of-the-art peformance among Chinese open-source multimodal models.
VisCPM
is trained based on the large language model
CPM-Bee
with 10B parameters, fusing visual encoder (Q-Former) and visual decoder (Diffusion-UNet) to support visual inputs and outputs. Thanks to the good bilingual capability of CPM-Bee,
VisCPM
can be pre-trained with English multimodal data only and well generalize to achieve promising Chinese multimodal capabilities.
>>> from transformers import AutoModel, AutoTokenizer, AutoImageProcessor
>>> from PIL import Image
>>> tokenizer = AutoTokenizer.from_pretrained('openbmb/VisCPM-Chat', trust_remote_code=True)
>>> processor = AutoImageProcessor.from_pretrained('openbmb/VisCPM-Chat', trust_remote_code=True)
>>> model = AutoModel.from_pretrained('openbmb/VisCPM-Chat', trust_remote_code=True).to('cuda')
>>> data = [{
>>> 'context': '',
>>> 'question': 'describe this image in detail.',
>>> 'image': tokenizer.unk_token * model.query_num,
>>> '<ans>': ''>>> }]
>>> image = Image.open('case.jpg')
>>> result = model.generate(data, tokenizer, processor, image)
>>> print(result[0]['<ans>'])
这幅图片显示了一群热气球在天空中飞行。这些热气球漂浮在不同的地方,包括山脉、城市和乡村地区。
Runs of openbmb VisCPM-Chat on huggingface.co
886
Total runs
-278
24-hour runs
-845
3-day runs
-834
7-day runs
492
30-day runs
More Information About VisCPM-Chat huggingface.co Model
VisCPM-Chat huggingface.co
VisCPM-Chat huggingface.co is an AI model on huggingface.co that provides VisCPM-Chat's model effect (), which can be used instantly with this openbmb VisCPM-Chat model. huggingface.co supports a free trial of the VisCPM-Chat model, and also provides paid use of the VisCPM-Chat. Support call VisCPM-Chat model through api, including Node.js, Python, http.
VisCPM-Chat huggingface.co is an online trial and call api platform, which integrates VisCPM-Chat's modeling effects, including api services, and provides a free online trial of VisCPM-Chat, you can try VisCPM-Chat online for free by clicking the link below.
openbmb VisCPM-Chat online free url in huggingface.co:
VisCPM-Chat is an open source model from GitHub that offers a free installation service, and any user can find VisCPM-Chat on GitHub to install. At the same time, huggingface.co provides the effect of VisCPM-Chat install, users can directly use VisCPM-Chat installed effect in huggingface.co for debugging and trial. It also supports api for free installation.