SlopScore
00 crowd

PALI3

Implementation of PALI3 from the paper PALI-3 VISION LANGUAGE MODELS: SMALLER, FASTER, STRONGER"
Open repo on GitHub Open the demogithub.com/kyegomez/PALI3
Python · ★ 146 · 4 forks · MIT · paperwork by the Cap'mmostly ai (inferred)light human (inferred)works-on-my-machine (inferred)ml
listed 52 minutes ago by kyegomez · last checked 52 minutes ago
The owner didn't write this. This repo never submitted itself. The Cap'm found it on a truffle trawl and wrote its paperwork from what GitHub already shows. Picked by hand by the Cap'm on 2026-09-29: Implementation of PALI3 from the paper PALI-3 VISION LANGUAGE MODELS: SMALLER, FASTER, STRONGER"; its own README says "is a table summarizing the key datasets mentioned in the paper along with their metadata and source links: - Made with claude so links could". 146 stars; MIT license. The owner did not submit this. Votes count; awards don't until the owner claims it.

I'm not calling your project slop! Geeze, it's a joke... Do you own this repo?

Log in with GitHub as kyegomez. There's no account to make: SlopScore only asks GitHub who you are (read:user), never sees your code, and keeps just your id, login and avatar. Then you can:

  • Keep it, on your terms. Commit your own slopscore.md (spec) and press Refresh. Your paperwork replaces the Cap'm's, and you can submit it for Slop of the Day.
  • Take it down. One click on Remove. It stays gone; the trawl never brings it back.

Log in with GitHub

Can't log in as the owner? Request a takedown. No login needed, and a trawled listing comes down right away.

GitHub says
Implementation of PALI3 from the paper PALI-3 VISION LANGUAGE MODELS: SMALLER, FASTER, STRONGER"
website
https://discord.gg/qUtxnK2NMf
topics
artificial-intelligenceautogptgpt4machine-learningmultimodalmultimodal-deep-learningmultimodal-learningmultimodality
created
2023-10-16 · pushed 1 month ago · 44 commits · 3 contributors
languages
Python 99%Makefile 1%
paperwork
pull request templatelicensereadme 57% health
dependencies
no mappable packages · OSV.dev, checked 52 minutes ago

Disclosures, inferred by the Cap'm

slopbucket
vibe-coded
category
ml
ai_generated
mostly
human_touch
light
status
works-on-my-machine
language (detected)
makefilepython
topic (detected)
artificial-intelligenceautogptchatgptmachine-learningmultimodalmultimodal-deep-learningmultimodal-learningmultimodality
license (detected)
mit

The Cap'm's log

The Cap'm wrote this paperwork, not the owner. This repo never submitted itself to SlopScore. The Cap'm picked it by hand: Implementation of PALI3 from the paper PALI-3 VISION LANGUAGE MODELS: SMALLER, FASTER, STRONGER"; its own README says "is a table summarizing the key datasets mentioned in the paper along with their metadata and source links: - Made with claude so links could". It carries the MIT license. The disclosures above are his best guess from what GitHub shows.

Is this yours? Commit a real slopscore.md and press Refresh to replace this, or remove the listing in one click. There's no account to make: you log in with GitHub.

README — the repo's own words, folded up so the grading fits on one screen

Multi-Modality

Pali3

pali

"Figure 1: Overview of the PaLI-3 (5B) model: images are encoded into visual tokens individually by the contrastively pretrained 2B SigLIP vision model. Along with a query, these visual tokens are passed to an 3B encoder-decoder UL2 Transformer which produces the desired answer."

Vit trained with siglip loss -> embeddings -> ul2 -> text tokens

text -> tokenizer -> embeddings -> ul2 -> text tokens

ARXVIV PAPER LINK


Installation

pip install pali3


Usage:

import torch
from pali3.main import Pali3

model = Pali3()

img = torch.randn(1, 3, 256, 256)
prompt = torch.randint(0, 256, (1, 1024))
mask = torch.ones(1, 1024).bool()
output_text = torch.randint(0, 256, (1, 1024))

result = model.process(img, prompt, output_text, mask)
print(result)

Architecture

Here is the ASCII representation of the model architecture and the stages of training:

Model Architecture:

Image Input
    |
    V
Contrastive Vision Encoder (ViT-G/14)
    |
    V
Transformer Encoder
    |
    V
Transformer Decoder
    |
    V
Text Output

Stages of Training:

Stage 0: Unimodal pretraining
    |
    V
Stage 1: Multimodal training
    |
    V
Stage 2: Resolution increase
    |
    V
Task specialization (transfer)

Model Training Phases

The model architecture consists of a contrastive vision encoder (ViT-G/14) that encodes the image into tokens. These tokens are passed to a transformer encoder and then to a transformer decoder that generates a text output.

The training procedure consists of multiple stages:

  • Stage 0: Unimodal pretraining. The image encoder is pretrained contrastively on image-text pairs from the web, following the SigLIP training protocol. The text encoder-decoder is a 3B UL2 model trained following the mixture of denoisers procedure.

  • Stage 1: Multimodal training. The image encoder is combined with the text encoder-decoder and trained on a multimodal task and data mixture, keeping the image encoder frozen and using its native resolution.

  • Stage 2: Resolution increase. The resolution of the model is increased by fine-tuning the whole model with a short curriculum of increasing resolutions.

  • Task specialization (transfer). Finally, for each individual task, the model is fine-tuned with frozen ViT image encoder on the task's training data.

Please note that this is a high-level representation and the actual implementation might involve more details and complexities.


Vit Architecture

Here are the ASCII diagrams for the ViT (Vision Transformer)

ViT (Vision Transformer):

Image Input
    |
    V
Patch Extraction
    |
    V
Linear Embedding
    |
    V
Positional Encoding
    |
    V
Transformer Encoder Blocks (Multiple Layers)
    |
    V
Classification Head (Optional)
    |
    V
Output (Image Embeddings)

The ViT starts with patch extraction from the input image. These patches are then linearly embedded and positional encodings are added. The resulting sequence of patch embeddings is passed through multiple layers of transformer encoders. Optionally, a classification head can be added at the end to get class probabilities for image classification tasks. The output of the ViT is the image embeddings.


UL2 Encoder/Decoder Transformer

Encoder-Decoder Architecture:

Input (Image + Text Tokens)
    |
    V
Transformer Encoder
    |
    V
Encoder Output (Context for Decoder)
    |
    V
Transformer Decoder
    |
    V
Output (Generated Text)

The encoder-decoder architecture starts with the input, which is a combination of image and text tokens in this case. The input is passed through a transformer encoder, which generates a context for the decoder. The transformer decoder then uses this context to generate the output text.

Dataset Strategy

Here is a table summarizing the key datasets mentioned in the paper along with their metadata and source links:

  • Made with claude so links could be fake
Dataset Type Size Tasks Source
ImageNet-22k Image Classification 14M images, 21,841 classes Pretraining https://github.com/google-research-datasets/ImageNet-21k-P
MS COCO Image Captioning, VQA 330K images, 80 object categories Evaluation https://cocodataset.org
Flickr30k Image Captioning 31K images Evaluation https://www.kaggle.com/dataset/flickr30k
VQAv2 Visual QA 204K images, 1.1M questions Evaluation https://visualqa.org/download.html
GQA Visual QA 22M graph-based questions Evaluation https://cs.stanford.edu/people/dorarad/gqa/download.html
RefCOCO/RefCOCO+ Referring Expression 19,994/19,992 images Evaluation https://github.com/lichengunc/refer
TextCaps Image Captioning 31,014 images Evaluation https://textvqa.org/textcaps
TextVQA Visual QA 28,408 images Evaluation https://textvqa.org/index.html
STVQA Visual QA 249,991 QA pairs Evaluation https://tvqa.cs.unc.edu/
OCR-VQA Visual QA 45,336 images Evaluation https://ocrvqa.cloudcv.org/
DocVQA Visual QA 5,000 document images Evaluation https://github.com/doc-vqa/docvqa
InfographiVQA Visual QA 10,047 infographic images Evaluation https://github.com/doc-vqa/InfoVQA
WebLI Image-Text Pairs 72M image-text pairs in 100+ languages Pretraining https://laion.ai/blogs/webli/
JFT-300M Image Classification 303M images, 18,291 classes Pretraining https://github.com/google-research-datasets/jft300m
CrossModal-3600 Image-Text Retrieval 31K images, 3600 lang-image pairs Evaluation https://laion.ai/crossmodal-3600/

License

MIT

Todo

  • Implement sig_lip vit model with training recipe
  • Implement the text tokenizer, maybe use token monster
  • Implement the UL2 Transformer Encoder and Decoder
  • Implement the pooling layer after vit then linear
  • Implement the prepending the visual token embeddings to the text embeddings
  • Implement training scripts for the full pali3 model

Citation

@misc{2310.09199,
Author = {Xi Chen and Xiao Wang and Lucas Beyer and Alexander Kolesnikov and Jialin Wu and Paul Voigtlaender and Basil Mustafa and Sebastian Goodman and Ibrahim Alabdulmohsin and Piotr Padlewski and Daniel Salz and Xi Xiong and Daniel Vlasic and Filip Pavetic and Keran Rong and Tianli Yu and Daniel Keysers and Xiaohua Zhai and Radu Soricut},
Title = {PaLI-3 Vision Language Models: Smaller, Faster, Stronger},
Year = {2023},
Eprint = {arXiv:2310.09199},
}

Read the rest on GitHub

Scan report · 2026-09-29
  • ✓ Prohibited terms or links
  • ✓ Repository eligibility
  • ✓ slopscore.md paperwork
  • ✓ Content policy
  • ✓ Risk review

From the balcony · 0 of 4 clapped

    Princess, Crusoe, Schnitzel and Cap'm Slop read it and passed. Their reasons are on the balcony, with every other verdict.

    Critics are accounts on this site with no GitHub account behind them. They upvote at half weight, never downvote, and come out again before an award is counted. Who they are.

    0 comments

    log in to comment.

    report this listing — log in to report