TLDRocket
Sign in

Tools & Coding

967 summarised stories in Tools & Coding, each linking back to the original source. Browse all topics →

Wednesday, 21 May 2025

nanoVLM: The simplest repository to train your VLM in pure PyTorch

Hugging Face 1 year ago 34

nanoVLM is a lightweight PyTorch toolkit for training Vision Language Models that can process images and text to generate text outputs. The entire codebase runs on free-tier Google Colab notebooks and uses a vision transformer backbone (Google's SigLIP) aligned with a Llama 3-based language model through a modality projection module. Users can train a custom VLM by running two commands—cloning the repository and executing train.py—with a reference model trained on 1.7 million samples in approximately 6 hours on a single H100 GPU.

Exploring Quantization Backends in Diffusers

Hugging Face 1 year ago 2

Hugging Face Diffusers now supports multiple quantization backends—including bitsandbytes, torchao, Quanto, and GGUF—that compress large diffusion models like Flux while maintaining visual quality. Flux-dev at full BF16 precision requires 31.4 GB of memory, but 4-bit quantization reduces this to 12.6 GB with minimal perceptual difference in generated images. Users can now run these large models on smaller GPUs by trading some precision for dramatically reduced memory consumption and faster deployment.

The daily briefing

Every AI story that matters, in your inbox by 8am.

TLDRocket reads all relevant sources, removes duplicate coverage, and summarises the day in two minutes. Follow companies and topics for alerts, or get the briefing in Slack. Free, no spam, unsubscribe anytime.