alt.freeweights.glm / cogvlm-base-490-hf
From: zai-org <huggingface.co/zai-org>Newsgroups: alt.freeweights.glmSubject:

cogvlm-base-490-hf

Date: 2026-11-15Commit: 3d5a9b5Signed: 2DC28CC7B26A283B ✓

Text generation model with 17.6B parameters. Safetensors weights, 35.3 GB in all. Published by zai-org under Apache-2.0.

17.6B params35.3GBcogvlm-base-490-hfsafetensorspermissive
FactsParams17.6BSize35.3 GBFormatssafetensorsTasktext generationLicenseApache-2.0From sourcepermissive
$ fw get zai-org/cogvlm-base-490-hf
# manifest sha256 66738a3db88b… · 35.3 GB · 17 files
$ fw verify ./cogvlm-base-490-hf zai-org/cogvlm-base-490-hf
From sourceHosted (signed)zai-org/cogvlm-base-490-hfLast check: 2026-11-15 03:51 UTC

Get help: custom fine-tune or private deploy. We review your setup before we quote.

Works with

Overview

Size
35.3 GB
Weights
35.3 GB (safetensors)
Parameters
17.6B
Formats
safetensors
Task
text generation
License
Apache-2.0 (permissive)
Files
17, each with a sha256
Publisher
zai-org
Added
2026-11-15
Section
alt.freeweights.glm
Lineage

Original release from the publisher.

Where these bytes come from
Publisher at the pinned commit→You

Sources are tried in order. A file counts only when its size and sha256 match the manifest. Sources are checked when you ask for them, not on a timer.

Sources
BadgeHostLast checkResult
From sourcehuggingface.co2026-11-15 03:51 UTCpassed

Model card

From the publisher at commit 3d5a9b5. Shown as plain text with links; images open at the publisher.

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.

Image: 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.

Image: image

许可(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}
}

Files

17 files · 35.3 GBWeights 35.3 GB (safetensors). Sizes and sha256 from the signed manifest.
Hide all 17 files with their sha256
FileSizesha256
.gitattributes1.52 KB11ad7efa24975ee4b0c3c3a38ed18737f0658a5f75a0a96787b576a78a023361
README.md4.15 KB26f3dbaee76456a34e820c078caba25bb0d86faa279874c956b91b88c3ed6624
config.json993 B18179fb4be268fbbabfcc97d363be5d382610bb4b5306b6eec39554128e88d67
configuration_cogvlm.py1.51 KBa30b92835cb79a57ec6b4fa2c533993056ca0ac71053575e635ed64393eba3d9
generation_config.json132 Bee3e5c066bd362ffef25af83a590e87022b58cde1864f3d85779000f62eed594
model-00001-of-00008.safetensors4.94 GB9bae7ad427de1d384610cb51ebb49a62612452eb25c4c3b11dfd74420dfaa526
model-00002-of-00008.safetensors4.95 GBdd620e934aabc590bb2dc0bce8681739a9f08c2fa939885aeb80258575697fb5
model-00003-of-00008.safetensors4.95 GBd29f7b16fbe52bfb99969a9ff6e35e0c87b70fc2d2fc880cc697913a2c0dbbbd
model-00004-of-00008.safetensors4.99 GBfe8d4b77588d179ea01b0b7c6a738eb726742bed8c357bc9f4d3ccf69ac67bb3
model-00005-of-00008.safetensors4.99 GB6ed3cb6b3446edc32473590757c21c825226c4d24d2cd406f577b904e089946a
model-00006-of-00008.safetensors4.97 GB03991a93227d4784edf14892ff9216c1cc935cf0af0d4b7b19b14b1e3f46db52
model-00007-of-00008.safetensors4.96 GB1cbbb7cb1dc8ce10f0a99b0d9966c692bdcd6eb8bdacb8d2a45448f06d713e31
model-00008-of-00008.safetensors533 MB73e043dce6a730889c948add179e59d991c0dd99cf882222c5ad57c25e1e8b3e
model.safetensors.index.json116 KB5cd329bd2bd797c18d9fbffb6814a27a68935164125f0c3030018041ffcdaa72
modeling_cogvlm.py34.5 KB8172be683187803d785331277e217597c0eb037f87e56249fde955c04332d869
util.py19.0 KB390811eb63be829b07cd2bdef09bdc31851f93163b24e5a837d16b6757b7e85d
visual.py5.38 KBd8ba367c364ccf3fda6d5c15b177b593c6375f034c432ac4cd5d339e225c39a0
VersionsEach time the pinned upstream commit or file list changed in this repo. Newest first.
Upstream commitDateContents
3d5a9b5e1b pinned now2026-11-15 03:51 UTC17 files · 35.3 GB

Use it

$ fw get zai-org/cogvlm-base-490-hf
# manifest sha256 66738a3db88b… · 35.3 GB · 17 files
$ fw verify ./cogvlm-base-490-hf zai-org/cogvlm-base-490-hf
fw.pyChecks the signature and every sha256, tries each source in order, resumes.
$ python3 fw.py get https://freeweights.allternit.com/manifests/zai-org/cogvlm-base-490-hf.json --dir ./cogvlm-base-490-hf $ python3 fw.py verify ./cogvlm-base-490-hf ./zai-org__cogvlm-base-490-hf.json
hfThe Hugging Face CLI with one setting. Same repo id.
$ HF_ENDPOINT=https://freeweights.allternit.com hf download zai-org/cogvlm-base-490-hf --revision 3d5a9b5e1b3fed87b1bcfc41973b2466b0ba1714 --local-dir ./cogvlm-base-490-hf
transformersLoad the weights in Python.
import os os.environ["HF_ENDPOINT"] = "https://freeweights.allternit.com" from transformers import AutoModelForCausalLM, AutoTokenizer tok = AutoTokenizer.from_pretrained("zai-org/cogvlm-base-490-hf", revision="3d5a9b5e1b3fed87b1bcfc41973b2466b0ba1714") model = AutoModelForCausalLM.from_pretrained("zai-org/cogvlm-base-490-hf", revision="3d5a9b5e1b3fed87b1bcfc41973b2466b0ba1714", device_map="auto")
vLLMServe an OpenAI-compatible API.
$ HF_ENDPOINT=https://freeweights.allternit.com vllm serve zai-org/cogvlm-base-490-hf --revision 3d5a9b5e1b3fed87b1bcfc41973b2466b0ba1714

License

Name
Apache License 2.0
Id
Apache-2.0
Class
Permissive
Redistribution
yes
Listing
Hosted (signed)
Decided
License as declared by the publisher. No person read it. 2026-11-15
Text in
README.md
Text sha256
26f3dbaee76456a34e820c078caba25bb0d86faa279874c956b91b88c3ed6624
Terms gate
No extra terms beyond the license.

Read the license text

Licenses are checked against the license table. A custom license passes only after a person reads it.

Provenance

From: zai-org <huggingface.co/zai-org>Newsgroups: alt.freeweights.glmSubject: cogvlm-base-490-hfDate: 2026-11-15Commit: 3d5a9b5Signed: 2DC28CC7B26A283B ✓
Upstream
zai-org/cogvlm-base-490-hf
Pinned commit
3d5a9b5e1b3fed87b1bcfc41973b2466b0ba1714
Manifest
cogvlm-base-490-hf.json · .minisig
Manifest sha256
66738a3db88b210371d961f05471fcfcee1174a12d70b82fe33a4fd65b96080d
Signature
minisign, Ed25519, key 2DC28CC7B26A283B
Created
2026-11-15 03:51 UTC
Generator
freeweights-manifest/0.1.0
Takedowns
None.

How to verify

$ curl -O https://freeweights.allternit.com/manifests/zai-org/cogvlm-base-490-hf.json $ curl -O https://freeweights.allternit.com/manifests/zai-org/cogvlm-base-490-hf.json.minisig $ minisign -Vm cogvlm-base-490-hf.json -P RWQ7KGqyx4zCLXtUFOqvfv8L3g+8fpKJ1FsuxPyOYMF+4KufbUxKq1Oq $ shasum -a 256 <file> # compare with the Files tab

A manifest whose signature fails must be rejected. A file whose size or sha256 does not match must be discarded. Verify a download

Model tree

No related models in this catalog.Nothing here lists this model as its parent, and it names no parent.
Get it
Download
$ HF_ENDPOINT=https://freeweights.allternit.com hf download zai-org/cogvlm-base-490-hf
Open in Freeweights Studio

Pull, verify and run it in the Allternit app on Desktop, web or phone.

Signed manifest
minisign, key 2DC28CC7B26A283B. cogvlm-base-490-hf.json. Provenance. Takedown history: none.
From: bartowski <huggingface.co/bartowski>Subject: arcee-ai_GLM-4-32B-Base-32K-GGUF
From: ggml-org <huggingface.co/ggml-org>Subject: AutoGLM-Phone-9B-GGUF
From: zai-org <huggingface.co/zai-org>Subject: cogagent-chat-hf
From: zai-org <huggingface.co/zai-org>Subject: CogView3-Plus-3B
From: laion <huggingface.co/laion>Subject: dev_set_part1_10k_glm_4_7_traces_jupiter
From: laion <huggingface.co/laion>Subject: dev_set_part1_10k_glm_4_7_traces_jupiter_cleaned