How to use from
llama.cpp
Install from brew
brew install llama.cpp
# Start a local OpenAI-compatible server with a web UI:
llama-server -hf sdfprotocol/sdf-extract:Q4_K_M
# Run inference directly in the terminal:
llama-cli -hf sdfprotocol/sdf-extract:Q4_K_M
Install from WinGet (Windows)
winget install llama.cpp
# Start a local OpenAI-compatible server with a web UI:
llama-server -hf sdfprotocol/sdf-extract:Q4_K_M
# Run inference directly in the terminal:
llama-cli -hf sdfprotocol/sdf-extract:Q4_K_M
Use pre-built binary
# Download pre-built binary from:
# https://github.com/ggerganov/llama.cpp/releases
# Start a local OpenAI-compatible server with a web UI:
./llama-server -hf sdfprotocol/sdf-extract:Q4_K_M
# Run inference directly in the terminal:
./llama-cli -hf sdfprotocol/sdf-extract:Q4_K_M
Build from source code
git clone https://github.com/ggerganov/llama.cpp.git
cd llama.cpp
cmake -B build
cmake --build build -j --target llama-server llama-cli
# Start a local OpenAI-compatible server with a web UI:
./build/bin/llama-server -hf sdfprotocol/sdf-extract:Q4_K_M
# Run inference directly in the terminal:
./build/bin/llama-cli -hf sdfprotocol/sdf-extract:Q4_K_M
Use Docker
docker model run hf.co/sdfprotocol/sdf-extract:Q4_K_M
Quick Links

SDF Extract

Structured data extractor for the SDF Protocol. Fine-tuned from SmolLM3-3B using QLoRA.

Purpose

Extracts structured semantic data from web content: entities, claims, relationships, summaries, and type-specific fields. Takes the type classification from sdf-classify as input to condition extraction on the content type.

Training

  • Base model: HuggingFaceTB/SmolLM3-3B
  • Method: QLoRA (rank 32, alpha 64, dropout 0.05)
  • Training data: 2,335 extracted web documents
  • Accuracy: 90% exact extraction match across all field types

Files

File Size Description
sdf-extract-SmolLM3-3B-Q4_K_M.gguf 1.8 GB Quantized (Q4_K_M) β€” recommended for deployment
sdf-extract-SmolLM3-3B-f16.gguf 5.8 GB Full precision (f16)
Modelfile β€” Ollama import configuration

Usage with Ollama

# Download the Q4_K_M file, then:
ollama create sdf-extract -f Modelfile

Part of SDF Protocol

Citation

@article{sarkar2026sdf,
  title={Convert Once, Consume Many: SDF for Cacheable, Typed Semantic Extraction from Web Pages},
  author={Sarkar, Pranab},
  year={2026},
  doi={10.5281/zenodo.18559223},
  publisher={Zenodo}
}
Downloads last month
26
GGUF
Model size
3B params
Architecture
smollm3
Hardware compatibility
Log In to add your hardware

4-bit

16-bit

Inference Providers NEW
This model isn't deployed by any Inference Provider. πŸ™‹ Ask for provider support

Model tree for sdfprotocol/sdf-extract

Quantized
(69)
this model