Downloads · 30 days
0
quarterturn/molmo-flux-captioner
molmo-flux-captioner is a machine learning model from quarterturn. Use it for the machine learning task on the model card, and read the license before you ship it in a product. The card lists the license as cc-by-nc-4.0.
Downloads · 30 days
0
Access
Public
Updated Jul 26, 2025
Repo size
5.9 MB
Likes
3
Public
Click a slice to open those files.
.zip3.1 MB · 91%
From the Hugging Face model README
Molmo 7B Flux Dev Image Captioner.

A simple python and gradio script to use Molmo 7B for image captioning. The prompt is currently written to produce captions that work well for Flux Dev LoRA training, but you could adjust it to suit other models captioning style.
Install:
For max precision clone Molmo-7B-D-0924:
git lfs install
git clone https://huggingface.co/allenai/Molmo-7B-D-0924
You'll need a 24GB GPU since the model loads at bf16.
For less precision, but much lower memory needed, clone molmo-7B-D-bnb-4bit:
git lfs install
git clone https://huggingface.co/cyan2k/molmo-7B-D-bnb-4bit
A 12GB GPU should be fine. Note that the 4-bit quant produces not just less accurate, but quite different in it's description. YMMV.
create a python3 venv or use conda to create an environment, eg:
conda create -n caption python=3.11
activate your environment, eg:
conda activate caption
install the dependencies
pip3 install -r requirements.txt
run the gradio version:
python3 main.py (use original molmo model at bf16)
or
python3 main.py -q (use 4bit quant molmo model)
run the command-line version:
python3 caption.py (use original molmo model at bf16)
python3 caption.py -q (use 4bit quant molmo model)
Note: