Image-Text-to-Text
PEFT
Safetensors
English
lora
vision-language
chain-of-thought
image-captioning
photography
non-commercial
conversational

Ulisse E4B v1.2-nc: gemma-4-E4B-it, think symbolic image (non-commercial)

The official release of this model is AbstractPowered/lora-gemma-4-e4b-think-symbolic-image-nc; this repository is its research record (the run's records, the notebook as it ran and every version).

Ulisse E4B v1.2-nc is the non-commercial sibling of Ulisse E4B v1.2: a LoRA adapter of google/gemma-4-E4B-it that looks at a picture and writes a reading of it, a short chain of plain-language thoughts, one named step per line, then the wordings (a caption, a prompt, tags, a critique, by depth), then the questions a careful looker would still ask, each with its answer and what settles it. He is the effective-4-billion-parameter member of the Ulisse line, the thinking lookers' second family beside Lucia, on Gemma 4. Version 1.2-nc is the recipe of Lucia 4B v1.2-nc on Gemma 4: the same rows, taught once, with a second objective that keeps him near his base model.

  • More than eight times the rows. He was taught 184,562 rows (version 1: 20,836), the rows Lucia 4B v1.2-nc was taught: release 5 of thought-symbolic-image-recaptioned, its Apache-2.0 part and its non-commercial part together (185,356 rows), less 660 rows on the pictures the reads below hold out and 134 rows whose pictures no store holds. The non-commercial part holds readings written with the picture in view: COCO 2017 photographs (each under its Flickr author's license, most of them non-commercial), FFHQ photographs (CC BY-NC-SA 4.0) and DeepFashion-MultiModal pictures (non-commercial research use). The rows were written by OpenAI, Google and DeepSeek models and admitted by a blind review; 41,231 of them are long looks. No row he was taught was written by a Claude model, or by any model of this project trained on rows a Claude model wrote.
  • One pass. He was taught his rows once (21,815 steps); version 1 was taught its own rows twice (2,724 steps).
  • The base model kept, as in Ulisse E4B v1.2: a second objective in training holds his next-word choices near gemma-4-E4B-it's on ordinary requests that gemma-4-E4B-it answered itself for this version, so the adapter changes how he answers when asked for a reading and little else. His ordinary text requests in training were written in a user's voice by Qwen3.5-9B and Qwen3.5-4B (1,642 of them) and answered by gemma-4-E4B-it. They are rough: of 30 read by hand, 7 are complete requests, 12 stop mid-sentence and 11 set up a task without the text or question it needs; what they keep him near is the base model's own answer to each. Ulisse E4B v1.2 was trained on requests gemma-4-E4B-it wrote itself, which were found to be mostly not requests at all, as that model's card says. On held-out ordinary requests he stays close to the base model, and of the questions and text requests among them he answers none in the reading's form; version 1, trained without it, answers 62 of the 357 that way.
  • Lettering in the long look. Of 300 held-out pictures with readable lettering, a screen found no person's name, credit or web address in the lettering of 245. Of those 245, his long look names a word the picture shows for 186 (Ulisse E4B v1.2: 147; version 1: 84; the base model's answer to the same request: 215). His closer look names one for 67 (Ulisse E4B v1.2: 91; version 1: 74; the base model: 216), and for 147 when the request asks for the visible text (below). Asked directly what the lettering says, for 245 of those 245, his answer names it about as often as the base model's does (0.93 of them against 0.92).

This repository holds version 1.2-nc alone. His Apache-2.0 sibling, Ulisse E4B v1.2, was trained the same way on the Apache-2.0 part alone; Ulisse E4B v1 stays in that repository at the tag ulisse-v1 (the tag v1 marks the same release before the line was named).

Non-commercial. He is released under CC BY-NC-SA 4.0, because of the pictures he was trained on, and carries their terms: no commercial use, share-alike, and no use for recognizing or identifying people. For commercial use, take Ulisse E4B v1.2 (Apache-2.0).

What he writes for a closer look at a held-out COCO 2017 photograph (376084, its author's Attribution license), verbatim:

see: Several yellow trucks are parked in a row, with the nearest one prominent in the foreground.
relate: The orange cones stand in front of the trucks, marking the space around them.
mood: Their parked state suggests a gentle pause, as the trucks rest without visible motion.
caption: Several yellow trucks are parked in a row behind orange cones.
prompt: several yellow trucks parked in a row, orange cones in front of the trucks, grassy field, trees and fence in the background
tags: yellow truck, orange traffic cone, grass, trees, fence, photograph
question: thing name -> truck [record]
question: thing count -> several [record]
question: thing colour -> yellow [record]
question: rel1 rel -> in front of [record]
question: form line -> unknown [unknown]

The steps a chain may use, in the order a careful looker takes them: see, name, place, count, relate, form, light, colour, mood, mean, intend, story, compare, change, check, say. A quick look holds 1 to 2 thoughts, a closer look 3 to 5, a long look 6 to 10. Questions end in [record] (the answer is a fact of the picture), [chain] (the chain worked it out) or [unknown]. The prompt line often opens with the kind of picture (a close-up photograph, an overhead photograph); unlike version 1, he was not taught to open it that way every time.

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 torch
from peft import PeftModel
from PIL import Image
from transformers import AutoModelForMultimodalLM, AutoProcessor

processor = AutoProcessor.from_pretrained("AbstractPhil/gemma-4-e4b-think-symbolic-image-nc")
model = AutoModelForMultimodalLM.from_pretrained("google/gemma-4-E4B-it", dtype=torch.bfloat16, device_map="cuda")
model = PeftModel.from_pretrained(model, "AbstractPhil/gemma-4-e4b-think-symbolic-image-nc").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 is in his Apache-2.0 sibling's repository at the tag ulisse-v1 (revision="ulisse-v1" in both from_pretrained calls of that 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; the held-out pictures and requests are Ulisse E4B v1.2's. Version 1.2-nc 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:

read Ulisse E4B v1.2-nc Ulisse E4B 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.22 / 0.24 0.17 / 0.28 0.23 / 0.20

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 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; 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:

read Ulisse E4B v1.2-nc Ulisse E4B v1 Ulisse E4B v1.2
distance of his next-token choices from the base model's on its own answers (KL per token, nats; the base model 0) 0.098 0.70 0.072
the same as a perplexity ratio (the base model 1.00) 1.12 1.46 1.09
answers written in the reading's form (the base model 0.00) 0.00 0.17 0.00
answers that end within 512 new tokens 0.91 0.96 0.93
the base model's answers that end within 512 new tokens, in the same read 0.91 0.91 0.91

The 198 requests for a detailed description are where he is farthest from the base model: 0.13 nats a token on its own detailed descriptions (version 1: 0.68; Ulisse E4B v1.2: 0.091). 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 172 new tokens on average (version 1: 162; Ulisse E4B v1.2: 179), 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; Ulisse E4B v1.2's: 0.11), 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):

read Ulisse E4B v1.2-nc Ulisse E4B v1 Ulisse E4B v1.2
the prompt line opens with the right kind of picture 136 of 500 406 of 500 145 of 500
the right kind named anywhere in the prompt line 313 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.

read gemma-4-E4B-it Ulisse E4B v1.2-nc Ulisse E4B v1 Ulisse E4B v1.2
a closer look: the answer names the lettering 0.88 0.27 0.30 0.37
the same by chance 0.18 0.11 0.12 0.11
a long look: the answer names the lettering 0.88 0.76 0.34 0.60
the same by chance 0.16 0.17 0.13 0.15
a closer look with the lettering sentence: the answer names the lettering 0.95 0.60 not read 0.67
the same by chance 0.16 0.13 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 4 / 21 19 / 158 31 / not read 56 / 178
asked what the lettering says (245 of the 245 pictures): the answer names it 0.92 0.93 not read 0.93
the same by chance not read 0.09 not read 0.09

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 none of them with the request alone and for 3 with the lettering sentence; each of those three photographs was looked at, and each shows lettering COCO-Text does not mark: two banners reading "DONNAY", the drawn "POW!", and a drink bottle whose label shows C, Y, an orange disc, N and I, which he wrote as "CYONI". 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-nc holds the reading's form as version 1 and Ulisse E4B v1.2 do. Against version 1, he says about as much of what each picture's captions hold and backs about as much of it (0.22 / 0.24 against 0.17 / 0.28), 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.098 nats a token; Ulisse E4B v1.2: 0.072), 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.91) 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 136 of the 500 (paintings 43 of 100, prints 41, photographs 28, drawings 22, objects 2; Ulisse E4B v1.2: 145); 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-nc has none of them.

The rows he was taught carry lettering: 23,565 of them hold a say thought or a quoted line (5,927 of them on COCO 2017 photographs: 5,925 from the non-commercial part and two from the Apache-2.0 part; those two were written without the photograph, and the rows his Apache-2.0 sibling was taught leave them out), and 17,499 of them quote it. His long look carries it: it names a word the picture shows for 0.76 of the pictures, against 0.60 for Ulisse E4B v1.2 and 0.34 for version 1. His closer look names it less often than Ulisse E4B v1.2's (0.27 of the pictures against 0.37) and a little less often than version 1's (0.30; the base model's answers to the same request: 0.88), though 0.52 of the closer looks he was taught on COCO 2017 photographs with lettering name it; with one seed, why the closer look stays low is not known. With the lettering sentence more of his rows write the lettering out (158 of the 300 pictures, against 19 without it), and the share of closer looks that name a shown word rises (0.60 against 0.27). Of those 158, 142 quote at least one word the picture shows, while 13 quote none of the words COCO-Text marks on it, and in the other 3 the check counts no quote: 3 quote a line of the picture's lettering longer than the 80 characters the check reads; those 13 were not looked at by hand, and COCO-Text misses some real lettering.

How he was trained

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 184,562 rows: 164,469 about a picture (COCO 2017 87,699, National Gallery of Art 38,308, DOCCI 32,001, DeepFashion-MultiModal 3,706, FFHQ 2,689, Localized Narratives (COCO 2017 photographs) 66), each taught in two forms (the whole row, and the chain with its caption), and 20,093 drawn specifications, taught as whole rows; 349,031 examples
depth about a picture: 66,515 quick looks, 58,826 closer looks, 39,128 long looks; drawn specifications: 10,829 quick, 7,161 closer, 2,103 long
writers gpt-6-luna (OpenAI) 178,004, deepseek-flash (DeepSeek) 5,827, gemini-4-argon (Google) 660, gemini-3.8-flash (Google) 71; no Claude model
keeping the base beside every micro-batch of 8 training examples, 4 general requests, from 5,460 general requests answered by gemma-4-E4B-it itself for this version (3,818 questions from a fixed bank of everyday requests about the training pictures, and 1,642 text requests Qwen3.5-9B and Qwen3.5-4B wrote, 814 by Qwen3.5-4B, 805 by Qwen3.5-9B and 23 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 2e-4, cosine schedule, 3% warmup, batch 8 x 2, one epoch (21,815 steps, 4.65 s a step, 1,690 minutes, at most 51.7 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,450
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, run_queue("ulisse_v12_ge4b") from notebooks/ulisse_v12_ge4b.ipynb, 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-nc 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 nc --project-repo <your-name>/<your-project> --out notebooks writes its queue and its notebook). That lane reads one file that is not published, the non-commercial training set (sft/v12_rows_nc.json); every other file it 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

version where tag
Ulisse E4B v1.2-nc the root of this repository ulisse-v1.2

The family

size base the LoRA adapter the full fine-tune
E4B google/gemma-4-E4B-it gemma-4-e4b-think-symbolic-image (v1.2; v1 at its tag); non-commercial: gemma-4-e4b-think-symbolic-image-nc (v1.2-nc) not trained (the line ships adapters)
12B google/gemma-4-12B-it gemma-4-12b-think-symbolic-image (v1.2; v1 at its tag); non-commercial: gemma-4-12b-think-symbolic-image-nc (v1.2-nc) not trained (the line ships adapters)

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

CC BY-NC-SA 4.0. The base model, gemma-4-E4B-it, is Apache-2.0; this adapter takes the terms of the pictures he was trained on: no commercial use, share-alike, and no use for recognizing or identifying people. The rows are both parts of release 5 of thought-symbolic-image-recaptioned, whose LICENSES.md gives each source's terms. The pictures: DOCCI (images and annotations by Google LLC, CC BY 4.0), COCO 2017 photographs (each under its Flickr author's license, most of them non-commercial; 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.), FFHQ (NVIDIA Corporation, CC BY-NC-SA 4.0), DeepFashion-MultiModal (non-commercial research use, under the DeepFashion agreement) 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.

Downloads last month
52
Inference Providers NEW
This model isn't deployed by any Inference Provider. πŸ™‹ Ask for provider support

Model tree for AbstractPhil/gemma-4-e4b-think-symbolic-image-nc

Adapter
(530)
this model

Datasets used to train AbstractPhil/gemma-4-e4b-think-symbolic-image-nc

Space using AbstractPhil/gemma-4-e4b-think-symbolic-image-nc 1