zai-org / cogvlm-base-490-hf

huggingface.co
Total runs: 290
24-hour runs: 7
7-day runs: 37
30-day runs: 148
Model's Last Updated: November 20 2023
text-generation

Introduction of cogvlm-base-490-hf

Model Details of cogvlm-base-490-hf

CogVLM

CogVLM 是一个强大的开源视觉语言模型(VLM)。CogVLM-17B 拥有 100 亿视觉参数和 70 亿语言参数,在 10 个经典跨模态基准测试上取得了 SOTA 性能,包括 NoCaps、Flicker30k captioning、RefCOCO、RefCOCO+、RefCOCOg、Visual7W、GQA、ScienceQA、VizWiz VQA 和 TDIUC,而在 VQAv2、OKVQA、TextVQA、COCO captioning 等方面则排名第二,超越或与 PaLI-X 55B 持平。您可以通过线上 demo 体验 CogVLM 多模态对话。

CogVLM is a powerful open-source visual language model ( VLM ). CogVLM-17B has 10 billion vision parameters and 7 billion language parameters. CogVLM-17B achieves state-of-the-art performance on 10 classic cross-modal benchmarks, including NoCaps, Flicker30k captioning, RefCOCO, RefCOCO+, RefCOCOg, Visual7W, GQA, ScienceQA, VizWiz VQA and TDIUC, and rank the 2nd on VQAv2, OKVQA, TextVQA, COCO captioning, etc., surpassing or matching PaLI-X 55B . CogVLM can also chat with you about images.

img

快速开始(Qiuckstart)

import torch
import requests
from PIL import Image
from transformers import AutoModelForCausalLM, LlamaTokenizer

tokenizer = LlamaTokenizer.from_pretrained('lmsys/vicuna-7b-v1.5')
model = AutoModelForCausalLM.from_pretrained(
    'THUDM/cogvlm-base-490-hf',
    torch_dtype=torch.bfloat16,
    low_cpu_mem_usage=True,
    trust_remote_code=True
).to('cuda').eval()

image = Image.open(requests.get('https://github.com/THUDM/CogVLM/blob/main/examples/1.png?raw=true', stream=True).raw).convert('RGB')
inputs = model.build_conversation_input_ids(tokenizer, query='', images=[image])
inputs = {
    'input_ids': inputs['input_ids'].unsqueeze(0).to('cuda'),
    'token_type_ids': inputs['token_type_ids'].unsqueeze(0).to('cuda'),
    'attention_mask': inputs['attention_mask'].unsqueeze(0).to('cuda'),
    'images': [[inputs['images'][0].to('cuda').to(torch.bfloat16)]],
}
gen_kwargs = {"max_length": 2048, "do_sample": False}

with torch.no_grad():
    outputs = model.generate(**inputs, **gen_kwargs)
    outputs = outputs[:, inputs['input_ids'].shape[1]:]
    print(tokenizer.decode(outputs[0]))

方法(Method)

CogVLM 模型包括四个基本组件:视觉变换器(ViT)编码器、MLP适配器、预训练的大型语言模型(GPT)和一个 视觉专家模块 。更多细节请参见 Paper

CogVLM model comprises four fundamental components: a vision transformer (ViT) encoder, an MLP adapter, a pretrained large language model (GPT), and a visual expert module . See Paper for more details.

许可(License)

此存储库中的代码是根据 Apache-2.0 许可 开放源码,而使用 CogVLM 模型权重必须遵循 模型许可

The code in this repository is open source under the Apache-2.0 license , while the use of the CogVLM model weights must comply with the Model License .

引用(Citation)

If you find our work helpful, please consider citing the following papers

@article{wang2023cogvlm,
      title={CogVLM: Visual Expert for Pretrained Language Models}, 
      author={Weihan Wang and Qingsong Lv and Wenmeng Yu and Wenyi Hong and Ji Qi and Yan Wang and Junhui Ji and Zhuoyi Yang and Lei Zhao and Xixuan Song and Jiazheng Xu and Bin Xu and Juanzi Li and Yuxiao Dong and Ming Ding and Jie Tang},
      year={2023},
      eprint={2311.03079},
      archivePrefix={arXiv},
      primaryClass={cs.CV}
}

Runs of zai-org cogvlm-base-490-hf on huggingface.co

290
Total runs
7
24-hour runs
13
3-day runs
37
7-day runs
148
30-day runs

More Information About cogvlm-base-490-hf huggingface.co Model

More cogvlm-base-490-hf license Visit here:

https://choosealicense.com/licenses/apache-2.0

cogvlm-base-490-hf huggingface.co

cogvlm-base-490-hf huggingface.co is an AI model on huggingface.co that provides cogvlm-base-490-hf's model effect (), which can be used instantly with this zai-org cogvlm-base-490-hf model. huggingface.co supports a free trial of the cogvlm-base-490-hf model, and also provides paid use of the cogvlm-base-490-hf. Support call cogvlm-base-490-hf model through api, including Node.js, Python, http.

cogvlm-base-490-hf huggingface.co Url

https://huggingface.co/zai-org/cogvlm-base-490-hf

zai-org cogvlm-base-490-hf online free

cogvlm-base-490-hf huggingface.co is an online trial and call api platform, which integrates cogvlm-base-490-hf's modeling effects, including api services, and provides a free online trial of cogvlm-base-490-hf, you can try cogvlm-base-490-hf online for free by clicking the link below.

zai-org cogvlm-base-490-hf online free url in huggingface.co:

https://huggingface.co/zai-org/cogvlm-base-490-hf

cogvlm-base-490-hf install

cogvlm-base-490-hf is an open source model from GitHub that offers a free installation service, and any user can find cogvlm-base-490-hf on GitHub to install. At the same time, huggingface.co provides the effect of cogvlm-base-490-hf install, users can directly use cogvlm-base-490-hf installed effect in huggingface.co for debugging and trial. It also supports api for free installation.

cogvlm-base-490-hf install url in huggingface.co:

https://huggingface.co/zai-org/cogvlm-base-490-hf

Url of cogvlm-base-490-hf

cogvlm-base-490-hf huggingface.co Url

Provider of cogvlm-base-490-hf huggingface.co

zai-org
ORGANIZATIONS

Other API from zai-org

huggingface.co

Total runs: 1.9M
Run Growth: -1.3M
Growth Rate: -66.15%
Updated:September 11 2026
huggingface.co

Total runs: 1.9M
Run Growth: -153.1K
Growth Rate: -8.19%
Updated:January 29 2026
huggingface.co

Total runs: 1.8M
Run Growth: 1.6M
Growth Rate: 100.00%
Updated:September 07 2026
huggingface.co

Total runs: 1.3M
Run Growth: -706.1K
Growth Rate: -53.41%
Updated:September 01 2026
huggingface.co

Total runs: 947.1K
Run Growth: -1.8M
Growth Rate: -187.25%
Updated:September 01 2026
huggingface.co

Total runs: 712.6K
Run Growth: 660.2K
Growth Rate: 98.68%
Updated:September 04 2026
huggingface.co

Total runs: 445.2K
Run Growth: -19.8K
Growth Rate: -4.45%
Updated:August 04 2024
huggingface.co

Total runs: 238.4K
Run Growth: -226.6K
Growth Rate: -90.56%
Updated:April 16 2026
huggingface.co

Total runs: 175.4K
Run Growth: -833.5K
Growth Rate: -410.62%
Updated:April 05 2026
huggingface.co

Total runs: 98.4K
Run Growth: -151.6K
Growth Rate: -156.36%
Updated:August 11 2025
huggingface.co

Total runs: 91.7K
Run Growth: 97
Growth Rate: 0.12%
Updated:May 13 2026
huggingface.co

Total runs: 90.6K
Run Growth: 12.7K
Growth Rate: 15.16%
Updated:January 29 2026
huggingface.co

Total runs: 87.3K
Run Growth: -1.9K
Growth Rate: -2.15%
Updated:March 13 2025
huggingface.co

Total runs: 82.5K
Run Growth: -41.2K
Growth Rate: -50.94%
Updated:August 11 2025
huggingface.co

Total runs: 77.0K
Run Growth: -74.8K
Growth Rate: -96.73%
Updated:December 10 2025
huggingface.co

Total runs: 76.3K
Run Growth: -8.1K
Growth Rate: -10.65%
Updated:December 05 2024
huggingface.co

Total runs: 56.8K
Run Growth: -65.8K
Growth Rate: -111.71%
Updated:August 11 2026
huggingface.co

Total runs: 44.8K
Run Growth: -76.8K
Growth Rate: -170.84%
Updated:October 25 2025
huggingface.co

Total runs: 22.2K
Run Growth: 4.4K
Growth Rate: 20.03%
Updated:November 23 2024
huggingface.co

Total runs: 20.4K
Run Growth: -57.9K
Growth Rate: -282.96%
Updated:March 03 2025
huggingface.co

Total runs: 20.1K
Run Growth: -20.2K
Growth Rate: -100.35%
Updated:April 14 2025
huggingface.co

Total runs: 18.2K
Run Growth: -9.7K
Growth Rate: -53.16%
Updated:September 30 2025
huggingface.co

Total runs: 16.0K
Run Growth: -2.3K
Growth Rate: -14.12%
Updated:November 23 2024
huggingface.co

Total runs: 14.2K
Run Growth: 13.5K
Growth Rate: 96.55%
Updated:September 04 2026
huggingface.co

Total runs: 13.7K
Run Growth: -14.0K
Growth Rate: -99.89%
Updated:December 23 2025
huggingface.co

Total runs: 13.1K
Run Growth: 2.4K
Growth Rate: 18.60%
Updated:December 09 2025
huggingface.co

Total runs: 9.4K
Run Growth: 207
Growth Rate: 2.11%
Updated:January 15 2026
huggingface.co

Total runs: 7.9K
Run Growth: -1.7K
Growth Rate: -21.73%
Updated:October 16 2025
huggingface.co

Total runs: 7.0K
Run Growth: -6.8K
Growth Rate: -96.42%
Updated:April 22 2025
huggingface.co

Total runs: 6.8K
Run Growth: -1.9K
Growth Rate: -27.58%
Updated:March 11 2025
huggingface.co

Total runs: 5.3K
Run Growth: -2.1K
Growth Rate: -40.20%
Updated:January 27 2025
huggingface.co

Total runs: 4.3K
Run Growth: -4.9K
Growth Rate: -126.66%
Updated:December 09 2025
huggingface.co

Total runs: 3.1K
Run Growth: -1.6K
Growth Rate: -56.33%
Updated:October 25 2025
huggingface.co

Total runs: 3.0K
Run Growth: 1.0K
Growth Rate: 33.16%
Updated:August 04 2024
huggingface.co

Total runs: 1.8K
Run Growth: 930
Growth Rate: 50.82%
Updated:August 12 2025
huggingface.co

Total runs: 678
Run Growth: 282
Growth Rate: 41.53%
Updated:March 02 2023
huggingface.co

Total runs: 576
Run Growth: -56
Growth Rate: -9.54%
Updated:August 11 2025
huggingface.co

Total runs: 439
Run Growth: -1.2K
Growth Rate: -266.28%
Updated:January 02 2025
huggingface.co

Total runs: 419
Run Growth: 242
Growth Rate: 57.76%
Updated:October 20 2023
huggingface.co

Total runs: 346
Run Growth: 86
Growth Rate: 24.86%
Updated:December 10 2024
huggingface.co

Total runs: 326
Run Growth: -403
Growth Rate: -125.55%
Updated:October 25 2025
huggingface.co

Total runs: 297
Run Growth: 130
Growth Rate: 43.33%
Updated:March 02 2023
huggingface.co

Total runs: 278
Run Growth: 68
Growth Rate: 24.46%
Updated:November 20 2023
huggingface.co

Total runs: 258
Run Growth: 111
Growth Rate: 43.02%
Updated:October 20 2023
huggingface.co

Total runs: 249
Run Growth: 105
Growth Rate: 42.17%
Updated:October 20 2023