Jeveration GGUF: run Jeveration text-to-image on a CPU with llama.cpp

Jeveration GGUF is a set of quantized GGUF files (Q2_K, Q3_K, Q4_0, Q4_K_S/M, Q5_K_S/M, Q6_K, Q8_0 and F16) of Jeveration, the one-step text-to-image model from the paper Jeveration: System One Models Now Generate. With them, Jeveration runs on an ordinary CPU, no GPU needed: 512 x 512 text-to-image plus indoor depth estimation, semantic segmentation and surface normals. Jeveration draws a whole image in one forward pass, with no diffusion steps: the official release generates an image in 78 ms on one NVIDIA H200. This repository also has the code to run it: a set-up script, command-line tools, and a copy-paste Python example that turns a prompt into a PNG.

Jeveration turns the frozen Qwen3.5-4B vision-language model into an image generator: in a single forward pass it decides all 128 tokens of an image (TA-TiTok codes) at once. Almost all of the compute is the 4B backbone, so these files hold that backbone with Jeveration's LoRA merged in. The small rest (image head, dense heads, the 512-px decoder) runs in PyTorch from the original release.

Jeveration GGUF is not a chat model. llama-cli, llama-server, Ollama and LM Studio load the file but cannot make images with it. Jeveration's forward pass mixes a causal prompt with 128 bidirectional "decision tokens" given as embeddings, and reads hidden states rather than text. The small llama.cpp helper in tools/jev_backbone.cpp does that, and the Python code here drives it. Follow the quick start below.

Examples

Generated on a 2-core, 4-thread laptop CPU with jeveration-backbone-Q4_K_M.gguf, one forward pass each:

"A cozy wooden cabin in a snowy pine forest at night, warm light in the windows." "A red fox sitting in fresh snow, golden hour."
Jeveration GGUF Q4_K_M text-to-image: a wooden cabin in a snowy forest at night Jeveration GGUF Q4_K_M text-to-image: a red fox in snow

Depth, segmentation and surface normals from the same GGUF backbone (photo, segmentation, depth, normals):

Jeveration GGUF dense prediction: photo, semantic segmentation, depth map and surface normals of a living room

Which Jeveration GGUF file should I download?

Start with jeveration-backbone-Q4_K_M.gguf (2.7 GB). Every file was measured against F16 on the same inputs (3 prompts with fixed random draws, 3 NYUv2 test images; scripts/quant_compare.py):

file size text-to-image: code KL vs F16 ↓ same top code as F16 ↑ depth: change vs F16 ↓ depth error (3 NYUv2 images)
jeveration-backbone-Q2_K.gguf 1.97 GB 1.079 29 % 7.1 % 0.312 m smallest; pictures stay coherent but drift from F16 (composition changes). Only if RAM is very tight
jeveration-backbone-Q3_K_S.gguf 2.07 GB 0.928 39 % 3.3 % 0.276 m noticeable drift from F16
jeveration-backbone-Q3_K_M.gguf 2.30 GB 0.444 51 % 2.7 % 0.291 m best 3-bit file
jeveration-backbone-Q3_K_L.gguf 2.49 GB 0.625 51 % 2.5 % 0.295 m no better than Q3_K_M here
jeveration-backbone-Q4_0.gguf 2.54 GB 0.161 68 % 2.1 % 0.289 m close to F16; legacy format, often fastest on ARM
jeveration-backbone-Q4_K_S.gguf 2.57 GB 0.176 72 % 1.7 % 0.294 m close to F16
jeveration-backbone-Q4_K_M.gguf 2.74 GB 0.085 76 % 1.5 % 0.290 m recommended: the best size/quality balance
jeveration-backbone-Q5_K_S.gguf 2.99 GB 0.069 75 % 1.0 % 0.309 m slightly closer to F16 than Q4_K_M
jeveration-backbone-Q5_K_M.gguf 3.09 GB 0.072 77 % 0.9 % 0.306 m slightly closer to F16 than Q4_K_M
jeveration-backbone-Q6_K.gguf 3.46 GB 0.047 83 % 0.7 % 0.298 m near-lossless
jeveration-backbone-Q8_0.gguf 4.48 GB 0.014 89 % 0.3 % 0.301 m practically identical to F16
jeveration-backbone-f16.gguf 8.42 GB 0.000 100 % 0.0 % 0.302 m reference; for re-quantizing
  • Code KL: how far the format's distribution over each of the 128 image codes moves from F16 (mean KL divergence). Below ~0.1, pictures from the same seed are near copies of F16's. Top-code agreement looks low even for Q8_0 because many codes have several near-equal candidates.
  • Depth barely depends on the format: the error stays within the noise of 3 images in every file, and the depth maps change less than 3 % from F16 down to Q3_K_M.
  • The 2- and 3-bit files are made without an importance matrix (see "Rebuild the files from scratch").

Same prompt, same seed, every format (left to right: Q2_K ... F16):

Jeveration GGUF quantization comparison: the same three prompts and seeds generated with every format from Q2_K to F16

Quick start: from zero to an image

Tested on Linux x86-64 with a 2-core, 4-thread laptop CPU and 12 GB of RAM. You need git, cmake, a C++17 compiler and uv (or Python 3.12), plus pip install -U huggingface_hub for the hf command.

# 1. the code and ONE Jeveration GGUF file (pick the format from the table above)
hf download Meshwa/Jeveration-GGUF --exclude "*.gguf" --local-dir jeveration-gguf
hf download Meshwa/Jeveration-GGUF jeveration-backbone-Q4_K_M.gguf --local-dir jeveration-gguf
cd jeveration-gguf

# 2. build llama.cpp (pinned commit) and the helper, clone the Jeveration code, create a CPU-only venv   (~15 min)
bash setup.sh

# 3. the rest of Jeveration (image head, decoder, tokenizer), from the original repositories
bash scripts/download.sh            # text-to-image + depth/segmentation, ~9.5 GB
#   bash scripts/download.sh t2i    # text-to-image only, ~5.5 GB

# 4. generate an image
.venv/bin/python scripts/t2i_gguf.py --prompt "A red fox sitting in fresh snow, golden hour." --seed 0
#   -> samples/p00_s0_Q4_K_M.png

Python: prompt in, image out

Save this as generate.py in the jeveration-gguf folder and run .venv/bin/python generate.py:

import sys; sys.path.insert(0, "scripts")
from t2i_gguf import JeverationGGUF

pipe = JeverationGGUF("jeveration-backbone-Q4_K_M.gguf")       # loads once; then one forward pass per image
image = pipe("A cozy wooden cabin in a snowy pine forest at night, warm light in the windows.", seed=0)
image.save("cabin.png")                                         # a 512 x 512 PIL.Image

for seed in range(4):                                           # more images reuse the loaded model
    pipe("A lighthouse on a rocky cliff under a stormy sky.", seed=seed).save(f"lighthouse_{seed}.png")

The same seed and prompt always give the same image. Scripts and the class use jeveration-backbone-Q4_K_M.gguf by default; pass another file name to use another format. Downloads resume if interrupted, and setup.sh and download.sh skip finished steps when re-run.

Text-to-image

.venv/bin/python scripts/t2i_gguf.py \
    --prompt "A lighthouse on a rocky cliff under a stormy sky." \
    --prompt "A bowl of ramen with a soft-boiled egg, top view." \
    --n 4 --seed 0 --gguf jeveration-backbone-Q5_K_M.gguf
option default
--prompt a pine tree on a lake repeat for several prompts
--n / --seed 1 / 0 images per prompt, with seeds seed, seed+1, ...
--gguf Q4_K_M backbone file
--threads all cores
--out samples/ file names: p<prompt>_s<seed>_<format>.png
--steps 1 experimental. 1 is the released single pass. >1 re-masks the least confident codes and lets the model decide them again (MaskGIT-style), each step one more backbone pass. The released one-step model was not trained for this, so expect different, not necessarily better, images.
--cfg 1 experimental classifier-free guidance (2 backbone passes per step).
--save-steps off also save the picture after every step

Segmentation, depth and surface normals

Jeveration's dense heads were trained on NYUv2, so they work best on indoor scenes.

.venv/bin/python scripts/dense_gguf.py --image Jeveration/examples/room_1.png
#   -> dense/room_1/{seg.png, seg_color.png, depth.npy, depth.png, normal.npy, normal.png}
.venv/bin/python scripts/dense_gguf.py --image photo.jpg --tasks depth --gt depth_gt.png   # + metrics against ground truth
  • seg.png: one of 13 NYUv2 classes per pixel (jeveration.config.NYU13); seg_color.png overlays it on the photo.
  • depth.npy: meters (float32); depth.png: a colored view.
  • normal.npy: unit normals, [H, W, 3]; normal.png: a colored view.
  • --gt: ground-truth depth, .npy in meters or 16-bit .png in millimeters. --image and --gt can be repeated.
  • Each task is one backbone pass (the instruction differs).

Measure it on NYUv2

bash scripts/download.sh nyu                                           # 109 of the 654 NYUv2 test images (0.2 GB)
.venv/bin/python scripts/nyu_eval.py --n 20                       # depth + segmentation + normals
.venv/bin/python scripts/nyu_eval.py --n 20 --tasks depth --gguf jeveration-backbone-Q8_0.gguf

Results go to nyu_eval/<format>/results.jsonl. Re-running resumes, skipping images already done.

Q4_K_M on 20 NYUv2 test images, spread evenly over the first 109 (288 x 384, no crop), next to the paper's full-precision numbers on all 654:

Q4_K_M, 20 images paper (full precision, 654 images)
segmentation mIoU (13 classes) ↑ 67.1 67.7
segmentation pixel accuracy ↑ 84.4 %
depth mean absolute error ↓ 0.327 m 0.267 m
depth AbsRel ↓ / RMSE ↓ 0.135 / 0.441 m
depth δ1 / δ2 / δ3 ↑ 0.820 / 0.977 / 0.994
normals mean angle error ↓ / within 30° ↑ 25.1° / 69.0 %

Twenty images is a small sample (one hard image moves the depth error by ~0.02 m), so read these as "in the paper's range", not as an exact gap. Segmentation matches the paper. Depth is a little worse, but not because of the quantization: in the format table above, F16 and Q4_K_M give the same depth error on the same images.

Compare the formats yourself

.venv/bin/python scripts/quant_compare.py                        # every jeveration-backbone-*.gguf present, vs f16
.venv/bin/python scripts/quant_compare.py --quants Q3_K_M,Q4_K_M --ref Q8_0 --nyu 5

This writes quant_compare/table.md and quant_compare/grid.png (the same prompts and random draws in every format).

How it works

prompt ──► chat-format token ids ───────────────────────────────┐
random state ──► 128 decision-token embeddings (PyTorch) ───────┤
                                                                ▼
                         tools/jev-backbone (llama.cpp, GGUF backbone)
                           pass 1, causal:      the prompt  ──► KV cache + recurrent state
                           pass 2, non-causal:  the 128 decision tokens attend to the prompt and to
                                                each other in both directions ──► final hidden states
                                                                │
hidden states ──► image head (PyTorch) ──► 128 codes ──► TA-TiTok 512-px decoder (+ CLIP text) ──► PNG
  • Why two passes. In Jeveration's attention mask the prompt is causal and the decision tokens see each other in both directions. llama.cpp has one causal flag per batch, so the prompt goes through first with it on, then the decision tokens go through with it off, in a single micro-batch. Qwen3.5's linear-attention (Gated DeltaNet) layers are causal either way, exactly as in the reference.
  • Positions. Qwen3.5 uses multimodal RoPE with 3 position axes (t, y, x). Text tokens get (p, p, p). For dense prediction the 18 x 24 visual tokens of the photo get (s, row, col), and llama.cpp masks tokens with the same t in raster order, as Qwen does. The helper takes a position for every token, so the scripts reproduce jeveration.prompts.build_prefix exactly.
  • Helper protocol (stdin/stdout, see the header of tools/jev_backbone.cpp): n_prefix, n_decision, then a (token, t, y, x) entry per token (token = -1 marks an embedding row), then the embedding rows. The reply is the final hidden states of the decision tokens (after the last RMSNorm).
  • Merging. The LoRA has rank 256 and alpha = rank (scale 1). It is merged in fp32 (W + B @ A) into every adapted projection (attention q/k/v/o, linear attention in_proj_qkv, in_proj_z, out_proj, MLP gate/up/down). Merged tensors match the reference within f16 rounding (0.07 % relative error).

Memory and speed

setup text-to-image, one 512 x 512 image
official PyTorch release, one NVIDIA H200 (from the Jeveration paper/README) 78 ms
these GGUF files, Q4_K_M, 2019 entry-level laptop (Intel Core i3-1005G1: 2 cores / 4 threads) 22 s (14 s backbone + head, ~8 s decoder)

The laptop row is a lower bound measured on deliberately weak hardware: llama.cpp's speed scales with CPU cores and memory bandwidth, so current desktop and laptop CPUs are faster. Dense prediction is one backbone pass per task (depth, segmentation, normals); loading the model takes a little longer than one image, once per session.

RAM. The helper reads the GGUF into RAM once instead of memory-mapping it (load_mode = LLAMA_LOAD_MODE_NONE). On x86 CPUs llama.cpp repacks Q4_K/Q4_0 weights into an interleaved layout. With mmap, the repacked copy and the file pages both stay resident, roughly doubling the backbone's footprint. Reading once avoids that. Expect about the file size + ~0.6 GB (compute buffer, KV cache, recurrent state) for the backbone. The PyTorch side adds about 3 GB for text-to-image (image head in fp32, TA-TiTok decoder, CLIP text tower) and about 2.5 GB for dense prediction (Qwen3.5 vision tower, dense heads).

"attention mode is flash" on a CPU is expected: it is llama.cpp's fused attention kernel (ggml_flash_attn_ext), which has a CPU implementation and avoids materializing the full attention matrix. It is chosen automatically and is not a GPU feature.

GPU. Untested. llama.cpp can be built with CUDA (LLAMA_CMAKE_ARGS="-DGGML_CUDA=ON" bash setup.sh), but the helper was only run on the CPU. On a GPU, the original PyTorch release is the simpler route.

Rebuild the files from scratch

bash scripts/download.sh build                                 # + the full Qwen3.5-4B
bash scripts/build_gguf.sh                                     # LoRA merge -> f16 GGUF -> every quantization
QUANTS="Q4_K_M Q6_K" bash scripts/build_gguf.sh                # or only some

This needs ~16 GB of free RAM+swap for the fp32 merge and ~65 GB of disk. No importance matrix is used: llama-imatrix runs plain text through the model, while Jeveration's forward pass needs the two-pass, embedding-input setup above. A calibration done with the helper would likely improve the 2- and 3-bit files.

Files in this repository

path
jeveration-backbone-*.gguf the backbone (architecture qwen35, 32 layers, hidden size 2560; no vision tower, no MTP head)
tools/jev_backbone.cpp the llama.cpp helper (built by setup.sh)
scripts/t2i_gguf.py text-to-image
scripts/dense_gguf.py segmentation / depth / normals
scripts/nyu_eval.py NYUv2 evaluation
scripts/quant_compare.py format comparison
scripts/jev_gguf.py shared: the helper's Python client, paths
scripts/download.sh, setup.sh, requirements.txt set-up
scripts/merge_lora.py, scripts/build_gguf.sh how the files were made
assets/ the pictures on this page

Limitations

  • Only the backbone is quantized. The image head, dense heads and decoder run in fp32 PyTorch.
  • Image-to-image (structure to image, colorization, style transfer) is not implemented in these scripts yet. The backbone file supports it: it is a different prefix (source-image tokens) through the same helper.
  • --steps > 1 and --cfg are experiments on top of the released one-step model, not part of the paper's method.
  • The 2- and 3-bit formats are made without an importance matrix; see the table above for what they cost.
  • Tested on Linux x86-64 (CPU). The pinned llama.cpp commit is recent; the helper uses its llama_batch_ext API.

FAQ

How do I run Jeveration on a CPU? Use these GGUF files with the quick start above: bash setup.sh, bash scripts/download.sh, then scripts/t2i_gguf.py or the JeverationGGUF Python class. No GPU and no CUDA are needed.

Which Jeveration GGUF quantization is best? Q4_K_M is the default: a good balance of size and quality. Use Q5_K_M, Q6_K or Q8_0 if you have the RAM; use Q3_K_M or Q2_K only if memory is very tight. The table near the top measures how far each one moves from F16.

How much RAM does Jeveration GGUF need? About the file size + 0.6 GB for the backbone, plus ~3 GB for the PyTorch side of text-to-image: roughly 6.5 GB in total for Q4_K_M. It was tested on a 12 GB machine; 8 GB should work with some swap.

Can I use Jeveration GGUF with Ollama, LM Studio, llama-cli or llama-server? They load the file, but they only produce text, so they cannot generate images with it. Use the helper and scripts in this repository.

Is there a ComfyUI node for Jeveration GGUF? Not yet. It is planned; follow this repository for updates.

Does it run on macOS, Windows or a GPU? Only Linux x86-64 on a CPU was tested. macOS should work the same way (llama.cpp and the helper are portable C++); Windows users can use WSL. For a GPU, the original PyTorch release is the simpler route.

Is this the official Jeveration release? No. This is a community conversion of the official linlinlinlinsdada/Jeveration weights. The model, its training and the paper are the work of the Jeveration authors; please cite them (below).

License

Everything in this repository is released under the Apache License 2.0 (LICENSE), the license of every model it is built from:

component where license
Jeveration GGUF files: Qwen3.5-4B language model + Jeveration LoRA, merged this repository Apache-2.0 (Qwen3.5-4B, Jeveration)
scripts, setup.sh, tools/jev_backbone.cpp this repository Apache-2.0
Jeveration inference code cloned by setup.sh from Carol-lyh/Jeveration Apache-2.0
image head, dense heads, 512-px decoder (jeveration.pt, decoder512.pt) downloaded from linlinlinlinsdada/Jeveration Apache-2.0
Qwen3.5-4B tokenizer and vision tower downloaded from Qwen/Qwen3.5-4B Apache-2.0
TA-TiTok tokenizer downloaded from turkeyju/tokenizer_tatitok_bl128_vq Apache-2.0
CLIP ViT-L/14-336 text tower downloaded from timm/vit_large_patch14_clip_336.openai Apache-2.0
llama.cpp cloned by setup.sh from ggml-org/llama.cpp MIT
NYUv2 test images (optional, evaluation only) downloaded from tanganke/nyuv2 the NYU Depth V2 dataset's terms

Attribution notices are in NOTICE. Generated images are subject to the same terms as images from the original model; use them responsibly.

Citation

If you use Jeveration GGUF, please cite the Jeveration paper, which this work depends on entirely:

@article{liu2026jeveration,
  title   = {Jeveration: System One Models Now Generate},
  author  = {Liu, Yuhe and Li, Qi and Zhang, Shihua and Wang, Xinchao},
  journal = {arXiv preprint arXiv:2611.24738},
  year    = {2026}
}

To refer to these GGUF files and the CPU inference code specifically:

@misc{jeveration_gguf_2026,
  title        = {Jeveration GGUF: quantized Jeveration backbone and CPU inference with llama.cpp},
  author       = {Meshwa},
  year         = {2026},
  howpublished = {\url{https://huggingface.co/Meshwa/Jeveration-GGUF}}
}

Jeveration builds on Qwen3.5, TA-TiTok (code) and CLIP; these files were made with llama.cpp. Thanks to the Jeveration authors for releasing the weights and code under an open license.

Downloads last month
3,820
GGUF
Model size
4B params
Architecture
qwen35
Hardware compatibility
Log In to add your hardware

2-bit

3-bit

4-bit

5-bit

6-bit

8-bit

16-bit

Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support

Model tree for Meshwa/Jeveration-GGUF

Finetuned
Qwen/Qwen3.5-4B
Quantized
(2)
this model

Papers for Meshwa/Jeveration-GGUF