MerahModels — PDF Text Quality Classifier (Mini, 10-Layer)

Does this PDF page need OCR, or is its extracted text already usable?
A fast, MIT-licensed, CPU-ready multilingual classifier by MerahModels.

What This Model Does

When you extract text from a PDF using pypdf, pymupdf, or another parser, pages often return non-empty text that is still unreadable — shifted font encodings (3URGXFW 6SHFLILFDWLRQ), raw glyph names (/C50/C72/C6f), replacement boxes (����), broken spacing, or heavily degraded scan OCR. Running OCR or a vision-language model on every page wastes time and money.

This model inspects a page's extracted text on CPU in milliseconds and returns:

  • CLEAN (0) — the text layer is usable; keep it as-is.
  • GARBLED (1) — the text layer is corrupted; route this page to an OCR or VLM fallback.
  • p_garbled — a calibrated probability (0.0 to 1.0) so you can tune the trade-off between catching borderline scans and minimizing OCR cost.
What the extracted page looks like Model output Pipeline action
Normal prose, numeric tables, BOM lists, code, Arabic, vertical Japanese CLEAN Keep extracted text
Shifted font encoding (3URGXFW 6SHFLILFDWLRQ 6HFWLRQ 7KUHH...) GARBLED Route page to OCR / VLM
Raw glyph IDs (/C50/C72/C6f/C64/C75...) or ���� replacement boxes GARBLED Route page to OCR / VLM
Garbled historical OCR, glued columns, exploded spaces, or overprinted letters GARBLED Route page to OCR / VLM

(Empty or image-only scanned pages have no text layer to classify — route pages with fewer than ~30 characters to OCR deterministically before calling the model.)

Why Use It

  • Fast on plain CPU (no GPU needed): Ships as quantized int8 ONNX (113.2 MiB weights + 32.8 MiB tokenizer.json) plus fp32 ONNX and PyTorch weights, and runs in Python (onnxruntime or transformers) and JavaScript/TypeScript (@huggingface/transformers).
  • Sees characters other encoders drop: Built on ModernBERT/mmBERT with a byte-fallback tokenizer across 26 languages and 10 scripts, preserving � (U+FFFD), Private-Use-Area symbols, and spacing anomalies instead of silently discarding them.
  • Low false alarms on tricky clean pages: Tested against code snippets, financial tables, part-number lists, and vertical CJK text so clean technical PDFs do not get sent to OCR unnecessarily.
  • MIT-licensed: Permissively licensed weights trained on open-licensed corpora for commercial and open-source document pipelines.

Which Tier Should I Pick?

  • tssandor/pdf-text-quality-mini (this model — ultra-fast CPU tier):** Pruned 10-layer model that runs ~2.1× faster than small on CPU (~16 ms/page** / 66.6 pages/s batched; 0.9438 F1 on held-out test at 256 tokens or 0.9888 F1 at 512 tokens, 113.2 MiB int8 ONNX).
  • **tssandor/pdf-text-quality-small (recommended default):** Higher default accuracy at 256 tokens (0.9888 F1 on held-out test, ~33 ms/page CPU, 135.7 MiB int8 ONNX).

(An internal mmBERT-base model was trained solely as the distillation teacher and is not published.)

Quickstart (Zero-PyTorch CPU — onnxruntime + tokenizers)

import json
import numpy as np
import onnxruntime as ort
from huggingface_hub import hf_hub_download
from tokenizers import Tokenizer

REPO = "tssandor/pdf-text-quality-mini"
model_path = hf_hub_download(REPO, "onnx/model_quantized.onnx")
tok_path = hf_hub_download(REPO, "tokenizer.json")
cal_path = hf_hub_download(REPO, "calibration.json")

cal = json.loads(open(cal_path, encoding="utf-8").read())
temperature = cal["temperature"]  # 1.6661
tok = Tokenizer.from_file(tok_path)
tok.no_padding()
tok.no_truncation()
sess = ort.InferenceSession(model_path, providers=["CPUExecutionProvider"])

def score_page(text: str, max_length: int = 256, threshold: float = 0.5) -> dict:
    # Route empty / image-only pages to OCR deterministically before neural scoring
    if len(text.strip()) < 30:
        return {"label": "EMPTY", "p_garbled": 1.0}
    ids = tok.encode(text, add_special_tokens=True).ids  # [<bos>, ..., <eos>]
    if len(ids) > max_length:
        head = max(2, int(max_length * 0.75))
        ids = ids[:head] + ids[-(max_length - head):]
    logits = sess.run(
        ["logits"],
        {"input_ids": np.array([ids], dtype=np.int64), "attention_mask": np.ones((1, len(ids)), dtype=np.int64)},
    )[0][0]
    scaled = logits / temperature
    scaled -= scaled.max()
    probs = np.exp(scaled) / np.exp(scaled).sum()
    p_garbled = float(probs[1])
    return {"label": "GARBLED" if p_garbled >= threshold else "CLEAN", "p_garbled": round(p_garbled, 4)}

print(score_page("The committee approved the annual financial report on May 14, 2025."))
print(score_page("3URGXFW 6SHFLILFDWLRQ 6HFWLRQ 7KUHH UHTXLUHPHQWV"))
print(score_page("/C50/C72/C6f/C64/C75/C63/C74 /C53/C70/C65/C63"))

Python — PyTorch (transformers 4.x & 5.x)

import torch
from transformers import AutoModelForSequenceClassification, AutoTokenizer

REPO = "tssandor/pdf-text-quality-mini"
TEMPERATURE = 1.6661
tokenizer = AutoTokenizer.from_pretrained(REPO)
model = AutoModelForSequenceClassification.from_pretrained(REPO).eval()

def classify_page(text: str, max_length: int = 256, threshold: float = 0.5) -> dict:
    if len(text.strip()) < 30:
        return {"label": "EMPTY", "p_garbled": 1.0}
    ids = tokenizer(text, add_special_tokens=True, truncation=False)["input_ids"]
    if len(ids) > max_length:
        head = max(2, int(max_length * 0.75))
        ids = ids[:head] + ids[-(max_length - head):]
    input_ids = torch.tensor([ids])
    with torch.no_grad():
        logits = model(input_ids=input_ids, attention_mask=torch.ones_like(input_ids)).logits[0]
    p_garbled = float(torch.softmax(logits / TEMPERATURE, dim=-1)[1])
    return {"label": "GARBLED" if p_garbled >= threshold else "CLEAN", "p_garbled": round(p_garbled, 4)}

JavaScript / TypeScript (@huggingface/transformers)

Use explicit AutoTokenizer + AutoModelForSequenceClassification (rather than pipeline) so long PDF pages apply the same 75%/25% head+tail truncation and temperature scaling used in Python ONNX:

import { AutoModelForSequenceClassification, AutoTokenizer, Tensor } from "@huggingface/transformers";

const REPO = "tssandor/pdf-text-quality-mini";
const TEMPERATURE = 1.6661;
const MAX_LENGTH = 256;

const tokenizer = await AutoTokenizer.from_pretrained(REPO);
const model = await AutoModelForSequenceClassification.from_pretrained(REPO, { dtype: "q8" });

export async function scorePage(text: string, threshold = 0.5) {
  if (text.trim().length < 30) return { label: "EMPTY", p_garbled: 1.0 };
  const encoded = await tokenizer(text, { add_special_tokens: true, truncation: false });
  let ids = Array.from(encoded.input_ids.data, (x) => BigInt(x));
  if (ids.length > MAX_LENGTH) {
    const head = Math.max(2, Math.floor(MAX_LENGTH * 0.75));
    ids = [...ids.slice(0, head), ...ids.slice(ids.length - (MAX_LENGTH - head))];
  }
  const input_ids = new Tensor("int64", BigInt64Array.from(ids), [1, ids.length]);
  const attention_mask = new Tensor("int64", new BigInt64Array(ids.length).fill(1n), [1, ids.length]);
  const { logits } = await model({ input_ids, attention_mask });
  const l0 = Number(logits.data[0]) / TEMPERATURE;
  const l1 = Number(logits.data[1]) / TEMPERATURE;
  const m = Math.max(l0, l1);
  const p_garbled = Math.exp(l1 - m) / (Math.exp(l0 - m) + Math.exp(l1 - m));
  return { label: p_garbled >= threshold ? "GARBLED" : "CLEAN", p_garbled: Number(p_garbled.toFixed(4)) };
}

Model Family & Baseline Overview

All CPU timings were measured live on Apple M3 Pro (onnxruntime 1.32.0, CPUExecutionProvider); datalab-to/ocr_error_detection has no upstream ONNX export and was timed live in PyTorch CPU on the same machine via eval_pytorch_and_datalab.py (258.1 MiB safetensors).

Model License Weights (+ tokenizer.json) Single-Page CPU @256 (full 256 tok / mixed) Held-Out test F1 (n=91) Curated dev F1 (n=196) Dev Open-PDF F1 / FPR (n=60) 26-Lang Synth F1 (n=5,160)
tssandor/pdf-text-quality-small (int8@256, b=1) (default) MIT 135.7 MiB (+ 32.8 MiB) 32.8 ms / 26.6 ms 0.9888 0.9735 0.9825 / 3.12% 0.9947 (@512)
tssandor/pdf-text-quality-mini (int8@256, b=1) MIT 113.2 MiB (+ 32.8 MiB) 16.2 ms / 12.4 ms 0.9438 0.9399 0.9825 / 3.12% 0.9944 (@512)
datalab-to/ocr_error_detection (@0.5, PyTorch) CC-BY-NC-SA-4.0 258.1 MiB (fp16 PT, no ONNX) 26.5 ms / 21.7 ms 0.8500 0.8121 0.4615 / 6.25% 0.4468
datalab-to/ocr_error_detection (@0.000398 val-tuned) CC-BY-NC-SA-4.0 258.1 MiB (fp16 PT, no ONNX) 26.5 ms / 21.7 ms 0.9474 0.9126 0.7879 / 37.50% 0.7934
Char-TFIDF + LogReg (data_v5, @0.364172 val-tuned) MIT Linear 0.99 ms (incl. vec) 0.9677 0.9261 0.8060 / 37.50% 0.9393
Deterministic Heuristics (@0.001935 val-tuned) MIT Rules 0.22 ms 0.1633 0.4320 0.9286 / 6.25% 0.6801

Why byte-fallback tokenization matters: Both WordPiece (distilbert-base-multilingual-cased, used by datalab-to/ocr_error_detection) and SentencePiece (xlm-roberta) silently drop U+FFFD replacement characters to [] and collapse multi-space column gaps. ModernBERT/mmBERT's 256k Gemma-2 byte-fallback tokenizer preserves U+FFFD, Private-Use-Area glyphs, control bytes, and spacing anomalies across scripts up to 8,192 tokens. Note that datalab-to/ocr_error_detection ranks historical OCR strongly (ROC-AUC 1.0000 dev / 1.0000 test), but misses most native PDF text-layer corruptions at @0.5 (0.4615 Open-PDF F1) and incurs 37.50% Open-PDF FPR when its threshold is lowered to 0.000398.

Detailed Benchmarks for pdf-text-quality-mini

1. Held-Out Evaluation Split (tssandor/pdf-text-quality-bench test, n = 91)

Disjoint by document, newspaper issue, and text from training, dev, and our earlier Round-1 benchmark (data_v4/bench_real.jsonl): 82 historical OCR passages (PleIAs/Post-OCR-Correction, CC0-1.0 across EN/FR/DE/IT, with German having fewer qualifying rows than EN/FR/IT; clean passages are LLM-corrected and the 0.10–0.18 CER band is excluded) + 9 unique-file open PDFs (5 clean CC-BY-SA-4.0, 4 broken Apache-2.0 test fixtures; small n=9 open-PDF slice, interpret with caution). (Benchmark filtering and deduplication were refined across pre-release review rounds without modifying model weights.)

Runtime & Context Overall F1 P R ROC-AUC ECE Open PDFs F1 (9p) Open PDFs FPR Hist OCR F1 (82p) Non-Latin PDF F1
ONNX int8 (max_len=256, batch=1) 0.9438 0.9545 0.9333 0.9643 0.0455 1.0000 0.00% (0/5) 0.9383 —
ONNX int8 (max_len=256, batch=16) 0.9545 0.9767 0.9333 0.9696 0.0396 1.0000 0.00% (0/5) 0.9500 —
ONNX fp32 (max_len=256, batch=16) 0.9545 0.9767 0.9333 0.9609 0.0455 1.0000 0.00% (0/5) 0.9500 —
ONNX int8 (max_len=512, batch=1) 0.9888 1.0000 0.9778 0.9903 0.0154 1.0000 0.00% (0/5) 0.9877 —
ONNX int8 (max_len=512, batch=16) 0.9773 1.0000 0.9556 0.9908 0.0167 1.0000 0.00% (0/5) 0.9750 —
ONNX fp32 (max_len=512, batch=16) 0.9888 1.0000 0.9778 0.9918 0.0167 1.0000 0.00% (0/5) 0.9877 —
PyTorch fp32 (max_len=1024, CPU) 0.9888 1.0000 0.9778 0.9923 0.0145 1.0000 0.00% (0/5) 0.9877 —
datalab-to/ocr_error_detection (@0.5) 0.8500 0.9714 0.7556 0.9923 0.1092 0.5714 20.00% (1/5) 0.8767 —
datalab-to/ocr_error_detection (@0.000398) 0.9474 0.9000 1.0000 0.9923 0.1092 0.6667 80.00% (4/5) 0.9880 —
Char-TFIDF + LogReg (@0.364172 val-tuned) 0.9677 0.9375 1.0000 0.9961 0.1023 0.7273 60.00% (3/5) 1.0000 —
Deterministic Heuristics (@0.001935 val-tuned) 0.1633 1.0000 0.0889 0.5444 0.4646 1.0000 0.00% (0/5) 0.0000 —

2. Curated Development Benchmark (tssandor/pdf-text-quality-bench dev, n = 196)

File-level rights-audited development set (60 open PDFs extracted with pypdf/pymupdf from U.S. Federal Public Domain, historical public domain, EU CC-BY-4.0, CC-BY-SA, and open-source test fixtures: 32 clean, 28 broken; 136 historical OCR passages across EN/FR/DE/IT from PleIAs/Post-OCR-Correction). Because dev informed corruptor coverage during iteration, treat test above as the cleaner generalization check.

Runtime & Context Overall F1 P R ROC-AUC ECE Open PDFs F1 (60p) Open PDFs FPR Hist OCR F1 (136p) Non-Latin PDF F1 (11p)
ONNX int8 (max_len=256, batch=1) 0.9399 0.9885 0.8958 0.9614 0.0442 0.9825 3.12% (1/32) 0.9206 0.9231
ONNX int8 (max_len=256, batch=16) 0.9570 0.9889 0.9271 0.9715 0.0376 0.9825 3.12% (1/32) 0.9457 0.9231
ONNX fp32 (max_len=256, batch=16) 0.9570 0.9889 0.9271 0.9582 0.0375 0.9825 3.12% (1/32) 0.9457 0.9231
ONNX int8 (max_len=512, batch=1) 0.9626 0.9890 0.9375 0.9882 0.0294 0.9825 3.12% (1/32) 0.9538 0.9231
ONNX int8 (max_len=512, batch=16) 0.9681 0.9891 0.9479 0.9860 0.0297 0.9825 3.12% (1/32) 0.9618 0.9231
ONNX fp32 (max_len=512, batch=16) 0.9626 0.9890 0.9375 0.9806 0.0286 0.9825 3.12% (1/32) 0.9538 0.9231
PyTorch fp32 (max_len=1024, CPU) 0.9681 0.9891 0.9479 0.9849 0.0262 0.9825 3.12% (1/32) 0.9618 0.9231
datalab-to/ocr_error_detection (@0.5) 0.8121 0.9710 0.6979 0.9821 0.1439 0.4615 6.25% (2/32) 0.9206 0.4444
datalab-to/ocr_error_detection (@0.000398) 0.9126 0.8545 0.9792 0.9821 0.1439 0.7879 37.50% (12/32) 0.9714 0.7059
Char-TFIDF + LogReg (@0.364172 val-tuned) 0.9261 0.8785 0.9792 0.9855 0.0667 0.8060 37.50% (12/32) 0.9853 0.7500
Deterministic Heuristics (@0.001935 val-tuned) 0.4320 0.9310 0.2812 0.6328 0.3856 0.9286 6.25% (2/32) 0.0290 1.0000

3. 26-Language Synthetic Stress Test (test_synth, n = 5,160)

Caveat: test_synth is document-disjoint from training but generated by our own corruption suite (in-distribution for MerahModels, out-of-distribution for datalab-to/ocr_error_detection). Covers 26 languages across 10 scripts, 323 unseen hard clean benign twins (including 120 real code snippets, short numeric tables, and BOM part-number lists), and 1,068 partial-page corruptions.

Runtime & Context Overall F1 Macro-26 F1 Min-Lang F1 Non-Latin Macro F1 Benign Twin FPR (323p) Total Clean FPs Partial-Page Recall
ONNX int8 (max_len=256, batch=16) 0.9821 0.9779 0.9351 0.9743 0.00% (0/323) 7/2580 0.9298
ONNX int8 (max_len=512, batch=16) 0.9944 0.9942 0.9750 0.9897 0.00% (0/323) 4/2580 0.9850
PyTorch bf16 (max_len=1024, CUDA) 0.9961 0.9968 0.9750 0.9965 0.00% (0/323) 3/2580 0.9925
datalab-to/ocr_error_detection (@0.5) 0.4468 0.3235 0.0000 0.2124 0.62% (2/323) 6/2580 0.2659
datalab-to/ocr_error_detection (@0.000398) 0.7934 0.7791 0.2917 0.7238 90.40% (292/323) 501/2580 0.7388
Char-TFIDF + LogReg (@0.364172 val-tuned) 0.9393 0.9432 0.8941 0.9310 13.93% (45/323) 112/2580 0.9036
Deterministic Heuristics (@0.001935 val-tuned) 0.6801 0.7021 0.4444 0.6687 52.32% (169/323) 364/2580 0.5805

4. Speed, Quantization Parity & Edge-Case Probes

  • Architecture: Layer-pruned ModernBERT 10L × 384H ([0,1,2,6,7,8,12,13,14,21], ~117M params, 8,192 native context, 256k Gemma-2 byte-fallback tokenizer)
  • Training: Layer-type-aligned 10-layer pruning ([0,1,2,6,7,8,12,13,14,21] = [full, slid, slid, full, slid, slid, full, slid, slid, full]) of jhu-clsp/mmBERT-small, knowledge-distilled (α=0.5, T=2.0, verified across 18,063 training micro-batches) from an internal jhu-clsp/mmBERT-base teacher on 96,334 pages from open-licensed corpora (see Training Data below).
  • Artifact sizes: onnx/model_quantized.onnx = 113.2 MiB (118.7 MB) (per_channel dynamic int8, classifier head kept fp32) | onnx/model.onnx = 449.0 MiB (470.8 MB) | model.safetensors = 448.7 MiB (470.5 MB) | tokenizer.json = 32.8 MiB (34.4 MB) (shared Gemma-2 256k byte-fallback vocabulary; include this in edge/browser download budgets).
  • Calibrated temperature: T = 1.6661 (stored in calibration.json; default operating threshold = 0.50).
  • Cross-version transformers 4.x / 5.x parity: Both top-level global_rope_theta: 160000.0 / local_rope_theta: 160000.0 and nested rope_parameters are exported in config.json. Verified on transformers==4.57.6 vs onnx/model.onnx fp32 at @256: 0 decision flips across all dev and test rows (max |Δp| = 0.000005 dev / 0.000000 test).
  • fp32 vs int8 ONNX agreement (batch=16):
    • @256: 100.00% on dev (196/196, mean |Δp|=0.00417) and 100.00% on test (91/91).
    • @512: 99.49% on dev (195/196) and 98.90% on test (90/91).
  • Dynamic-int8 batch-size & runtime note: Dynamic activation quantization scales activations per batch tensor, so batch=1 vs batch=16 flips 3/196 borderline pages on dev (1/91 on test) at @256 and 1/196 (1/91 on test) at @512. Different ONNX Runtime int8 builds (e.g., Python CPU vs @huggingface/transformers Node/WASM) can also shift borderline probabilities without flipping threshold-0.5 decisions; use onnx/model.onnx (fp32) when strict cross-runtime or batch-size invariance is required.
  • CPU Latency (Apple M3 Pro, onnxruntime 1.32.0, CPUExecutionProvider):
    • max_length=256: full ≥256-token pages (n=80): 16.2 ms mean (p50 15.6 ms, p95 19.6 ms) | mixed-length first 100 dev pages (30 shorter than 256 tok): 12.4 ms mean | batch-16: 66.6 pages/s (65.1 pages/s full-length).
    • max_length=512: full ≥512-token pages (n=56): 36.4 ms mean (p50 36.1 ms, p95 39.5 ms) | mixed-length first 100 dev pages (68 shorter than 512 tok): 22.5 ms mean | batch-16: 25.5 pages/s (25.4 pages/s full-length).
Edge-case & short-table sanity probes (`int8@256`, `batch=1`: 13/13 passed)
Probe Expected Predicted p_garbled
clean_en CLEAN CLEAN 0.0288
clean_code CLEAN CLEAN 0.0039
clean_vert_ja CLEAN CLEAN 0.0006
clean_arabic CLEAN CLEAN 0.0026
clean_numeric_table_4line CLEAN CLEAN 0.0162
clean_part_number_list CLEAN CLEAN 0.0206
bad_cmap_shift GARBLED GARBLED 0.9998
bad_glyph_names GARBLED GARBLED 0.9998
bad_fffd_wipeout GARBLED GARBLED 0.9997
bad_hist_ocr GARBLED GARBLED 0.9999
bad_overprint GARBLED GARBLED 0.9998
bad_collapsed GARBLED GARBLED 0.9996
bad_exploded GARBLED GARBLED 0.9998

Choosing max_length & Threshold

  • max_length=256 (default, 75% head + 25% tail): Best CPU throughput; catches whole-page CMap, encoding, spacing, and OCR corruptions.
  • max_length=512: Raises partial-page corruption recall (25–40% of a long page corrupted) from 0.9298 to 0.9850.
  • Operating threshold (p_garbled after dividing logits by T=1.6661): 0.50 default; lower to 0.25–0.35 to route borderline scans to OCR, or raise to 0.75–0.85 to minimize OCR cost.

Known Limitations

  • Empty or scanned image-only pages: This model evaluates extracted text layers only. Deterministically route pages with len(text.strip()) < 30 (or high image area + sparse text) to OCR before scoring.
  • Very mild OCR typos (1–3% CER): Readable pages with a handful of single-letter typos are intentionally scored CLEAN so pipelines do not pay for redundant OCR.
  • Raw hexadecimal / binary dumps: Dense hex dumps without surrounding prose can look like shifted-CMap noise (e.g., small scored a standalone hex dump at 0.63 during pre-release probing).
  • Short clean all-caps or repetitive font specimens: Very short (<120 char) non-English banners or repeated pangram font test sheets can occasionally score near the decision boundary.
  • Mid-page-only corruption at max_length=256: Head+tail truncation at 256 tokens can miss a narrow corrupted band strictly in the middle of a >3,000-char page; use max_length=512 or 1024 if localized mid-page corruption is critical.

Training Data, License & Citation

  • Maintainer: MerahModels
  • Model weights & code: MIT License (base encoder jhu-clsp/mmBERT-small is MIT).
  • Training data (open-licensed corpora only; zero finepdfs/Common Crawl, zero datalab outputs; screened via RESTRICTED_LICENSE_RE to exclude non-commercial CC-BY-NC and proprietary All-Rights-Reserved notices):
    • wikimedia/wikipedia (CC-BY-SA-3.0, 26 languages)
    • common-pile/comma_v0.1_training_dataset (regulations, doab, arxiv_papers, caselaw_access_project, libretexts, pubmed — Public Domain / CC-BY / CC-BY-SA)
    • PleIAs/common_corpus (native-digital open collections: USPTO, StackExchange, OpenAlex, Court Listener, Eurlex, Caselaw Access Project, UK Hansard, SEC, Chinese-Court-Decisions, French Open Data)
    • codeparrot/github-code-clean (filtered by upstream GitHub repository license MIT / Apache-2.0 / BSD-* / ISC; provenance audit notes: (1) a normalized file-header audit found 18 of 2,160 code snippets — 0.019% of the 96,334 training rows — carry vendored GPL/LGPL/FSF file headers inside MIT-labeled repos, and build_data.py now excludes file-level GPL/LGPL headers for future runs; (2) one Apache Software Foundation permissive header in train_046389 retains the standard "All rights reserved" phrase followed by permissive redistribution terms)
    • Synthetic benign twins & PDF text-layer corruptors (MIT, MerahModels)
  • Benchmark: Published separately with per-row document_license and source_repo_license at tssandor/pdf-text-quality-bench.
@misc{merahmodels2026pdftextquality,
  title  = {MerahModels — PDF Text Quality Classifier (Mini, 10-Layer)},
  author = {MerahModels},
  year   = {2026},
  url    = {https://huggingface.co/tssandor/pdf-text-quality-mini}
}
Downloads last month
-
Safetensors
Model size
0.1B params
Tensor type
F32
·
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support

Model tree for tssandor/pdf-text-quality-mini

Quantized
(348)
this model

Datasets used to train tssandor/pdf-text-quality-mini

Evaluation results