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

UI2Code_N

Date: 2026-11-15Commit: ef839d8Signed: 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.6GBUI2Code_Nsafetensorspermissive
FactsParams10.3BSize20.6 GBFormatssafetensorsTaskimage text to textLicenseMITFrom sourcepermissive
$ fw get zai-org/UI2Code_N
# manifest sha256 8d9bda65bd3e… · 20.6 GB · 14 files
$ fw verify ./UI2Code_N zai-org/UI2Code_N
From sourceHosted (signed)zai-org/UI2Code_NLast check: 2026-11-15 03:49 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-15
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-15 03:49 UTCpassed

Model card

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

UI2Code^N: A Visual Language Model for Test-Time Scalable Interactive UI-to-Code Generation#

Image: abs

UI2Code^N is a visual language foundation model trained through staged pretraining, fine-tuning, and reinforcement learning to achieve foundational improvements in multimodal coding, which unifies three key capabilities: UI-to-code generation, UI editing, and UI polishing. Instead of relying on single-turn paradigms that make little use of iterative visual feedback, UI2Code^N introduces an interactive UI-to-code framework that more accurately reflects real-world workflows and raises the upper bound of achievable performance.

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/zheny2751-dotcom/UI2Code-N/main/assets/example.png"
            },
            {
                "type": "text",
                "text": "Please generate the corresponding html code for the given UI screenshot."
            }
        ],
    }
]
processor = AutoProcessor.from_pretrained("zai-org/UI2Code_N")
model = AutoModelForImageTextToText.from_pretrained(
    pretrained_model_name_or_path="zai-org/UI2Code_N",
    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=16384)
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.

Citation#

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

@article{ui2coden2025,
    title   = {UI2Code$^{N}$: A Visual Language Model for Test-Time Scalable Interactive UI-to-Code Generation},
    author  = {Yang, Zhen and Hong, Wenyi and Xu, Mingde and Fan, Xinyue and Wang, Weihan and Gu, Xiaotao and Tang, Jie},
    journal = {arXiv preprint arXiv:2511.08195},
    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.01 KB12ec108eff9e5d5f4c4e37c969812881379e7e8855f071cf00afc282a6f57547
chat_template.jinja922 B847603d3ed14387a2b45c197f8d07ddee0f9938051549c727cbc894facfea78b
config.json1.52 KB193ac1bc9233f649f6c2ab1c694292f184a4c0944f94146d27940ab792981c33
generation_config.json239 Be9527bdf03e7d4971f9cacdbcf81a5fe04b10b64fc478bba6bf389cc0e597b72
model-00001-of-00004.safetensors5.30 GBf404923d81df4d7ca2b81532750ae9e68494decc00def261633226a2c70ae0aa
model-00002-of-00004.safetensors5.30 GBf02e3e8f99816c2ab17d38d3509ac34e2e5ca7d818ca67924234edf546b8039a
model-00003-of-00004.safetensors5.30 GB4dddaed1b7cb9dedb773a8548a29ca12e93946bc29381b77a8d41c66ea2b97d8
model-00004-of-00004.safetensors4.68 GBb49ba005afb1aaee3e6206892f6b857c6454b230240c2c3b9b70ae3942edf8f0
model.safetensors.index.json66.4 KBd1a77d5ca0b8fa2cb57e097e1d4087bbfcb86e85778ce59e17e5e2610bc6dd86
preprocessor_config.json364 Bd71bebc1307f2d1e38e87563b50faa78c72fd2e4093b5c69c756f12c444fec6a
tokenizer.json20.0 MB76ebeac0d8bd7879ead7b43c16b44981f277e47225de2bd7de9ae1a6cc664a8c
tokenizer_config.json4.79 KB468e400c12d54be1b1b0e008fa5ee9382c8c9ef29a5dd0b5093421ef261935ed
video_preprocessor_config.json365 B85d5ca37836f20a5edd11800e4380e731612946f8c7b70fba4d8f532fe752932
VersionsEach time the pinned upstream commit or file list changed in this repo. Newest first.
Upstream commitDateContents
ef839d8dbf pinned now2026-11-15 03:49 UTC14 files · 20.6 GB

Use it

$ fw get zai-org/UI2Code_N
# manifest sha256 8d9bda65bd3e… · 20.6 GB · 14 files
$ fw verify ./UI2Code_N zai-org/UI2Code_N
fw.pyChecks the signature and every sha256, tries each source in order, resumes.
$ python3 fw.py get https://freeweights.allternit.com/manifests/zai-org/UI2Code_N.json --dir ./UI2Code_N $ python3 fw.py verify ./UI2Code_N ./zai-org__UI2Code_N.json
hfThe Hugging Face CLI with one setting. Same repo id.
$ HF_ENDPOINT=https://freeweights.allternit.com hf download zai-org/UI2Code_N --revision ef839d8dbf31b8eea009547d03fceb3c9a045cfd --local-dir ./UI2Code_N
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/UI2Code_N", revision="ef839d8dbf31b8eea009547d03fceb3c9a045cfd") model = AutoModelForImageTextToText.from_pretrained("zai-org/UI2Code_N", revision="ef839d8dbf31b8eea009547d03fceb3c9a045cfd", device_map="auto")
vLLMServe an OpenAI-compatible API.
$ HF_ENDPOINT=https://freeweights.allternit.com vllm serve zai-org/UI2Code_N --revision ef839d8dbf31b8eea009547d03fceb3c9a045cfd

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-15
Text in
README.md
Text sha256
12ec108eff9e5d5f4c4e37c969812881379e7e8855f071cf00afc282a6f57547
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: UI2Code_NDate: 2026-11-15Commit: ef839d8Signed: 2DC28CC7B26A283B ✓
Upstream
zai-org/UI2Code_N
Pinned commit
ef839d8dbf31b8eea009547d03fceb3c9a045cfd
Manifest
UI2Code_N.json · .minisig
Manifest sha256
8d9bda65bd3ea87632aa135635baa1d74384a1be26695d757358482418c53958
Signature
minisign, Ed25519, key 2DC28CC7B26A283B
Created
2026-11-15 03:49 UTC
Generator
freeweights-manifest/0.1.0
Takedowns
None.

How to verify

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

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

Signed manifest
minisign, key 2DC28CC7B26A283B. UI2Code_N.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