AI purple prose / slop classifier, paragraph-level. Part of https://github.com/OrbFrontend/Chartreuse
This is the 150m version of ettin400m-purple-v2-GGUF: same data, same recipe, a smaller encoder. It is about half the size and a little less accurate (see Results).
v1 (ettin150m-purple-GGUF) scored one sentence at a time, so it caught ornate sentences and missed modern LLM slop, where each sentence looks clean on its own and the problem only shows across the paragraph:
A pause. You breathe. Just that. Nothing more.)tilts her head, her voice drops, for half a heartbeat, lets the question hang, ...)v2 takes one paragraph per input (no blank line inside; single newlines are fine), up to 512 tokens. It is fine-tuned from Ettin-150m. One-sentence paragraphs are in its training data too, so a single ornate line still scores as purple.
It also detects LLM provenance, on purpose. Every training negative is human-written, so it gives nearly any LLM paragraph a high score, slop or not. Read it as "how far from human prose", not as a pure slop meter.
| file | notes |
|---|---|
ettin150m-purple-v2-q8_0.gguf |
recommended, 161 MB |
ettin150m-purple-v2-f16.gguf |
reference precision, 301 MB |
threshold.json |
operating threshold 0.0933, calibrated to precision ≥ 0.90 |
chartreuse.json |
scoring unit (paragraph) and max_length (512) |
Labels: 0 = clean, 1 = purple_para. Mean pooling (classifier.pooling_type is in the GGUF).
Test split (763 paragraphs, 402 positive; every negative is human-written), each model at its own calibrated threshold:
| 150m (this model) | 400m | |
|---|---|---|
| threshold | 0.0933 | 0.0599 |
| AUC | 0.994 | 0.998 |
| precision / recall | 0.913 / 0.995 | 0.931 / 1.000 |
| held-out human paragraphs flagged (n = 296) | 9.8% | 6.8% |
The threshold is low because every calibration negative is human, so for ranking or reward use, read the probability.
GGUF against the torch model on 400 test rows: q8_0 agrees on 397/400 decisions (mean |Δp| 0.0019), f16 on 400/400 (mean |Δp| 0.0001).
Your llama.cpp build must read classifier.pooling_type. Older builds fall back to CLS pooling
without warning, and AUC drops to ~0.5.
llama-server -m ettin150m-purple-v2-q8_0.gguf -c 512 -b 512 -ub 512 \
--embeddings --pooling rank --flash-attn off
import json, math, urllib.request
def post(path, body):
req = urllib.request.Request(f"http://127.0.0.1:8080{path}", json.dumps(body).encode(),
{"Content-Type": "application/json"})
return json.loads(urllib.request.urlopen(req).read())
def p_purple(paragraph):
ids = post("/tokenize", {"content": paragraph, "add_special": True})["tokens"][:512]
a, b = post("/embedding", {"content": ids, "embd_normalize": -1})[0]["embedding"][0][:2]
return 1 / (1 + math.exp(a - b))
embd_normalize: -1 is required: without it every logit reads about 0.
jhu-clsp/ettin-encoder-150m