Skip to content
ATAI Today Brief
HomeNewsConceptsGuidesToolbox
AboutSubscribeUA
Subscribe

AI Today Brief

The daily AI-engineering brief. Built in public. EN · UA.

XTelegramLinkedInYouTubeRSS

Follow AI Today Brief on LinkedIn for daily AI-engineering updates and the weekly “5 shifts that changed how developers work” PDF.

Explore

NewsDigestsConceptsGuides

Company

SubscribeAdvertiseAbout

Legal

Editorial policyAI disclosurePrivacyTerms

© 2026 AI Today Brief. All rights reserved.

  1. Home/
  2. News/
  3. Token & cost optimization/
  4. Photoroom PRX Data Playbook: JPEG 92 Storage and Lance-MDS Sharding
Token & cost optimization

Photoroom PRX Data Playbook: JPEG 92 Storage and Lance-MDS Sharding

July 6, 2026· 5 min read
OKCurated by Oleksandr Kuzmenko, AI Product Engineer·Updated July 6, 2026·Sources cited on every story
AI-assisted · editor-reviewed·How we use AI
Photoroom PRX Data Playbook: JPEG 92 Storage and Lance-MDS Sharding

Photoroom shared its data pipeline details for training the 7B PRX multimodal model, demonstrating that JPEG 92 storage is practically indistinguishable from PNG while being 3-10x smaller, and utilizing Lance for exploration paired with Mosaic MDS for streaming.

Why it matters

Shows how to optimize storage for massive image datasets without sacrificing model quality, while balancing interactive data engineering (Lance) with efficient training throughput (MDS).

TL;DR

  • 01JPEG 92 is a storage-efficient, high-quality alternative to PNG for pre-training.
  • 02Lance is superior for interactive dataset exploration, while MDS is ideal for high-throughput streaming.
  • 03Computing text latents on-the-fly provides flexibility at a minor throughput cost (3-4%).

Decoupling Exploration and Streaming: Lance + MDS

Photoroom uses a hybrid data setup:

  • Lance: A columnar data format optimized for interactive feature engineering, vector search, and querying billions of rows.
  • Mosaic MDS: Used for streaming dataset shards directly from storage to SLURM nodes. Since MDS is rigid, Lance handles the curation and preparation.

Lossless PNG vs. JPEG 92

Photoroom evaluated JPEG 92 against PNG:

  • Imperceptible Degeneration: JPEG 92 converges quickly, and repeated cycles remain in the imperceptible range. PNG files are 3x to 10x larger with no perceptual training gains.
  • Quantization Test: Generations from models trained on PNG vs. JPEG 92 were indistinguishable, with only about 1 in 10 generations from either model showing detectable quantization structure.

On-the-Fly Text Latents with Qwen3-VL

Computing latents on-the-fly with Qwen3-VL added only a 3-4% throughput cost (approx. 1 extra day on a 30-day run) but allows for changing the text encoder without rewriting terabytes of latents and enables storage on local SSDs.

#Lance#Mosaic MDS#Qwen3-VL#SLURM#Ray Data
ShareShare on XShare on LinkedIn
← Previous storyAnthropic Splits Claude Subscription Billing, Ending Subsidized Third-Party Agent UseNext story →Mitigating Regression to the Mean and Model Collapse in Generative Pipelines

Related stories

  • Token & cost optimizationUnderstanding MLIR: The Multi-Level Intermediate Representation Dialect Stack Powering Machine Learning Compilers
  • Token & cost optimizationCode Review Graph Cuts AI Token Consumption in PR Reviews by 82x
  • Token & cost optimizationCursor Releases Cursor Router Request Classifier Cutting Token Costs by 30 to 50 Percent
  • Token & cost optimizationDeep Dive: Comparing Trillion-Scale Open-Weight Mixture-of-Experts Models

Email digest

Get the morning AI brief

One email a day — the stories that matter for engineers, founders and tech leads. Human-edited, with links to primary sources.

  • ✓120+ sources scanned daily
  • ✓Edited by a human
  • ✓1 email per day
  • ✓EN + UA

By subscribing you agree to the privacy policy.