123 Downloads Updated 7 months ago
ollama run richardyoung/schematron-8b:iq4_xs
Structured-output finetune for converting noisy HTML into clean, schema-conformant JSON. GGUF builds for Ollama / llama.cpp.
schematron-8b is a quantized GGUF conversion of inference-net/Schematron-8B, a long-context extraction model purpose-trained to turn messy, real-world HTML into strictly valid JSON that conforms to a user-supplied schema.
You provide cleaned HTML plus a JSON Schema; the model returns JSON that adheres to that schema with no narration. It is built for web scraping, data ingestion, and turning arbitrary web pages into typed records, running locally with no API calls. The 8B variant offers a marginal quality lift over Schematron-3B on harder and longer pages.
Reported by the upstream model authors (inference-net/Schematron-8B). Figures describe the original full-precision model; quantized GGUF builds may differ slightly.
| Evaluation | Metric | Schematron-8B | Reference |
|---|---|---|---|
| HTML→JSON extraction quality | LLM-as-Judge (Gemini 2.5 Pro), 1–5 scale | 4.64 | GPT-4.1: 4.74 |
| SimpleQA factuality (web retrieval + extraction) | Accuracy | 82.87% | Gemini 2.5 Flash: 80.61% |
| SimpleQA factuality (paired w/ GPT-4.1) | Accuracy | 85.58% | , |
Tags below are listed exactly as published on ollama.com/richardyoung/schematron-8b.
| Tag | Size | BPW | Notes |
|---|---|---|---|
Q4_K_M |
4.9GB | ~4.83 | Recommended, best quality/size balance |
iq4_xs |
4.5GB | ~4.25 | Smallest download; slightly lower fidelity |
# Recommended build
ollama run richardyoung/schematron-8b:Q4_K_M
# Smallest build
ollama run richardyoung/schematron-8b:iq4_xs
Example extraction prompt:
ollama run richardyoung/schematron-8b:Q4_K_M "Extract data from the HTML below into JSON matching this schema.
Schema:
{\"type\":\"object\",\"properties\":{\"title\":{\"type\":\"string\"},\"price\":{\"type\":\"number\"}},\"required\":[\"title\",\"price\"]}
HTML:
<div class=\"product\"><h1>Widget Pro</h1><span class=\"amt\">\$19.99</span></div>"
| Quantization | Disk | Min RAM/VRAM (approx.) |
|---|---|---|
Q4_K_M (4.9GB) |
~5 GB | ~8 GB |
iq4_xs (4.5GB) |
~5 GB | ~7 GB |
This is a quantized GGUF redistribution of a third-party model for local use. Quantization can change outputs versus the original full-precision weights; benchmark figures above describe the upstream model, not these GGUF builds. Always validate generated JSON against your schema before use in production. The model may produce incorrect or incomplete extractions; do not rely on it for safety-critical decisions without human review.
Licensed under the Llama 3.1 Community License (inherited from the base model).
Built & maintained by Richard Young · DeepNeuro