Model reference · open weights

pjit-21k

Image Linum-AI Text→image 1 build Open weights 546 dl/mo

pjit-21k is an open-weight image model from Linum-AI. pjit-21k (FP32) weighs 4.4 GB; the smallest configuration that runs it is RTX 3060 12 GB.

For self-hosting, compare this build's requirements below with the GPU you plan to rent.

  • P-JiT 21K is a 2.2B parameter text-to-image model developed by Linum-AI and released under the Apache-2.0 license.
  • It was trained on 660M samples and serves as a research checkpoint rather than a production tool.
  • The model uses a frozen Qwen3.5-4B text encoder and is trained at five resolutions around 1 MP, though it cannot generate images with rendered text.

Summary of the Linum-AI/pjit-21k model card, 2026-11-12

What it is

Released byLinum-AI
Released2026-11-03
Parameters2.2B
VRAM4.4 GB for the weights

What it runs on

Memory and cards for pjit-21k (FP32)

4.4 GBweights, file size
5.0 GBworking memory, one 1024² image
537 MBruntime overhead
CardOne imageMemory
RTX 3060 12 GBtight11.6 GB
RTX 4060 Ti 16 GBfits15.4 GB
RTX 3090 24 GBfits23.4 GB
RTX 4090 24 GBfits23.4 GB
RTX 5090 32 GBfits31.0 GB
L40S 48 GBfits44.0 GB
A100 80 GBfits78.2 GB
H100 80 GBfits78.1 GB
RTX PRO 6000 Blackwell 96 GBfits93.8 GB
DGX Spark (GB10) 128 GB unifiedfits107 GB
H200 141 GBfits138 GB
B200 180 GBfits176 GB

From the model card

What Linum-AI says about pjit-21k

Read the model card

Sahil Chopra · Manu Chopra · Linum

Blog post · Code · Apache-2.0

Five samples from the blog post's gallery. Their prompts and seeds are in the code repository.

[!WARNING] Research checkpoint: this is an experimental research artifact, not a production model. P-JiT 21K is a 2B-parameter model trained on 660M samples for about $21K of compute, as a stepping stone towards our next video model. We're releasing it because the results surprised us for a model this size, and to encourage others to explore efficient training methods like ours. You should expect rough edges.

[!IMPORTANT] This model cannot write text or generate posters. It was trained on little to no images of rendered text: no infographics, PDFs, pages of books, slides or posters. We filtered that data out on purpose (it isn't useful for our goal of animation tools), so prompts that ask for words, signs, logos, title cards or posters will not work.

P-JiT 21K is the P-JiT architecture trained for longer (610M samples at 512px, 50M at 1024px), then post-trained with a variant of FDFO.

Usage

The model was trained on dense captions of 50 to 80 words. The code repository ships a prompt upsampler that rewrites short prompts into captions of that kind with Claude Opus 5.5 through OpenRouter (it needs an OPENROUTER_API_KEY; --no_upsample turns it off):

git clone https://github.com/Linum-AI/pjit-21k && cd pjit-21k
pip install -e .

# The portrait above (writes outputs/seed_2.png)
PROMPT="Close-up portrait of an elderly Middle Eastern woman looking calmly into the lens, her face filling the tall frame. A cream headscarf and the collar of a dark green cardigan frame her chin. Soft overcast daylight smooths the fine lines of her skin, and the olive grove behind melts into silvery blur."
python generate.py --no_upsample --aspect_ratio tall --seeds 2 --prompt "$PROMPT"

# Your own prompt, upsampled
export OPENROUTER_API_KEY=...
python generate.py --prompt "oil painting of weathered fisherman smoking a pipe" --aspect_ratio square --seeds 0

The prompts and seeds of all five samples are in the code repository.

Sampling defaults: 50 Euler steps, adaptive projected guidance at scale 15 against an empty negative prompt, initial noise at scale 4. The model was trained at five ~1 MP sizes: 1024x1024, 864x1216, 1152x864, 1248x832 and 1280x720 (width x height). Text is encoded by a frozen Qwen3.5-4B, which downloads separately.

Files

File
model.safetensorsThe DiT, fp32 (2.18B parameters, 8.7 GB). The training-only readout heads and PixelREPA adapter are not included
config.jsonArchitecture, text-encoder layers and sampler defaults

Limitations

A small model (2B DiT, 4B text encoder), so it struggles with full-body shots, many entities (six cars, crowds), interactions between several people, and world knowledge (six strings on a guitar, the dots on a die).

Citation

@online{chopra2026pjit21k,
  title = {Training a Text-to-Image Model for \$21K},
  author = {Chopra, Sahil and Chopra, Manu},
  year = {2026},
  url = {https://www.linum.ai/field-notes/pjit-21k}
}

Authorship

The code for this model was written by Claude (Anthropic's Opus 5.5 model, running in Claude Code). Linum asked it to extract the model and inference code from Linum's internal experiment repository and to add the prompt upsampler. The model, the training, and the review of the code and this model card are Linum's.

About Linum

Linum is a team of two brothers building a tiny-yet-powerful AI research lab. We train our own generative media models from scratch.

Subscribe to Field Notes: technical deep dives on building generative video models from the ground up, plus updates on new releases from Linum.

Contact: hello@linum.ai

Quoted from the model card on Hugging Face. The full card is behind the Hugging Face link above.

Running it yourself

Run it on a rented GPU

Rent a machine by the hour. ComfyUI is installed on it. Open ComfyUI through the tunnel and load the workflow from the model's card on Hugging Face; choose this model's file in its loader.

# on your rented machine (the ssh line is on its page in the console)
# get REPO FILE FOLDER: one file into /workspace/models/FOLDER, where ComfyUI loads it from
get() { hf download "$1" "$2" --local-dir /workspace/hf-files && mkdir -p "/workspace/models/$3" && mv "/workspace/hf-files/$2" "/workspace/models/$3/$4"; }

# the model (8.1 GB)
get Linum-AI/pjit-21k model.safetensors diffusion_models

start-comfyui
Renting a GPU: connect, tunnels, ComfyUI
# on your computer, in a second terminal: ComfyUI in your browser at http://localhost:8188
# HOST, PORT and BOOKING are your machine's, from its page in the console
ssh -o HostKeyAlias=axforge-BOOKING -o StrictHostKeyChecking=accept-new -L 8188:localhost:8188 dev@HOST -p PORT
© 2026 AxForge · EU-hosted AI infrastructure Pricing Docs Trust Privacy Terms