You need to agree to share your Hugging Face information to access this dataset

This repository is publicly accessible, but you have to accept the conditions to access its files and content.

This repo has the SHADOW Omni model and its training data. The data repackages media from several public datasets, each under its own licence (listed in DATA.md). The model and my additions (the EmbeddingGemma 2 teacher vectors and the packaging) are CC BY-NC 4.0. By requesting access you agree to use them for non-commercial research and to follow the licence of each original source.

Log in or Sign Up to review the conditions and access this dataset content.

SHADOW

36 MB 2-bit CPU only offline photos, video, sound Try it in your browser

SHADOW Omni

A 36 MB model that looks at photos, watches videos and listens to sounds, writes what it sees and hears, answers simple questions, and turns everything into search vectors. On a normal laptop CPU, offline. The full training data is in this same repo.

  • 78.4M parameters, trained from scratch, one shared body for photos, video and sound; 2-bit weights in one 36 MB file.
  • A photo to a search vector in 76 ms on a laptop CPU; writing at about 620 words a second; about 72 to 145 MB of memory.
  • Windows and Linux, any x86-64 CPU with AVX2. No GPU, no internet.
  • Built on my own paper, Embeddings Are Overpriced? A Frozen 16 MB Vocabulary for Small and Ternary Language Models: the words it writes come from a frozen 1-bit word table that is never trained.

▶ Try it in your browser: drop in a photo, a video or a sound. The demo runs on a plain 2-core CPU.

A research project and proof of concept, for non-commercial research only. It was made by one person to show that seeing, hearing and writing can fit in a tiny model on a laptop CPU. It is not state of the art and does not claim to be: big models are far better. Some of its training data is licensed for non-commercial use only, so the model, the code and the data in this repo are for non-commercial research only (CC BY-NC 4.0, plus each data source's own licence, see DATA.md).

Framework

SHADOW Omni framework: photo overview, detail patches, video and sound front ends into one shared body, then a meaning head and a writer

Photos (a 192 px overview plus the 192 most detailed patches of a 768 px copy), video (8 frames) and sound (10 s) go through tiny Walsh-Hadamard front ends into one shared body. The body feeds a meaning head (one 768-number search vector in EmbeddingGemma 2's space) and a writer that answers through a frozen 1-bit word table. Full code documentation.

Two models in one

As a vision and sound model:

You give it It gives you
a photo a short caption, a detailed description, or an answer to your question
a video what happens, from 8 frames and its sound; one line every 8 seconds for long videos
a sound or speech what it hears, or a rough try at writing down what is said

As an embedding model: every photo, video and sound becomes a 768-number vector in EmbeddingGemma 2's space, so you can search photo to photo, sound to sound, video to video, or (with EmbeddingGemma 2's text encoder for the words) type "a dog on the beach" and rank all of them together.

Benchmarks

On standard test sets it never trained on.

Describing and recognising Search vectors
ImageNet-1k zero-shot top-1 27.6 Flickr30k text to image R@1 / R@10 58.0 / 88.4
NoCaps val CIDEr 57.1 Flickr30k image to text R@1 68.4
UCF-101 zero-shot top-1 51.2 MIEB lite (48 of 51 tasks) 40.0
MSR-VTT text to video R@1 23.9 MMEB v2 Image / Video Hit@1 31.2 / 26.9
ESC-50 zero-shot top-1 34.0 MAEB audio (29 of 30 tasks) 39.0
AVE audio-visual top-1 73.4 Clotho text to audio R@1 2.8
Clotho captions CIDEr 29.5

These numbers are far below large models; they show what fits in 36 MB on a CPU, not a new record. What they mean, and what it is good and weak at: DETAILS.md.

Speed and size

Measured on my laptop CPU (Intel Xeon W-11955M, 8 threads, no GPU), C runtime in this repo, one item at a time:

Search vectors, per minute

per minute
photos about 650
videos (8 seconds each, with sound) about 290 (about 39 minutes of video)
sounds (10 seconds each) about 1,500 (about 250 minutes of sound)

Writing, per minute

per minute length
photo, short caption about 380 about 11 words
photo, detailed description about 160 about 90 words
video description (8 seconds, with sound) about 200 about 25 words
sound description (10 seconds) about 700 about 11 words

The model file is 36 MB (78.4M parameters, 2-bit) and the whole program uses about 72 to 145 MB of memory. Speed is the point of this proof of concept: small enough for any laptop, offline. On CPUs without AVX-512 it is about 2 to 3 times slower. All modes and details: DETAILS.md.

Showcase

"Write a short caption." Short, picture-guided
A group of young children playing soccer. A group of young children playing soccer on a green field.
A man in a black jacket and a helmet is standing on a snowy mountain. A person riding a bicycle in snow.
A man in a plaid shirt and a black cap is playing a guitar. A man in a plaid shirt and a black cap is playing a guitar.

All 30 photos with four answers each, 5 sounds and 5 videos, mistakes left in: SHOWCASE.md.

How to use it

pip install -U huggingface_hub && hf auth login       # gated repo: accept the terms on its page first
hf download QLNI/SHADOW-Omni --repo-type dataset --local-dir SHADOW-Omni \
  --include "*.ort" "*.npz" "*.npy" "*.py" "*.txt" "*.json" "lib/*" "src/*" "examples/*"
cd SHADOW-Omni && pip install -r requirements.txt
python shadow_omni.py examples/cat.jpg examples/baby.ogg examples/waves.webm
from omni_rt import OmniRT
rt = OmniRT("shadow_omni.ort")
vec, text, ids = rt.photo("dog.jpg", question="What is the dog doing?")   # vec = the search vector

Or download SHADOW-Omni-win-linux.zip. Every option, video and sound in Python, text search and speed: DETAILS.md.

Where it is weak

Captions are short and sometimes wrong on everyday names; detailed descriptions start guessing after a sentence or two; reading text and documents is poor; speech writing is only a rough try; English only; x86 Windows and Linux only. All known weak spots.

The training data

14.2M photos, videos and speech clips (1.13 TB, WebDataset shards), each with its caption and the EmbeddingGemma 2 teacher vectors, so you can train your own small model without a big teacher. Every folder, licence and what is missing: DATA.md.

Read more

  • DETAILS.md: what it is for, how this happened, every way to run it, speed and size, how it was trained, weak spots, files, what comes next
  • CODE.md: the code, the 2-bit format, the C runtime, fine-tuning and export
  • DATA.md: the training data
  • SHOWCASE.md and PICTURE_GUIDED.md

If you use it

Please mention SHADOW Omni with a link to this repo, and thank CloudRift, whose GPU credits made the training possible.

SHADOW Omni: a 36 MB model that sees, hears and writes on a CPU, with its training data.
QLNI, 2026. https://huggingface.co/datasets/QLNI/SHADOW-Omni
Compute support: CloudRift (https://cloudrift.ai)

Credits: teacher EmbeddingGemma 2 by Google (Apache 2.0); 2-bit idea QuIP#; compute from CloudRift; all dataset authors and the Wikimedia Commons authors of the showcase and example files. Contact: saikiranbathula@qlni.io.

Built by QLNI. Licence: CC BY-NC 4.0 (research and non-commercial).

Downloads last month
3,794

Spaces using QLNI/SHADOW-Omni 2

Papers for QLNI/SHADOW-Omni