SponsorSieve
A small local model that finds ads and sponsor reads in podcasts. Runs on a plain CPU, with no LLM, no API key and no GPU.
Podcast ad removers like podly and MinusPod send every transcript to a large language model. That works, but it costs money with a hosted API, or needs a GPU and a lot of tuning with a local one. SponsorSieve is one small classifier trained to do only this job:
- 151 MB (int8 ONNX, fine-tuned from ModernBERT-base)
- About 5 minutes of CPU time for 20 hours of audio (transcription not included)
- On a held-out benchmark it catches 88% of ads, at 85% precision (numbers below)
$ sponsorsieve detect andy-and-ari.json # a benchmark episode; truth: 0:58-5:05, 10:49-14:13, 34:41-36:56, ...
0:58 - 5:04 ad 0.94
10:54 - 14:11 ad 0.91
34:33 - 36:56 ad 0.94
48:30 - 50:13 ad 0.98
1:12:24 - 1:15:08 ad 0.95
5 ad span(s), 14.2 min
Model on Hugging Face · Try it in your browser · Website
Install
pip install "sponsorsieve[audio]" # with Whisper transcription for audio files
pip install sponsorsieve # transcripts only (onnxruntime + tokenizers, no torch)
The first run downloads the model (151 MB) from Hugging Face. clean needs ffmpeg on your PATH.
Use
sponsorsieve detect episode.mp3 # transcribe with faster-whisper, list the ads
sponsorsieve detect transcript.json --json # [{start, end, text}] or {"segments": [...]}
sponsorsieve detect episode.mp3 --self-promo # also flag the show's own Patreon/merch/"rate us"
sponsorsieve clean episode.mp3 -o clean.mp3 # write a copy with the ads cut out
sponsorsieve serve --port 8765 # HTTP API for other tools
Options: --threshold (default 0.5; higher means fewer false alarms and more misses), --whisper (faster-whisper model, default small.en), --device cpu|cuda, --fp32 (the full-precision model: 4x larger and slightly more accurate).
Transcription takes much longer than detection. If you already have a transcript (from Whisper, a podcast app or your ad remover), pass it as JSON.
Python
from sponsorsieve import Detector
det = Detector() # or Detector("path/to/model-folder")
ads = det.detect(segments) # segments: [{"start": 0.0, "end": 4.2, "text": "..."}, ...]
# [{'start': 58.6, 'end': 304.4, 'score': 0.94, 'kind': 'ad'}, ...]
probs = det.segment_probs(segments) # [P(content), P(ad), P(self_promo)] per segment
HTTP API
sponsorsieve serve starts a small standard-library server, so ad removers can call it in place of an LLM:
POST /v1/detect {"segments": [{"start", "end", "text"}], "threshold": 0.5, "self_promo": false}
-> {"ads": [{"start", "end", "score", "kind"}], "segments": [[p_content, p_ad, p_self_promo], ...]}
GET /health {"ok": true, "version": "0.1.0"}
It listens on 127.0.0.1 by default. Send the whole episode transcript: the model reads up to about 1000 tokens of context around each sentence.
How well it works
Measured on the MinusPod benchmark corpus: 15 real episodes (20.4 hours) with human-verified ad times, 58 ads in total. No episode from these shows was used in training.
| Ads found (recall) | Flags that are real ads (precision) | F1 | Ad seconds found | Flagged seconds that are ads | |
|---|---|---|---|---|---|
| SponsorSieve int8 (default, 151 MB) | 0.879 | 0.850 | 0.864 | 0.878 | 0.892 |
| SponsorSieve fp32 (599 MB) | 0.879 | 0.864 | 0.872 | 0.888 | 0.883 |
| Qwen 3.5 9B labeler (teacher, needs a GPU) | 0.948 | 0.873 | 0.909 | 0.934 | 0.806 |
How these are scored: an ad counts as found when predicted spans cover at least 30% of it. A predicted span is a false alarm when less than 30% of it is inside a real ad. The second-level columns measure the overlap in time. This is my own scoring script (spans.py), not MinusPod's leaderboard metric, so don't compare these numbers directly with theirs. A 58-ad benchmark is small: one ad is worth about 1.7 points of recall.
Where it goes wrong:
- Tech news shows, where hosts talk about products as part of the show: 3 false alarms in one Daily Tech News Show episode.
- Short ads and some network-inserted ads it misses entirely: 2 of 4 in one episode.
Self-promotion detection (--self-promo) reaches 0.74 F1 on held-out training shows. The benchmark has no self-promo labels, so that number isn't checked against human labels.
How it was made
Everything is in pipeline/ and can be rerun with one GPU:
- Episodes: 283 recent episodes from about 100 of the top US podcasts (
collect.py), skipping every show in the benchmark. - Transcripts: faster-whisper large-v3-turbo with word timestamps, regrouped into sentences (
transcribe.py). - Labels: a local open-weight LLM (Qwen 3.5 9B through Ollama) marks ads in 60-sentence windows, then re-checks each candidate block on its own (
label.py). On the benchmark this labeler scores the third row of the table. - Model: ModernBERT-base fine-tuned for token classification (content / ad / self-promo) on 1024-token windows, with class-weighted loss and the checkpoint picked by ad F1 on held-out shows (
train.py). - Export: ONNX fp32 plus int8 dynamic quantization. Int8 picks the same label as PyTorch on every token at 64, 300 and 1024 tokens (
export_onnx.py).
No SponsorBlock data was used: it's licensed CC BY-NC-SA, and this project is MIT. Transcripts and audio aren't redistributed.
Limits
- English only, and trained on US podcasts.
- It reads the transcript, not the audio. Ads with no words (music stings), or a bad transcript, get missed.
- It needs real transcripts of whole episodes. It isn't meant to classify a single isolated sentence.
- 88% recall means some ads get through. If you use
clean, keep the original file.
License
Code: MIT. Model weights: Apache-2.0, the same as ModernBERT-base.
Metadata
Release files for sponsorsieve 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| sponsorsieve-0.1.0.tar.gz | 13.4 kB | With provenance | Details for sponsorsieve-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| sponsorsieve-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for sponsorsieve-0.1.0-py3-none-any.whl |
Total release size: 28.1 kB
Release files / sponsorsieve-0.1.0.tar.gz
| Download URL | sponsorsieve-0.1.0.tar.gz |
|---|---|
| Size | 13.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
84b7093648e81de4e3c0390fc59fb711de56cbd14fa3514555c8ca2b97c83705
|
|
BLAKE2b-256 checksum How to use checksums |
85b617b40d755a559f0e62cd1bf557b9515ebcb163841cae85687004d4f0f1c1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 24, 2026.
Transparency logRelease files / sponsorsieve-0.1.0-py3-none-any.whl
| Download URL | sponsorsieve-0.1.0-py3-none-any.whl |
|---|---|
| Size | 14.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
25e9c1a42920c055a14cfec86930174accaf4b643bf88313e0cb310405acb918
|
|
BLAKE2b-256 checksum How to use checksums |
9b38fb6d6076e1b2b1a9c0199876a6703a42d2ec174cf2f418e24feaca67678b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 24, 2026.
Transparency logSecurity for sponsorsieve 0.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for sponsorsieve-0.1.0.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 24, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.