Model card: BIPO-1B
Selected samples from the locked evaluation (2,048 images, one try each, no re-rolls), picked by eye from contact sheets of all 2,048 images. CLIP was not used for this selection. 64x64, shown enlarged. An uncurated grid of 32 random eval captions is in the code repository.
A 1B-parameter model that reads a caption as raw text bytes and writes a 64x64 photo as raw RGB bytes. To our knowledge, the first published model to generate natural photos from captions with raw bytes in and raw pixels out: no learned tokenizer, text encoder, VAE or codec, and no pretrained weights. This is a 64x64 existence proof and a cost study, not a photorealistic generator and not a claim that bytes beat image tokens. Code, a live demo, a Colab notebook and the paper PDF are in the code repository.
Summary
| model | BIPO-1B (bipo-1b-ema-step1093750.safetensors) |
| task | text-to-image, 64x64 RGB |
| input / output | caption as raw UTF-8 bytes (max 128) -> 8x8 thumbnail bytes -> 64x64 RGB bytes |
| architecture | decoder-only autoregressive transformer over bytes: global transformer (d=2016, 19 layers, 21 heads) over 578 positions (322 caption/thumbnail bytes + 256 blocks of 4x4 pixels), plus a local decoder (d=384, 2 layers) that writes the 48 bytes of each block |
| parameters | 969,833,952 |
| vocabulary | 256 byte values. Tokenizer-free in the sense of MegaByte and BLT: no learned tokenizer or codebook and no outside pretrained weights in the model; inputs and outputs are raw bytes, and the global model groups image bytes into fixed 4x4-pixel patches (48 bytes each). It is a patch-level autoregressive transformer with an exact byte-level head and an 8x8 sketch prefix. No text encoder, VAE, VQ or diffusion. |
| pretrained components | none in the model (but ~39% of training captions were written by Florence-2, see Data) |
| weights | EMA (decay 0.999) at step 1,093,750, stored in bfloat16 (1.94 GB) |
| license | weights: CC BY-NC 4.0 (LICENSE); code: MIT (repo LICENSE) |
| released | 2026 |
Intended use
Research on tokenizer-free (in the sense of MegaByte and BLT) and byte-level generative models, autoregressive image modelling, and data / memorization studies. Education and demos. Not intended for commercial use (license), for producing realistic images of real, identifiable people, or for any decision-making about people.
How to use
import torch
from bipo import load, generate
model = load("weights/bipo-1b-ema-step1093750.safetensors", "cuda", torch.bfloat16) # fp32 on older GPUs / CPU
images, thumbnails = generate(model, ["A red double decker bus driving down a city street."], cfg=3.0, seed=1234)
# images: uint8 array (1, 64, 64, 3)
Guidance: cfg 3 gives more natural images; cfg 6 follows the caption more closely with harsher colours. Generation is sequential (12,610 bytes per image): on one H200 a batch of 4 images takes about 17 s; on a 16-core CPU one image takes about 33 s in fp32 and about 10 GB of RAM.
Training
- Data: COCO 2017 train, CC3M, CC12M and Megalith-10m; 22,959,181 image-caption pairs. Random 64x64 crops of a 72x72 store plus random horizontal flips (not for captions that mention left/right). Captions over 128 bytes were truncated at a word boundary (61% of Megalith and 27% of CC12M captions). Captions pairing green+bus, blue+train, white+horse or red+truck were removed to test unseen combinations. Details and terms: DATA.md.
- Objective: next-byte cross-entropy over the whole stream (caption, thumbnail, image), thumbnail bytes weighted x4; captions dropped (replaced by the empty caption) 12% of the time for classifier-free guidance.
- Schedule: 1,093,750 steps at batch 64 = 70M images (about 3 passes), AdamW, peak LR 2e-4 with 2,000 warmup steps and decay to 10%, weight decay 0.05, dropout 0.1, bf16, seed 17.
- Initialization: the caption-to-thumbnail part (global transformer over the first 322 positions) was first trained alone on COCO, then used to warm-start the full model; the image-block parts started from random. No outside weights.
- Checkpoint: the final EMA weights (step 1,093,750), not selected on any eval.
- Compute: 8 GPUs (H200, part of the run on B300), about 2 days wall clock including 3 preemptions, about $262 of GPU time on this run (about $270 including a failed first attempt, data preparation and probes). The project has used about $1,446 of rented GPU time since October 4, plus $170 to $200 in September with some costs unrecorded.
Evaluation
On 1,024 held-out COCO test captions (64px FID n=1,024 vs 4,000 real; CLIP ViT-B/32 32-way R@1, chance 0.031, real photos FID floor 39.1, R@1 0.902):
| FID | CLIP R@1 | |
|---|---|---|
| cfg 3 | 46.6 ± 0.9 | 0.888 |
| cfg 6 | 49.8 ± 1.1 | 0.919 |
COCO val image bits per byte (image given the true caption and thumbnail): 3.066. None of the 2,048 generated evaluation images is a near-copy of a training image. Full protocol, caveats and reproduction: EVAL.md.
Limitations
- 64x64 only. Small objects, faces, hands and text are not legible. There is no upscaler.
- Short captions. At most 128 UTF-8 bytes. Longer prompts must be shortened by the user. Many training captions were cut at 128 bytes, so the model is used to captions that stop mid-sentence.
- English, COCO-like prompts work best. The training text is mostly English web alt-text and short descriptive captions. Counting, spatial relations ("left of"), negation and unusual compositions are unreliable.
- Slow sampling. Every byte is generated in sequence (with KV caching). No speculative or parallel decoding is included.
- Machine-written captions. About 39% of training captions come from Florence-2, which can carry that captioner's biases and errors into the model.
- Evaluation gaps. One training seed; CLIP R@1 is saturated at this level; no matched tokenized baseline; no human preference study; no safety or bias evaluation.
Bias, risks and safety
The training data is web-scale and minimally filtered. Samples can reflect stereotypes about gender, race, age and occupation present in web captions, and can depict people. The 64px resolution limits, but does not remove, the potential for misuse. No safety filter is built in. Do not use the model to depict real people without consent or to create deceptive content.
Citation
See the repo README.
- Downloads last month
- 28
