From: zai-org <huggingface.co/zai-org>Newsgroups: alt.freeweights.glmSubject:

Glyph

Date: 2026-11-14Commit: 074a072Signed: 2DC28CC7B26A283B ✓

Image text to text model with 10.3B parameters. Safetensors weights, 20.6 GB in all. Published by zai-org under MIT.

10.3B params20.6GBGlyphsafetensorspermissive
FactsParams10.3BSize20.6 GBFormatssafetensorsTaskimage text to textLicenseMITFrom sourcepermissive
$ fw get zai-org/Glyph
# manifest sha256 fe0f53362ba7… · 20.6 GB · 14 files
$ fw verify ./Glyph zai-org/Glyph
From sourceHosted (signed)zai-org/GlyphLast check: 2026-11-14 21:26 UTC

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

Fine-tune of GLM-4.1V-9B-Base.

Works with

Overview

Size
20.6 GB
Weights
20.6 GB (safetensors)
Parameters
10.3B
Formats
safetensors
Task
image text to text
License
MIT (permissive)
Files
14, each with a sha256
Publisher
zai-org
Added
2026-11-14
Section
alt.freeweights.glm
Lineage

Original release from the publisher.

Base model: zai-org/GLM-4.1V-9B-Base

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-14 21:26 UTCpassed

Model card

From the publisher at commit 074a072. Shown as plain text with links; images open at the publisher.

Glyph: Scaling Context Windows via Visual-Text Compression#

Image: abs

Glyph is a framework for scaling the context length through visual-text compression. Instead of extending token-based context windows, Glyph renders long textual sequences into images and processes them using vision–language models (VLMs). This design transforms the challenge of long-context modeling into a multimodal problem, substantially reducing computational and memory costs while preserving semantic information.

Backbone Model#

Our model is built on GLM-4.1V-9B-Base.

Quick Inference#

This is a simple example of running single-image inference using the transformers library. First, install the transformers library:

pip install transformers>=4.57.1

Then, run the following code:

from transformers import AutoProcessor, AutoModelForImageTextToText
import torch

messages = [
    {
        "role": "user",
        "content": [
            {
                "type": "image",
                "url": "https://raw.githubusercontent.com/thu-coai/Glyph/main/assets/Little_Red_Riding_Hood.png"
            },
            {
                "type": "text",
                "text": "Who pretended to be Little Red Riding Hood's grandmother"
            }
        ],
    }
]
processor = AutoProcessor.from_pretrained("zai-org/Glyph")
model = AutoModelForImageTextToText.from_pretrained(
    pretrained_model_name_or_path="zai-org/Glyph",
    torch_dtype=torch.bfloat16,
    device_map="auto",
)
inputs = processor.apply_chat_template(
    messages,
    tokenize=True,
    add_generation_prompt=True,
    return_dict=True,
    return_tensors="pt"
).to(model.device)
generated_ids = model.generate(**inputs, max_new_tokens=8192)
output_text = processor.decode(generated_ids[0][inputs["input_ids"].shape[1]:], skip_special_tokens=False)
print(output_text)

See our Github Repo for more detailed usage.

Known Limitations#

  • Sensitivity to rendering parameters: Glyph’s performance can vary with rendering settings such as resolution, font, and spacing. Since our search procedure adopts a fixed rendering configuration during post-training, the model may not generalize well to unseen or substantially different rendering styles.
  • OCR-related challenges: Recognizing fine-grained or rare alphanumeric strings (e.g., UUIDs) remains difficult for visual-language models, especially with ultra-long inputs, sometimes leading to minor character misclassification.
  • Limited generalization: The training of Glyph mainly targets long-context understanding, and its capability on broader tasks is yet to be studied.

Citation#

If you find our model useful in your work, please cite it with:

@article{cheng2025glyphscalingcontextwindows,
    title={Glyph: Scaling Context Windows via Visual-Text Compression}, 
    author={Jiale Cheng and Yusen Liu and Xinyu Zhang and Yulin Fei and Wenyi Hong and Ruiliang Lyu and Weihan Wang and Zhe Su and Xiaotao Gu and Xiao Liu and Yushi Bai and Jie Tang and Hongning Wang and Minlie Huang},
    journal={arXiv preprint arXiv:2510.17800},
    year={2025}
}

Files

14 files · 20.6 GBWeights 20.6 GB (safetensors). Sizes and sha256 from the signed manifest.
Hide all 14 files with their sha256
FileSizesha256
.gitattributes1.57 KB34448b82c17d60fec9b65b1f093c115ddbaadc04beb1b0140b6bfed2e012a930
README.md3.59 KB0becab10ebc8dd096301a8a93caa010760ebd8141319c37a991be1a7e38caae9
chat_template.jinja3.86 KB999121db064241176a762275d08f382b79cc8e59c1ed956a1cc19242a1225394
config.json1.51 KBa4d14da68c5485a469d199a6bb65a5a85bfe23f6dccc8e0c4ab553529a63c426
generation_config.json177 B3c942bd4df90b7981877b00312722cdc1ea0496a5602429831ad211af74bbd66
model-00001-of-00004.safetensors5.30 GB223fc32f05b5685220e108fcd6151bae30bb65f07bf251dc66de82e0627f0a04
model-00002-of-00004.safetensors5.30 GB3f4d2c3438f9a2ae5fca8bea7ab0f2d500c5be93743fa714c0c8e0d1a37d1e4d
model-00003-of-00004.safetensors5.30 GB273acff9f0770970467863743caf16461988247f0aa56f0b0bcd103df47265e3
model-00004-of-00004.safetensors4.68 GBf03a46a5f9d49290712ca4659b5eb906ac402f202f4f6de3bf471beff3663a8c
model.safetensors.index.json66.4 KB22990bfd5fad46d05c624ecab6da262c5b68b2bcaeefbbcbd5a536acc35c9024
preprocessor_config.json365 Bd6767491d13daae7d5f8467d6eba355cbeeaac22bfcb8cbe4ac09280a5a5bd03
tokenizer.json20.0 MB9340665016419c825c4bdabbcc9acc43b7ca2c68ce142724afa829abb1be5efd
tokenizer_config.json7.31 KB27d01309c0ae7b5edb6511daabfcbf772b60e21c65cbb74d059acc76796f7897
video_preprocessor_config.json365 B85d5ca37836f20a5edd11800e4380e731612946f8c7b70fba4d8f532fe752932
VersionsEach time the pinned upstream commit or file list changed in this repo. Newest first.
Upstream commitDateContents
074a0727f3 pinned now manifest updated, same commit2026-11-14 21:26 UTC14 files · 20.6 GB
074a0727f32026-11-14 21:26 UTC14 files · 20.6 GB

Use it

$ fw get zai-org/Glyph
# manifest sha256 fe0f53362ba7… · 20.6 GB · 14 files
$ fw verify ./Glyph zai-org/Glyph
fw.pyChecks the signature and every sha256, tries each source in order, resumes.
$ python3 fw.py get https://freeweights.allternit.com/manifests/zai-org/Glyph.json --dir ./Glyph $ python3 fw.py verify ./Glyph ./zai-org__Glyph.json
hfThe Hugging Face CLI with one setting. Same repo id.
$ HF_ENDPOINT=https://freeweights.allternit.com hf download zai-org/Glyph --revision 074a0727f3c5fe18c02d303ffd8515ae65da12a7 --local-dir ./Glyph
transformersLoad the weights in Python.
import os os.environ["HF_ENDPOINT"] = "https://freeweights.allternit.com" from transformers import AutoModelForImageTextToText, AutoProcessor processor = AutoProcessor.from_pretrained("zai-org/Glyph", revision="074a0727f3c5fe18c02d303ffd8515ae65da12a7") model = AutoModelForImageTextToText.from_pretrained("zai-org/Glyph", revision="074a0727f3c5fe18c02d303ffd8515ae65da12a7", device_map="auto")
vLLMServe an OpenAI-compatible API.
$ HF_ENDPOINT=https://freeweights.allternit.com vllm serve zai-org/Glyph --revision 074a0727f3c5fe18c02d303ffd8515ae65da12a7

License

Name
MIT License
Id
MIT
Class
Permissive
Redistribution
yes
Listing
Hosted (signed)
Decided
License as declared by the publisher. No person read it. 2026-11-14
Text in
README.md
Text sha256
0becab10ebc8dd096301a8a93caa010760ebd8141319c37a991be1a7e38caae9
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: GlyphDate: 2026-11-14Commit: 074a072Signed: 2DC28CC7B26A283B ✓
Upstream
zai-org/Glyph
Pinned commit
074a0727f3c5fe18c02d303ffd8515ae65da12a7
Manifest
Glyph.json · .minisig
Manifest sha256
fe0f53362ba77d84545af7c70419101f8d312e772d0e2f2c02c198b00d159d89
Signature
minisign, Ed25519, key 2DC28CC7B26A283B
Created
2026-11-14 21:26 UTC
Generator
freeweights-manifest/0.1.0
Takedowns
None.

How to verify

$ curl -O https://freeweights.allternit.com/manifests/zai-org/Glyph.json $ curl -O https://freeweights.allternit.com/manifests/zai-org/Glyph.json.minisig $ minisign -Vm Glyph.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

Parent

zai-org/GLM-4.1V-9B-Base · this model is a finetune of it

No model in the catalog names this one as its parent.

Get it
Download
$ HF_ENDPOINT=https://freeweights.allternit.com hf download zai-org/Glyph
Open in Freeweights Studio

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

Signed manifest
minisign, key 2DC28CC7B26A283B. Glyph.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: zai-org <huggingface.co/zai-org>Subject: cogvlm-base-490-hf
From: laion <huggingface.co/laion>Subject: dev_set_part1_10k_glm_4_7_traces_jupiter