Instructions to use SulphurAI/sulphur-caption with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use SulphurAI/sulphur-caption with Transformers:
# Load model directly from transformers import AutoProcessor, AutoModelForMultimodalLM processor = AutoProcessor.from_pretrained("SulphurAI/sulphur-caption") model = AutoModelForMultimodalLM.from_pretrained("SulphurAI/sulphur-caption", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Sulphur Caption
This is a captioning model I made purely to make things easier and cheaper for myself. If you don't like how the model works or it doesn't work on your favorite runtime, I'm sorry, but I'm not going to put any further effort into this, as it works how I want it to. If someone wants to figure out gguf or anything like that, you're welcome to try, you can dm me on discord under the username kiwv. Also it's worth noting this model will not be used in sulphur 3's dataset creation.
You're going to need ~70gb vram to run this model. The fp8 variant will require ~38gb.
Note the fp8 variant is ~1.6x faster than the bf16 variant.
Also this model isn't SUPER great, it's just solid. I wouldn't rely on this model solely, if you're using it to produce captions for a lora, look at the captions, or pass in tags, or something.
I was planning to release this model at a better time, but it's been sitting here so long I just decided to release it. I would probably change some stuff if I redid this model now but whatever.
Installation
You need ffmpeg, ffprobe, and unzip available on PATH.
cd /wherever/you/downloaded/this/thing
unzip -q vllm.zip
python3 -m venv .venv
source .venv/bin/activate
pip install --upgrade pip setuptools wheel
pip install -r requirements.txt
Or run the helper:
cd /wherever/you/downloaded/this/thing
./setup_vllm.sh
source .venv/bin/activate
Single Video Inference
Edit VIDEO_PATH in example_run.py:
VIDEO_PATH = "/path/to/video.mp4"
Then run:
cd /path/to/this/repo
source .venv/bin/activate
python example_run.py
The script prints the raw model output.
Folder Captioning
Edit these variables in caption_folder.py:
INPUT_FOLDER = "/path/to/videos"
OUTPUT_FOLDER = "/path/to/captions"
Then run:
cd /path/to/this/repo
source .venv/bin/activate
python caption_folder.py
The script mirrors the input folder structure into OUTPUT_FOLDER and writes one .txt file per video. It loads the model once and batches videos using BATCH_SIZE.
Prompt Settings
The model was trained with some settings, grouped under Prompt Settings. Here are the recommended values:
HAS_THINKING| TrueCAPTION_LENGTH| "very large"INCLUDE_WATERMARK_INFO| TrueVULGARITY| "low"UNCERTAINTY| "low"CHARACTER_NAMES| "none"FLUFF| "none"HAS_REPETITION| FalseSPECULATION| "low"TEMPORAL_DETAIL| "medium"VISUAL_SPECIFICITY| "moderate"CAMERA_DETAIL| "medium"CAPTION_STYLE| "plain"
Possible Options
HAS_THINKING| True, FalseCAPTION_LENGTH| "very small", "small", "medium", "large", "very large"INCLUDE_WATERMARK_INFO| True, FalseVULGARITY| "none", "low", "medium", "high"UNCERTAINTY| "none", "low", "medium", "high"CHARACTER_NAMES| "none", "ambiguous", "single", "multiple"FLUFF| "none", "low", "medium", "high"HAS_REPETITION| True, FalseSPECULATION| "none", "low", "medium", "high"TEMPORAL_DETAIL| "static", "low", "medium", "high"VISUAL_SPECIFICITY| "generic", "moderate", "detailed", "excessive"CAMERA_DETAIL| "none", "low", "medium", "high"CAPTION_STYLE| "plain", "verbose", "ornate", "robotic"
Generation settings are grouped under vLLM / Generation Hyperparameters:
NUM_FRAMES| (was trained between 4 and 20)MAX_MODEL_LENMAX_NUM_SEQSBATCH_SIZEincaption_folder.pyGPU_MEMORY_UTILIZATIONMAX_TOKENSTEMPERATURE| (recommend a lower value)TOP_PREPETITION_PENALTY
Performance
This graph shows measured vLLM decode throughput on an RTX PRO 6000 using 12 video frames, max_tokens = 96, max_model_len = 4096, prefix cache disabled, and unique requests:
BF16
FP8
Limitations
- This model still makes plenty of mistakes on very complex videos.
- It requires the bundled patched vLLM runtime for the vLLM examples.
- Audio captioning depends on the Parakeet bridge and may still miss unclear, quiet, overlapping, or non-speech sounds.
Credits
- Gemma 4 31b for main model
- Parakeet 0.6b TDT v3 for audio
- Downloads last month
- 9

