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-e4b-think-symbolic-image")model = AutoModelForMultimodalLM.from_pretrained("google/gemma-4-E4B-it", dtype=torch.bfloat16, device_map="cuda")model = PeftModel.from_pretrained(model, "AbstractPowered/lora-gemma-4-e4b-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 of its day. 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. 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 E4B v1.2, Ulisse E4B v1| read | Ulisse E4B v1.2 | Ulisse E4B v1 |
|---|
| rows in the reading's form (at least one named step, and a caption), pictures / specifications | 1.00 / 1.00 | 1.00 / 1.00 |
| said / backed, whole rows | 0.23 / 0.20 | 0.17 / 0.28 |
Keeping the base model, on 555 held-out ordinary requests the base model answered itself (191 questions about a picture, 166 text requests, 198 requests for a detailed description of a picture). The 166 text requests are not ones the base model wrote: asked to write a request itself, it mostly goes on to answer it within the same turn (of the 7,232 it tried to write for his ordinary requests, 6,397 never closed). They come from 200 requests 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), answered here by the base model; 166 of its answers are kept, and 34 were dropped when they reached the token limit, so the kept requests lean toward those with shorter answers. The distance
is read over all 555; the form and the ending over the 357 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:
Table with columns: read, Ulisse E4B v1.2, Ulisse E4B v1| read | Ulisse E4B v1.2 | Ulisse E4B 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.072 | 0.70 |
| the same as a perplexity ratio (the base model 1.00) | 1.09 | 1.46 |
| answers written in the reading's form (the base model 0.00) | 0.00 | 0.17 |
| answers that end within 512 new tokens | 0.93 | 0.96 |
| the base model's answers that end within 512 new tokens, in the same read | 0.91 | 0.91 |
The 198 requests for a detailed description are where he is farthest from the base model: 0.091 nats a token
on its own detailed descriptions (version 1: 0.68). 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 179 new tokens on average
(version 1: 162), where the base model, given the same request, writes 395 tokens on average, 1 of its 198 answers in the reading's form (0 of the 198 run to the 800 allowed); his readings hold 0.11 of the
content words of the base model's detailed descriptions, version 1's 0.089, and the base model's answers to the same request 0.40 of them.
The medium term, on 500 National Gallery of Art pictures (100 each of drawings, prints, paintings, photographs and objects):
Table with columns: read, Ulisse E4B v1.2, Ulisse E4B v1| read | Ulisse E4B v1.2 | Ulisse E4B v1 |
|---|
| the prompt line opens with the right kind of picture | 145 of 500 | 406 of 500 |
| the right kind named anywhere in the prompt line | 311 of 500 | not read |
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-E4B-it, Ulisse E4B v1.2, Ulisse E4B v1| read | gemma-4-E4B-it | Ulisse E4B v1.2 | Ulisse E4B v1 |
|---|
| a closer look: the answer names the lettering | 0.88 | 0.37 | 0.30 |
| the same by chance | 0.18 | 0.11 | 0.12 |
| a long look: the answer names the lettering | 0.88 | 0.60 | 0.34 |
| the same by chance | 0.16 | 0.15 | 0.13 |
| a closer look with the lettering sentence: the answer names the lettering | 0.95 | 0.67 | not read |
| the same by chance | 0.16 | 0.11 | not read |
rows that write the lettering out (a say thought or a quoted line), of 300: a closer look / with the lettering sentence | 4 / 21 | 56 / 178 | 31 / not read |
| asked what the lettering says (245 of the 245 pictures): the answer names it | 0.92 | 0.93 | not read |
| the same by chance | not read | 0.09 | not read |
Given the reading's request, the base model already writes the reading's form (at least one named step, and a caption) for 0 of its 300 answers at a closer look, 0 at a long look and 0 with the lettering sentence; whole rows, with every part the request asks for, 0, 0 and 0. On 200 COCO 2017
photographs COCO-Text marks as holding no lettering, he wrote lettering for 1 with the request alone and for
4 with the lettering sentence; each of those five photographs was looked at, and each shows lettering COCO-Text does not mark: a tombstone prop reading "RIP", two banners reading "DONNAY", the drawn "POW!", a wine box reading "CABERNET SAUVIGNON", which he wrote as "CABINET", and a T-shirt whose lettering an arm half hides, which he wrote as "OKLAHOMA" though the letters in view do not settle the word.
What this says. Version 1.2 holds the reading's form as version 1 does. Against version 1, he says somewhat more of what each
picture's captions hold and backs somewhat less of it (0.23 / 0.20 against 0.17 / 0.28), with one seed each; the
spread this read shows between seeds of one recipe, seen at 4B, is 0.03 to 0.05. Lucia 4B v1.2, the same recipe on Qwen3.5-4B,
reads 0.21 / 0.26 on the same pictures. He stays near the base model on its other answers (0.072 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.70
nats a token), and its higher ending share (0.96 against 0.93) comes with short answers in the reading's form: 0.17 of its answers take that form, and half of all its answers run under 0.69 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 145 of the
500 (paintings 54 of 100, prints 34, drawings 28, photographs 24, objects 5; Lucia 4B v1.2: 150 in all); for the medium of museum pictures version 1 is still the stronger choice
(406 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 name a word a picture shows for 91 of the 245 pictures (0.37; version 1: 0.30), where the base model's answers to the same request carry them for 0.88; asked directly what the lettering says, for 245 of the 245 pictures, he names it about as often as the base model does (0.93 of them against 0.92).
Version 1's closer look names the words a picture shows less often than his does (0.30 of the pictures against his 0.37: 74 pictures against 91, one seed each, on pictures
version 1 may have been taught, as said above); his long look names them for 147 of the 245 pictures, 63 more than version 1's 84 and 51 more than Lucia 4B v1.2's 96, 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 (178 of the 300 pictures, against 56 without it), and the share of closer looks that name a shown word rises (0.67 against 0.37). Of those 178, 160 quote at least one word the picture shows, while 15 quote none of the words COCO-Text marks on it, and in the other 3 the check counts no quote: 2 quote a line of the picture's lettering longer than the 80 characters the check reads, and one quotes no word of three letters or more; those 15 were not looked at by hand, and COCO-Text misses some real lettering.
How he was trained
His ordinary text requests in training were not real requests. The second objective holds him near the base model on ordinary requests by training on the base model's own answers to them, and here the base model wrote the requests too: the 578 text requests among his 3,170 ordinary ones are requests it wrote itself. Asked to write a request, it mostly goes on to answer it within the same turn (of its 7,232 tries, 6,397 never closed), and of those that did close, most are not real requests: of 40 read by hand, about 30 are the assistant talking ("The provided text is missing. Please provide ...") and about 9 are a request with its own answer written in. So in training his answers to text were held near the base model's mainly on those. How far he moved on ordinary text is shown by the reads above, on proper requests: on the 166 held-out requests Qwen3.5-9B and Qwen3.5-4B wrote, he is 0.061 nats a token from the base model (version 1, trained without that objective: 0.28), and 142 of his 166 answers end within 512 new tokens (the base model's: 133).
Table | |
|---|
| base | google/gemma-4-E4B-it, bf16, the vision encoder frozen, 280 image tokens a picture (the model's default budget) |
| 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 42 layers (the key and value projections exist on 24 of them; 69.8 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 3,170 general requests answered by gemma-4-E4B-it itself for this version (questions from a fixed bank of everyday requests about the training pictures, and text requests gemma-4-E4B-it wrote; 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, cosine schedule, 3% warmup, batch 8 x 2, one epoch (10,137 steps, 4.75 s a step, 803 minutes, at most 50.2 GB of the card's memory), the loss on the answer only, seed 20261030; one pass on one machine, one RTX PRO 6000 |
| 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.69 trained him (run_queue("ulisse_v12_ge4b")); the notebook that runs it, notebooks/ulisse_v12_ge4b.ipynb, is in the repository from v0.1.70 (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 E4B 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 ge4b 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 E4B v1.2 | the root of this repository | ulisse-v1.2 |
| Ulisse E4B 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.