Downloads · 30 days
18
31% of all-time downloads
derogab/Sherlock-4B-QLoRA
Sherlock-4B-QLoRA is a text generation model from derogab. Use it when you need the model to write or continue text. It is set up for peft. The card lists the license as apache-2.0.
Work in progress: This adapter is still under active development.
Downloads · 30 days
18
31% of all-time downloads
All-time downloads
59
Public
Repo size
264 MB
Likes
0
Public
Click a slice to open those files.
.safetensors132 MB · 100%
From the Hugging Face model README
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.
Qwen/Qwen3-4B-Instruct-2507derogab/Sherlock-Case-Filesfrom 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")
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.
<!-- benchmark -->| 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 |