On-device photo search model files for Lumen, a local-first Android gallery. Lumen downloads these files on request from its Settings; nothing leaves the phone. This is Lumen's Fast search option: small and quick to index, English queries.
A converted copy of OpenCLIP's ViT-B/32 trained on LAION-2B (MIT):
19a057a0fb927cf239541300e74237cd56c7ffe2| File | What | Changes from the Immich export |
|---|---|---|
visual_int8.onnx |
Image encoder, input image [1, 3, 224, 224] → 512-d |
int8 dynamic quantization (MatMul, Gemm) with ONNX Runtime |
textual_int8.onnx |
Text encoder, input text int32 [1, 77] → 512-d |
int8 dynamic quantization (MatMul, Gemm) |
vocab.json, merges.txt |
CLIP's byte-level BPE tokenizer (OpenAI, MIT) | none |
SHA256SUMS lists each file's checksum; Lumen verifies them after download.
<|startoftext|> … <|endoftext|>, zero-padded to 77 tokens.MIT, as the original weights and tokenizer. See LICENSE and NOTICE.
vocabulary.bin)4,227 everyday words, each with its text vector from this repository's text encoder, so Lumen
can say what a photo looks like ("tennis player", "race track", "cat") without running the text
model thousands of times on the phone. The words are Recognize Anything's tag list (Apache 2.0,
see NOTICE), cleaned up. Format: big-endian "LUMV", version 1, word count, dimensions, then
per word a UTF-8 string (2-byte length) and its vector as fp16. The vectors were made with
Lumen's own tokenizer and this text encoder on a phone, so they match its searches exactly.
textual_int8.onnx 140 MBvisual_int8.onnx 96 MBvocabulary.bin 4 MBlaion/CLIP-ViT-B-32-laion2B-s34B-b79K