Sponsored by
Vmake Labs Video Enhancer
-Vmake Labs Video Enhancer uses AI to improve video quality, restore details, reduce blur, and upscale videos to 8K.
I've been experimenting with a new quantization approach that selectively elevates the precision of key layers beyond what the default IMatrix configuration provides.
In my testing, standard IMatrix quantization underperforms at lower bit depths, especially with Mixture of Experts (MoE) models. To address this, I'm using the
--tensor-type
option in
llama.cpp
to manually "bump" important layers to higher precision. You can see the implementation here:
š
Layer bumping with llama.cpp
While this does increase model file size, it significantly improves precision for a given quantization level.
I'd love your feedbackāhave you tried this? How does it perform for you?
Welcome to the Schematron series,
Inference.net's
longācontext extraction models specialized in converting noisy HTML into clean, typed JSON that conforms to your custom schema. The Schematron series was purposeātrained for web scraping, data ingestion, and transforming arbitrary pages into structured records.
We're releasing these models in two different sizes:
Schematronā8B
ā marginal quality lift on harder/longer pages
Schematronā3B
ā recommended default; nearāparity quality at ~50% cost of Schematron-8B
This model card is dedicated to the smaller
Schematron-3B
model. Check out
Schematron-8B
for the larger model.
I/O at a glance
Input
: Cleaned HTML + JSON Schema (can be extracted from typed model like Pydantic/Zod)
Output
: Strictly valid JSON conforming to the provided schema (no narration)
The JSON Schema passed as input needs to conform to the
schema.org
schema.
Long context
: Robust to lengthy, noisy HTML (up to 128K tokens)
Variants
: 3B (default, most costāefficient) Ā· 8B (marginal quality lift at ~2Ć cost)
Model Details
Family
: Schematron (3B and 8B)
Context window
: Up to 128K tokens
Input
: Cleaned or raw HTML and a JSON Schema
Output
: Strict JSON that conforms to the provided schema
Benchmarks
HTML-to-JSON Extraction Quality
We evaluated extraction quality using Gemini 2.5 Pro as a judge, scoring extractions from 1-5 where 5 represents perfect extraction.
Model
LLM-as-Judge Score
GPT-4.1
4.74
Schematron-8B
4.64
Schematron-3B
4.41
Gemini-3B-Base
2.24
Web-Augmented Factuality on SimpleQA
We evaluated Schematron's real-world impact on LLM factuality using SimpleQA.
Test Pipeline:
Query Generation
: Primary LLM (GPT-5 Nano or GPT-4.1) generates search queries and defines extraction schema
Web Search
: Search provider (SERP or Exa) retrieves relevant pages
Structured Extraction
: Schematron extracts JSON data from retrieved pages using the schema
Answer Synthesis
: Primary LLM produces final answer from structured data
Key findings:
Web search paired with JSON extraction improves factuality: Adding Schematron with web retrieval improves GPT-5 Nano's accuracy from 8.54% to 82.87%ānearly a 10x improvement
Search provider matters: Exa (82.9%) significantly outperforms SERP (64.2%) for factual retrieval, while also being more cost-effective
Structured extraction beats raw HTML: Processing raw HTML would require 100k+ tokens for 10 searches; Schematron's JSON extraction reduces this by orders of magnitude
Small specialized models win: Schematron-8B (82.87%) outperforms the much larger Gemini 2.5 Flash (80.61%) on this task, showing that fine-tuning for well-defined tasks beats general purpose models
Performance scales with model quality: When paired with GPT-4.1, Schematron achieves 85.58% accuracy, showing the approach benefits from stronger base models
Minimal Quickstart
Use these local snippets to prepare HTML and compose a schemaāguided prompt. The model returns strictly valid JSON; validate it against your schema downstream.
from lxml.html.clean import Cleaner
import lxml.html as LH
HTML_CLEANER = Cleaner(
scripts=True,
javascript=True,
style=True,
inline_style=True,
safe_attrs_only=False,
)
defstrip_noise(html: str) -> str:
"""Remove scripts, styles, and JavaScript from HTML using lxml. """ifnot html ornot html.strip():
return""try:
doc = LH.fromstring(html)
cleaned = HTML_CLEANER.clean_html(doc)
return LH.tostring(cleaned, encoding="unicode")
except Exception:
return""
Compose messages with your schema and cleaned HTML:
defconstruct_messages(schema: str, html: str):
"""Construct messages for a schemaāguided extraction request."""
response_prompt = {
"prompt_part_one": (
"You are going to be given a JSON schema following the standardized JSON ""Schema format. You are going to be given a HTML page and you are going ""to apply the schema to the HTML page however you see it as applicable ""and return the results in a JSON object. The schema is as follows:"
),
"prompt_part_two": "Here is the HTML page:",
"prompt_part_three": "MAKE SURE ITS VALID JSON.",
}
user_prompt = (
response_prompt['prompt_part_one']
+ "\n\n" + schema + "\n\n"
+ response_prompt['prompt_part_two']
+ "\n\n" + html + "\n\n"
+ response_prompt['prompt_part_three']
)
return [
{"role": "system", "content": "You are a helpful assistant"},
{"role": "user", "content": user_prompt},
]
In the
serverless API
there's no need to pass anything but the HTML. We handle the prompt formatting for you.
Recommendations
Temperature 0 and JSON mode for deterministic, parseable output
Validate responses against your schema (e.g., Pydantic or Zod)
Preāclean HTML (remove scripts/styles) when possible; avoid overāaggressive removal
Using lxml to clean the HTML is not required, but is recommended as it matches the training data.
Limitations
Static HTML only; render clientāside content upstream
Very large pages may require truncation
Ambiguous fields depend on schema clarity; be explicit in field descriptions
Safety and Responsible Use
Extracted data may include personal or sensitive information present in the pageāhandle and store responsibly
Respect site terms, robots.txt, and applicable laws
Use downstream validation and guardrails for compliance
The full Open Source Code for the Quantum Network Monitor Service available at my github repos ( repos with NetworkMonitor in the name) :
Source Code Quantum Network Monitor
. You will also find the code I use to quantize the models if you want to do it yourself
GGUFModelBuilder
š¬
How to test
:
Choose an
AI assistant type
:
TurboLLM
(GPT-4.1-mini)
HugLLM
(Hugginface Open-source models)
TestLLM
(Experimental CPU-only)
What Iām Testing
Iām pushing the limits of
small open-source models for AI network monitoring
, specifically:
Function calling
against live network services
How small can a model go
while still handling:
Automated
Nmap security scans
Quantum-readiness checks
Network Monitoring tasks
š”
TestLLM
ā Current experimental model (llama.cpp on 2 CPU threads on huggingface docker space):
ā
Zero-configuration setup
ā³ 30s load time (slow inference but
no API costs
) . No token limited as the cost is low.
š§
Help wanted!
If youāre into
edge-device AI
, letās collaborate!
Other Assistants
š¢
TurboLLM
ā Uses
gpt-4.1-mini
:
**It performs very well but unfortunatly OpenAI charges per token. For this reason tokens usage is limited.
Create custom cmd processors to run .net code on Quantum Network Monitor Agents
Real-time network diagnostics and monitoring
Security Audits
Penetration testing
(Nmap/Metasploit)
šµ
HugLLM
ā Latest Open-source models:
š Runs on Hugging Face Inference API. Performs pretty well using the lastest models hosted on Novita.
š”
Example commands you could test
:
"Give me info on my websites SSL certificate"
"Check if my server is using quantum safe encyption for communication"
"Run a comprehensive security audit on my server"
'"Create a cmd processor to .. (what ever you want)" Note you need to install a
Quantum Network Monitor Agent
to run the .net code on. This is a very flexible and powerful feature. Use with caution!
Final Word
I fund the servers used to create these model files, run the Quantum Network Monitor service, and pay for inference from Novita and OpenAIāall out of my own pocket. All the code behind the model creation and the Quantum Network Monitor project is
open source
. Feel free to use whatever you find helpful.
If you appreciate the work, please consider
buying me a coffee
ā. Your support helps cover service costs and allows me to raise token limits for everyone.
I'm also open to job opportunities or sponsorship.
Thank you! š
Runs of Mungert Schematron-3B-GGUF on huggingface.co
509
Total runs
0
24-hour runs
-7
3-day runs
107
7-day runs
176
30-day runs
More Information About Schematron-3B-GGUF huggingface.co Model
Schematron-3B-GGUF huggingface.co is an AI model on huggingface.co that provides Schematron-3B-GGUF's model effect (), which can be used instantly with this Mungert Schematron-3B-GGUF model. huggingface.co supports a free trial of the Schematron-3B-GGUF model, and also provides paid use of the Schematron-3B-GGUF. Support call Schematron-3B-GGUF model through api, including Node.js, Python, http.
Schematron-3B-GGUF huggingface.co is an online trial and call api platform, which integrates Schematron-3B-GGUF's modeling effects, including api services, and provides a free online trial of Schematron-3B-GGUF, you can try Schematron-3B-GGUF online for free by clicking the link below.
Mungert Schematron-3B-GGUF online free url in huggingface.co:
Schematron-3B-GGUF is an open source model from GitHub that offers a free installation service, and any user can find Schematron-3B-GGUF on GitHub to install. At the same time, huggingface.co provides the effect of Schematron-3B-GGUF install, users can directly use Schematron-3B-GGUF installed effect in huggingface.co for debugging and trial. It also supports api for free installation.