Loading
Run him the way every Ulisse is run: thinking off through the template's own switch, greedy decoding, no system prompt (the
row's form is learned). Needs transformers 5.10 or newer (Gemma 4) 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-gemma-4-12b-think-symbolic-image")model = AutoModelForMultimodalLM.from_pretrained("google/gemma-4-12B-it", dtype=torch.bfloat16, device_map="cuda")model = PeftModel.from_pretrained(model, "AbstractPowered/lora-gemma-4-12b-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. He 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 he was taught; its measured effect is below). Version 1 loads from its tag, with revision="ulisse-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 Ulisse line ships adapters, no full fine-tune. 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 he 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 his used; the reading, the medium term and the lettering are
read on the same pictures as Ulisse E4B v1.2. 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, Ulisse 12B v1.2, Ulisse 12B v1, Ulisse E4B v1.2| read | Ulisse 12B v1.2 | Ulisse 12B v1 | Ulisse E4B 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 |
| said / backed, whole rows | 0.25 / 0.21 | 0.18 / 0.27 | 0.23 / 0.20 |
Keeping the base model, on 549 held-out ordinary requests the base model answered itself (197 questions about a picture, 176 text requests, 176 requests for a detailed description of a picture). The 176 text requests come from 200 that Qwen3.5-9B and Qwen3.5-4B wrote for their own held-out sets (98 by Qwen3.5-9B, 97 by Qwen3.5-4B, 5 by both), none of them among the requests he was trained on, answered here by the base model; 176 of its answers are kept, and 24 were dropped when they reached the token limit, so the kept requests lean toward those with shorter answers.
The distance is read over all 549; the form and the ending over the 373 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. Ulisse E4B v1.2 is read against
its own base model's answers, so its keeping read is on its card, not here:
Table with columns: read, Ulisse 12B v1.2, Ulisse 12B v1| read | Ulisse 12B v1.2 | Ulisse 12B v1 |
|---|
| distance of his next-token choices from the base model's on its own answers (KL per token, nats; the base model 0) | 0.034 | 0.44 |
| the same as a perplexity ratio (the base model 1.00) | 1.00 | 1.25 |
| answers written in the reading's form (the base model 0.00) | 0.00 | 0.13 |
| answers that end within 512 new tokens | 0.84 | 0.90 |
| the base model's answers that end within 512 new tokens, in the same read | 0.86 | 0.86 |
He ends slightly fewer of these answers than the base model in the same read: 314 of the 373 (0.842) against its 319 (0.855). The bar set for this release before he was read allows 2 points under the base model, and he is within it.
He is farthest from the base model on the 197 questions about a picture (0.048 nats a token; version 1: 0.64); on the 176 requests for a detailed description he is 0.043 nats a token from the base model's own detailed descriptions (version 1: 0.45). His 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, he writes 181 new tokens on average (version 1: 164),
where the base model, given the same request, writes a free description of 334 tokens on average (4 of the 176 run to the 800 allowed); his readings hold 0.22 of the content words of the base model's detailed descriptions, version
1's 0.17, while the base model's own free descriptions overlap the same reference by 0.44.
The medium term, on 500 National Gallery of Art pictures (100 each of drawings, prints, paintings, photographs and objects):
Table with columns: read, Ulisse 12B v1.2, Ulisse 12B v1, Ulisse E4B v1.2| read | Ulisse 12B v1.2 | Ulisse 12B v1 | Ulisse E4B v1.2 |
|---|
| the prompt line opens with the right kind of picture | 159 of 500 | 409 of 500 | 145 of 500 |
| the right kind named anywhere in the prompt line | 322 of 500 | not read | 311 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 he was taught, and version 1's rows were not checked against them.
Table with columns: read, gemma-4-12B-it, Ulisse 12B v1.2, Ulisse 12B v1, Ulisse E4B v1.2| read | gemma-4-12B-it | Ulisse 12B v1.2 | Ulisse 12B v1 | Ulisse E4B v1.2 |
|---|
| a closer look: the answer names the lettering | 0.84 | 0.31 | 0.33 | 0.37 |
| the same by chance | 0.16 | 0.11 | 0.10 | 0.11 |
| a long look: the answer names the lettering | 0.86 | 0.53 | 0.31 | 0.60 |
| the same by chance | 0.15 | 0.17 | 0.11 | 0.15 |
| a closer look with the lettering sentence: the answer names the lettering | 0.90 | 0.68 | not read | 0.67 |
| the same by chance | 0.14 | 0.12 | not read | 0.11 |
rows that write the lettering out (a say thought or a quoted line), of 300: a closer look / with the lettering sentence | free text | 29 / 214 | 41 / not read | 56 / 178 |
| asked what the lettering says (225 of the 245 pictures): the answer names it | 0.86 | 0.89 | not read | 0.93 (of all 245) |
| the same by chance | not read | 0.10 | not read | 0.09 (of all 245) |
The base model does not write the reading's form: given the reading's request it writes a free description. On 200 COCO 2017 photographs COCO-Text marks as holding no lettering, he wrote lettering for none of them with the request alone and for 18 with the lettering sentence; each of those 18 photographs was looked at, and each shows lettering COCO-Text does not mark. He got it right on eight: a shop window whose lettering a man's head partly hides, its letters in view A, P, P and A, which he wrote as "APPA"; a shop awning lettered "ALL WORLD BOOKS" beside a palm trunk that hides the start of the name; a monitor whose bezel reads "DELL"; the drawn "POW!"; an umbrella whose lettering the top edge cuts off, as he says; two banners reading "DONNAY"; a photographer's copyright line in its lower right corner; and a small signature in its lower right corner, as he says. He wrote words the photograph does not show on four: a green highway sign reading "EXITS 23B-A", "Worcester", "Framingham" and "1 MILE", which he wrote as "Welcome / Pennsylvania"; a T-shirt printed with a two-line saying about a snake, which he wrote as "Don't let Stop Chorus / stop your music from being heard"; a black handlebar bag lettered in gold, which he wrote as "Trek", not the lettering in view; and a tombstone prop reading "RIP", and no sign reading "HAPPY BIRTHDAY", which he wrote. He wrote words the letters in view do not settle on six: a scooter whose front carries a small badge and a script logo its basket half hides, which he wrote as "HONDA" though the letters in view do not settle the word; a fire truck whose door carries a small gold crest with curved lettering, and a hose stenciled with a short marking upside down to the camera, which he wrote as "FIRE" and "10501" though the letters in view do not settle the words; a shuttle bus whose front plate is too small to read, which he wrote as "RENAULT" though the letters in view do not settle the word; a knife whose blade carries a small engraved word and emblem, which he wrote as "SHARP" though the letters in view do not settle the word; a shirt whose chest badge carries small lettering, which he wrote as "USA" though the letters in view do not settle the word; and a T-shirt whose lettering an arm half hides, which he wrote as "K" and "LANE" (the one word in view whole is "CAMP"). Ulisse E4B v1.2 wrote lettering for 1 with the request alone and for 4 with the sentence, five photographs, each looked at too.
What this says. Version 1.2 holds the reading's form as version 1 and Ulisse E4B v1.2 do. Against version 1, he says somewhat more of what each picture's captions hold and backs somewhat less of it (0.25 / 0.21 against 0.18 / 0.27), and against Ulisse E4B v1.2 he says about as much and backs about as much (0.23 / 0.20), one seed each; the
spread this read shows between seeds of one recipe, seen at 4B, is 0.03 to 0.05. He stays near the base model on its other answers
(0.034 nats a token), and of the questions and text requests he answers none in the reading's form; version 1, taught without the keeping objective, stays
far from it (0.44 nats a token): 0.13 of its answers take the reading's form, and the middle one of its answers by length runs about 0.85 times the length of the base model's answer to the same request, counted in characters (his: 1.00). He names the kind of a museum picture at the opening of the prompt line for
159 of the 500 (paintings 51 of 100, prints 39, drawings 38, photographs 28, objects 3; Ulisse E4B v1.2: 145 in all); for the medium of museum pictures
version 1 is still the stronger choice (409 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 he falls short at a closer look: his readings seldom carry the words a picture shows, though asked directly what the lettering says, for 225 of the 245 pictures, he names it a little more often than the base model does (0.89 of them against 0.86).
Version 1's closer look names the words a picture shows about as often as his does (0.33 of the pictures against his 0.31: 80 pictures against 77, one seed each, on pictures
version 1 may have been taught, as said above); his long look names them for 129 of the 245 pictures, 53 more than version 1's 76 and 18 fewer than Ulisse E4B v1.2's 147, one seed each. The rows he 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 he was taught, at every depth, but in only 8% of the closer looks at DOCCI
photographs (19% of the long looks), and his rows on COCO photographs were written without the photograph, so none
of them quotes its lettering. With the lettering sentence more of his rows write the lettering out (214 of the 300 pictures, against 29 without it), and the share of closer looks that name a shown word rises (0.68 against 0.31). Of those 214, 172 quote at least one word the picture shows, while 35 quote none of the words COCO-Text marks on it, and in the other 7 the check counts no quote: 4 quote a line of the picture's lettering longer than the 80 characters the check reads, one quotes words in Japanese, which the check does not read, and 2 quote no word of three letters or more; those 35 were not looked at by hand, and COCO-Text misses some real lettering. Checked against another picture's lettering instead, the same quotes match it in two of them.
How he was trained
Table | |
|---|
| base | google/gemma-4-12B-it, bf16, 280 image tokens a picture (the model's default budget); the model has no separate vision encoder: the picture's patches are projected and enter the language model directly, so the early language-model layers read the picture |
| adapter | LoRA rank 32, alpha 64, dropout 0.05 on the language model's q, k, v, o, gate, up and down projections of all 48 layers (the value projection exists on 40 of them; 131.1 M trainable parameters, saved in fp32) |
| 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 4,460 general requests answered by gemma-4-12B-it itself for this version (2,692 questions from a fixed bank of everyday requests about the training pictures, and 1,768 text requests Qwen3.5-9B and Qwen3.5-4B wrote, 873 by Qwen3.5-4B, 870 by Qwen3.5-9B and 25 by both, the ones of 2,000 asked whose answers ended within 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 5e-5 (a quarter of the 2e-4 of Ulisse E4B v1.2, as version 1 took a quarter of its recipe's), cosine schedule, 3% warmup, batch 8 x 2, one epoch (10,137 steps, 9.04 s a step, 1,528 minutes, at most 61.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 8,590 |
| thinking | off in training and at inference through the template's own switch (enable_thinking=False), as for every Ulisse |
| record | qwen-symbolic-thinking v0.1.70 trained him (run_queue("ulisse_v12_g12b")); the notebook that runs it, notebooks/ulisse_v12_g12b.ipynb, is in the repository from v0.1.71 (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 Ulisse 12B v1.2 yourself, the package's setup guide builds a lane for him in a project repository of your own (python -m qwen_symbolic_thinking.lines g12b apache --project-repo <your-name>/<your-project> --out notebooks writes its queue and its notebook). Every file that lane reads is in the project's public record repository (three of them in a public form, which its README describes) or is made in the lane's own first steps. 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 |
|---|
| Ulisse 12B v1.2 | the root of this repository | ulisse-v1.2 |
| Ulisse 12B v1 | this repository at its tag | ulisse-v1 (the tag v1 marks the same release before the line was named) |
The family
The Ulisse line is Gemma 4; its name is Dante's voyager who sails out to see (Inferno XXVI), as Lucia is the lady of light and sight. Version 1 of both sizes was trained under Lucia v1's recipe (the 12B at a quarter of its learning rate, 5e-5, the one change its encoder-free picture pathway needs), versions 1.2 and 1.2-nc of the E4B under Lucia v1.2's and v1.2-nc's, and versions 1.2 and 1.2-nc of the 12B under Lucia v1.2's and v1.2-nc's at that same quarter rate; both sizes are read on the same held-out pictures as the Lucia family (Qwen3.5: 9B, 4B, 2B, 0.8B), whose cards start at AbstractPhil/qwen3.5-9b-think-symbolic-image. The Lucia family's non-commercial repositories are qwen3.5-9b-think-symbolic-image-nc (v1.2-nc; v1.1-nc at its tag), qwen3.5-4b-think-symbolic-image-nc (v1.2-nc; v1.1-nc at its tag), qwen3.5-2b-think-symbolic-image-nc (v1.2-nc) and qwen3.5-0.8b-think-symbolic-image-nc (v1.2-nc).
License
Apache-2.0, the base model's license. The rows are the Apache-2.0 part of release 5 of
thought-symbolic-image-recaptioned. The
pictures he 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.