Loading
Run it as it was trained: thinking off through the template's own switch (enable_thinking=False, which ends the user turn with /nothink and opens the answer with an empty <think></think> block), greedy decoding, no system prompt. The template writes nothing after an answer, so the rows were trained to end with <|endoftext|>, one of the four ids its generation config stops on. Needs transformers 5 (it was trained and read on 5.22.1) and peft 0.18 or newer. The processor is the base
model's; its files are kept in this repository.
import torchfrom peft import PeftModelfrom PIL import Imagefrom transformers import AutoModelForMultimodalLM, AutoProcessor processor = AutoProcessor.from_pretrained("AbstractPowered/lora-glm-4.6v-flash-think-symbolic-image")model = AutoModelForMultimodalLM.from_pretrained("zai-org/GLM-4.6V-Flash", dtype=torch.bfloat16, device_map="cuda")model = PeftModel.from_pretrained(model, "AbstractPowered/lora-glm-4.6v-flash-think-symbolic-image").merge_and_unload().eval() image = Image.open("picture.jpg").convert("RGB")prompt = ("Look at this picture and think it through in writing, a closer look; then write a caption and a prompt or tags, " "and the questions a careful looker would still ask, each as `question: what -> answer [record, chain or unknown]`.")messages = [{"role": "user", "content": [{"type": "image", "image": image}, {"type": "text", "text": prompt}]}]text = processor.apply_chat_template(messages, add_generation_prompt=True, tokenize=False, enable_thinking=False)inputs = processor(text=[text], images=[image], return_tensors="pt").to(model.device)out = model.generate(**inputs, max_new_tokens=800, do_sample=False)print(processor.batch_decode(out[:, inputs["input_ids"].shape[1]:], skip_special_tokens=True)[0])
The depth words: "a quick look" asks for a caption, "a closer look" for a caption and a prompt or tags, "a long look" for a
caption, a prompt, tags and a critique. It was also taught a shorter request, the chain and a caption only: "Look at this
picture and think it through in writing, a closer look, ending with a caption." For the lettering a picture shows, add after the
request: "Ensure you include visible text and the expression related to it into the rows."
(not a request it was taught; its measured effect is below). Version 1 loads from its tag, with revision="v1" in both
from_pretrained calls of the adapter repository; its processor files there are the base model's current ones, the same as at the root. The parser, the scorer and the trainer are in
qwen-symbolic-thinking, and so are the reads that write every answer
below (the reading, keeping the base model, the medium term, and the answers on the lettering pictures). From its version
0.1.69 it also counts the lettering tables below from those answers (python -m qwen_symbolic_thinking.reads, run on
the records a training run keeps in its project's own repository); the counts of lettering in the rows it was taught were made
separately, from those rows, not with the package.
The reads
Every read is on pictures and requests that no training row of it used; the reading, the medium term and the lettering are
read on the same pictures as Lucia 9B v1.2 and Ulisse 12B v1.2, the versions 1.2 of the two models its version 1 card compared it with. Version 1.2
was trained once, with one seed.
The reading, on the 60 pictures and 40 specifications version 1 was read on, against the dataset's own rows for them:
Table with columns: read, GLM-4.6V-Flash v1.2, GLM-4.6V-Flash v1, Lucia 9B v1.2, Ulisse 12B v1.2| read | GLM-4.6V-Flash v1.2 | GLM-4.6V-Flash v1 | Lucia 9B v1.2 | Ulisse 12B v1.2 |
|---|
| rows in the reading's form (at least one named step, and a caption), pictures / specifications | 1.00 / 1.00 | 1.00 / 1.00 | 1.00 / 1.00 | 1.00 / 1.00 |
| said / backed, whole rows | 0.22 / 0.25 | 0.18 / 0.26 | 0.19 / 0.26 | 0.25 / 0.21 |
Keeping the base model, on 434 held-out ordinary requests the base model answered itself (200 questions about a picture, 35 text requests, 199 requests for a detailed description of a picture). The 35 text requests come from a file of text requests Qwen3.5-9B and Qwen3.5-4B wrote, filtered by rule (dropping those that stop mid-sentence, point at material they do not carry, only set a role or a scene, or run under 12 characters), which kept 41 of its 274 held requests and 530 of its 2,722 training ones. 40 of the held ones were asked, none of them among the requests it was trained on; 35 are kept and 5 were dropped when the base model's answer reached the token limit, so the kept requests lean toward those with shorter answers.
The distance is read over all 434; the form and the ending over the 235 questions and text requests. The base model
writes its answers afresh in each read, so its own ending share is given beside each version's. Lucia 9B v1.2 and Ulisse 12B v1.2 are each read
against their own base model's answers, so their keeping reads are on their cards, not here:
Table with columns: read, GLM-4.6V-Flash v1.2, GLM-4.6V-Flash v1| read | GLM-4.6V-Flash v1.2 | GLM-4.6V-Flash v1 |
|---|
| distance of its next-token choices from the base model's on its own answers (KL per token, nats; the base model 0) | 0.073 | 1.13 |
| the same as a perplexity ratio (the base model 1.00) | 1.04 | 1.87 |
| answers written in the reading's form (the base model 0.00) | 0.00 | 0.99 |
| answers that end within 512 new tokens | 0.97 | 0.91 |
| the base model's answers that end within 512 new tokens, in the same read | 0.95 | 0.95 |
The 199 requests for a detailed description are where it is farthest from the base model: 0.098 nats a token on its own detailed descriptions (version 1: 0.76). Its answers to them were not written out in this read, so their length is not known. Asked instead for a
reading of each of those pictures, it writes 165 new tokens on average (version 1: 156),
where the base model, given the same request, writes a description with question lines among it, 232 tokens on average (2 of the 199 run to the 800 allowed); its readings hold 0.12 of the content words of the base model's detailed descriptions, version
1's 0.11, while the base model's own descriptions overlap the same reference by 0.30.
The medium term, on 500 National Gallery of Art pictures (100 each of drawings, prints, paintings, photographs and objects):
Table with columns: read, GLM-4.6V-Flash v1.2, GLM-4.6V-Flash v1, Lucia 9B v1.2, Ulisse 12B v1.2| read | GLM-4.6V-Flash v1.2 | GLM-4.6V-Flash v1 | Lucia 9B v1.2 | Ulisse 12B v1.2 |
|---|
| the prompt line opens with the right kind of picture | 160 of 500 | 415 of 500 | 165 of 500 | 159 of 500 |
| the right kind named anywhere in the prompt line | 328 of 500 | not read | 334 of 500 | 322 of 500 |
Lettering, on 300 held-out COCO 2017 photographs whose lettering COCO-Text marks readable; the shares are over the 245 in
whose lettering a screen found no person's name, credit or web address. A row "names the lettering" when a word the picture
shows stands in it as a whole word; the chance row counts the words of another picture's lettering instead. "With the lettering
sentence" is the closer-look request followed by the sentence given under Loading. Version 1 may have been taught some of these
photographs: they were held out of the rows version 1.2 was taught, and version 1's rows were not checked against them.
Table with columns: read, GLM-4.6V-Flash, GLM-4.6V-Flash v1.2, GLM-4.6V-Flash v1, Lucia 9B v1.2, Ulisse 12B v1.2| read | GLM-4.6V-Flash | GLM-4.6V-Flash v1.2 | GLM-4.6V-Flash v1 | Lucia 9B v1.2 | Ulisse 12B v1.2 |
|---|
| a closer look: the answer names the lettering | 0.86 | 0.24 | 0.33 | 0.20 | 0.31 |
| the same by chance | 0.13 | 0.11 | 0.10 | 0.12 | 0.11 |
| a long look: the answer names the lettering | 0.89 | 0.49 | 0.38 | 0.40 | 0.53 |
| the same by chance | 0.16 | 0.16 | 0.12 | 0.16 | 0.17 |
| a closer look with the lettering sentence: the answer names the lettering | 0.92 | 0.31 | not read | 0.33 | 0.68 |
| the same by chance | 0.12 | 0.11 | not read | 0.10 | 0.12 |
rows that write the lettering out (a say thought or a quoted line), of 300: a closer look / with the lettering sentence | its own text | 3 / 49 | 31 / not read | 1 / 68 | 29 / 214 |
| asked what the lettering says (243 of the 245 pictures): the answer names it | 0.87 | 0.89 | not read | 0.91 (of all 234) | 0.89 (of all 225) |
| the same by chance | not read | 0.07 | not read | 0.12 (of all 234) | 0.10 (of all 225) |
The base model does not write the reading's form: given the reading's request it writes a description with question lines among it (the middle answer holds 6), none of its answers in the reading's form. On 200 COCO 2017 photographs COCO-Text marks as holding no lettering, GLM-4.6V-Flash v1.2 wrote lettering for none of them with the request alone and for 1 with the lettering sentence; that photograph was looked at, and the photograph shows lettering COCO-Text does not mark: the drawn "POW!", the word it wrote. The base model's own rows put a line in quotes on one of them, with the request alone and with the sentence, each time a line describing the picture ("Golden hour on the water: a peaceful sunset with boats and a glowing horizon." and "Golden hour on the water: a peaceful boat journey at sunset."), not lettering.
What this says. Version 1.2 holds the reading's form as version 1, Lucia 9B v1.2 and Ulisse 12B v1.2 do. Against version 1, it says about as much of what each picture's captions hold and backs about as much of it (0.22 / 0.25 against 0.18 / 0.26), against Lucia 9B v1.2 it says about as much and backs about as much (0.19 / 0.26), and against Ulisse 12B v1.2 it says about as much and backs about as much (0.25 / 0.21), one seed each; the
spread this read shows between seeds of one recipe, seen at 4B, is 0.03 to 0.05. It stays near the base model on its other
answers (0.073 nats a token), and of the questions and text requests it answers none in the reading's form; version 1, taught without the keeping
objective, stays far from it (1.13 nats a token): 0.99 of its answers take the reading's form, and the middle one of its answers by length runs about 1.85 times the length of the base model's answer to the same request, counted in characters (version 1.2's: 0.99). It names the kind of a museum picture at the opening of the
prompt line for 160 of the 500 (paintings 50 of 100, prints 35, drawings 34, photographs 32, objects 9; Lucia 9B v1.2: 165 in all, Ulisse 12B v1.2: 159);
for the medium of museum pictures version 1 is still the stronger choice (415 of the 500): it was taught
17,385 museum rows whose prompt line opens with the catalog's medium, rows written by a model trained on
Claude-written rows, so version 1.2 has none of them.
Lettering is where it falls short at a closer look: its readings seldom carry the words a picture shows, though asked directly what the lettering says, for 243 of the 245 pictures, it names it about as often as the base model does (0.89 of them against 0.87).
Version 1's closer look names the words a picture shows more often than version 1.2's does (0.33 of the pictures against
0.24: 81 pictures against 59, one seed each, on pictures version 1 may have been taught, as said
above); its long look names them for 119 of the 245 pictures, 26 more than version 1's 93 (its answers to the same request; none of them is deep enough to count as a long look), 22 more than Lucia 9B v1.2's 97 and 10 fewer than Ulisse 12B v1.2's 129, one seed each. The rows it was taught carry lettering: 17,457 of them hold a say thought or a quoted
line, nearly all on museum pictures (13,730) and DOCCI photographs (3,724), and 11,669 of
them quote it. A say thought, the step for the words a picture shows, stands in about a third of the museum rows it was taught,
at every depth, but in only 8% of the closer looks at DOCCI photographs (19% of the long looks),
and its rows on COCO photographs were written without the photograph, so none of them quotes its lettering. With the lettering sentence more of its rows write the lettering out (49 of the 300 pictures, against 3 without it), and the share of closer looks that name a shown word rises (0.31 against 0.24).
Of those 49, 45 quote at least one word the picture shows, while 3 quote none of the words COCO-Text marks on it, and in the other one the check counts no quote: it quotes a line of the picture's lettering longer than the 80 characters the check reads; those 3 were not looked at by hand, and COCO-Text misses some real lettering.
How it was trained
Table | |
|---|
| base | zai-org/GLM-4.6V-Flash, bf16; pictures at the processor's default: about 1,369 picture tokens for a square 1,024-pixel picture (14-pixel patches merged 2 x 2); its vision encoder frozen, outside the adapter |
| adapter | LoRA rank 32, alpha 64, dropout 0.05 on the language model's q, k, v and o projections, the fused gate-up projection and the down projection of all 40 layers; 95.2 M trainable parameters, saved in fp32 (version 1's shape) |
| rows | 91,138 rows: 71,045 about a picture (National Gallery of Art 38,308, DOCCI 32,001, COCO 2017 722, Localized Narratives (COCO 2017 photographs) 14), each taught in two forms (the whole row, and the chain with its caption), and 20,093 drawn specifications, taught as whole rows; 162,183 examples |
| depth | about a picture: 18,474 quick looks, 24,424 closer looks, 28,147 long looks; drawn specifications: 10,829 quick, 7,161 closer, 2,103 long |
| writers | gpt-6-luna (OpenAI) 84,615, deepseek-flash (DeepSeek) 5,809, gemini-4-argon (Google) 643, gemini-3.8-flash (Google) 71; no Claude model |
| keeping the base | beside every micro-batch of 8 training examples, 4 general requests, from 3,141 general requests answered by GLM-4.6V-Flash itself for this version (2,724 questions from a fixed bank of everyday requests about the training pictures, and 417 text requests Qwen3.5-9B and Qwen3.5-4B wrote, the first 500 training requests of the cleaned file described under the reads less the 83 whose answers reached the token limit; Xu et al., "Magpie", arXiv 2406.08464); the loss adds KL(base ‖ tuned) over those answers at weight 1, the base side computed with the adapter switched off |
| held out | the 60 pictures and 40 specifications the reading above is read on, 140 more photographs drawn from the training sources for the held-out requests, the 500 pictures of the medium read, 200 museum pictures (50 each from the Art Institute of Chicago, the Cleveland Museum of Art, the Metropolitan Museum of Art and the National Gallery of Art), and the 300 pictures of the lettering read, which the dataset's release leaves out |
| optimizer | plain Adam 2e-4 (version 1's rate, and the rate of Lucia v1.2's recipe), cosine schedule, 3% warmup, batch 8 x 2, one epoch (10,137 steps, 13.59 s a step, 2,296 minutes, at most 55.8 GB of the card's memory), the loss on the answer only, seed 20261030; one pass over two machines, each one RTX PRO 6000: the run resumed once from its saved state, at step 5,940 |
| length | max_len 2,560, as its version 1 (its pictures take more tokens); no example of the 162,183 collated was cut (the longest 1,894 tokens) |
| thinking and turn end | on by default in the base model; off in training and at inference through the template's switch (enable_thinking=False); the rows end with `< |
| record | qwen-symbolic-thinking v0.1.73, run_queue("glm46v_v12") from notebooks/glm46v_v12.ipynb, in the repository at that tag: the notebook as it ran, reading its inputs from the project's own repository, which is private; the run's full log is train_summary.json beside the weights |
To train GLM-4.6V-Flash v1.2 yourself, the package's setup guide builds a lane for it in a project repository of your own (python -m qwen_symbolic_thinking.lines glm46v apache --project-repo <your-name>/<your-project> --out notebooks writes its queue and its notebook). That lane reads 11 input files from your project repository, and all of them are in the project's public record repository: eight as this run read them, and three in a public form. The two files of pictures the general requests ask about keep each item's picture fields only, which is all that step reads, so a lane draws the same pictures; the cleaned text requests leave out one request that the public rows release's word rule holds back, so a lane built from the public files answers one different request among its 500. Its settings are in this card and in train_summary.json. Every step, with the settings, the time and memory on a G4 and the reads that check the result, is in this repository's TRAINING.md.
Versions
Table with columns: version, where, tag| version | where | tag |
|---|
| GLM-4.6V-Flash v1.2 | the root of this repository | v1.2 |
| GLM-4.6V-Flash v1 | this repository at its tag | v1 |
The lookers
The Lucia line is Qwen3.5 and starts at AbstractPhil/qwen3.5-9b-think-symbolic-image;
the Ulisse line is Gemma 4. The five families below them (North-Micro-Vision, GLM-4.6V-Flash, Molmo2-O-7B, Ministral 3 14B and
Phi-4-reasoning-vision-15B) are trained under Lucia v1's recipe at her learning rate (each has its own vision encoder, frozen
under the adapter), North-Micro-Vision's and GLM-4.6V-Flash's versions 1.2 under Lucia v1.2's at the same rate, and all are read on the same sets.
License
MIT, the base model's license. The rows are the Apache-2.0 part of release 5 of
thought-symbolic-image-recaptioned. The
pictures it was trained on: DOCCI (images and annotations by Google LLC, CC BY 4.0), COCO 2017 photographs whose Flickr authors gave them the Attribution license or that carry no known copyright restrictions (the annotations CC BY 4.0, the COCO Consortium; the Localized Narratives narrations of some of them CC BY 4.0, Pont-Tuset et al.), and National Gallery
of Art open-access images (CC0). The drawn specifications come from no outside source: they are sampled from the vocabulary of
the companion dataset thought-symbolic-image-captions
(Apache-2.0). Each row about a real picture names it in the dataset's picture field: its source, its id, where it can be had
and its license.