Sherlock-4B-QLoRA

Work in progress: This adapter is still under active development.

QLoRA adapter for structured information extraction: (JSON schema + text) โ†’ JSON. Missing fields become null; unrelated text is ignored.

Usage

from peft import PeftModel
from transformers import AutoModelForCausalLM, AutoTokenizer

base = AutoModelForCausalLM.from_pretrained("Qwen/Qwen3-4B-Instruct-2507")
model = PeftModel.from_pretrained(base, "derogab/Sherlock-4B-QLoRA")
tokenizer = AutoTokenizer.from_pretrained("derogab/Sherlock-4B-QLoRA")

Benchmark

Sherlock is evaluated against the base model on structured extraction quality. Rates are percentages; ฮ” is in percentage points (higher is better). The 95% CI of ฮ” is a Newcombe score interval from the aggregate counts.

Metric Base Sherlock ฮ” (Sherlock โˆ’ Base)
Valid JSON 100.0% 100.0% +0.0 pp
Schema conformance 100.0% 100.0% +0.0 pp
Field accuracy 95.2% 99.1% +3.9 pp
Exact match 78.0% 94.0% +16.0 pp
Downloads last month
42
Inference Providers NEW
This model isn't deployed by any Inference Provider. ๐Ÿ™‹ Ask for provider support

Model tree for derogab/Sherlock-4B-QLoRA

Adapter
(5734)
this model