How to use from
OpenClaw
Start the llama.cpp server
# Install llama.cpp:
brew install llama.cpp
# Start a local OpenAI-compatible server:
llama serve -hf sdfprotocol/sdf-classify:Q4_K_M
Configure OpenClaw
# Install OpenClaw:
npm install -g openclaw@latest
# Register the local server and set it as the default model:
openclaw onboard --non-interactive --mode local \
  --auth-choice custom-api-key \
  --custom-base-url http://127.0.0.1:8080/v1 \
  --custom-model-id "sdfprotocol/sdf-classify:Q4_K_M" \
  --custom-provider-id llama-cpp \
  --custom-compatibility openai \
  --custom-text-input \
  --accept-risk \
  --skip-health
Run OpenClaw
openclaw agent --local --agent main --message "Hello from Hugging Face"
Quick Links

SDF Classify

Content type classifier for the SDF Protocol. Fine-tuned from Qwen2.5-1.5B-Instruct using QLoRA.

Purpose

Classifies web content into SDF's hierarchical type system: 10 parent types and 50+ subtypes (e.g., article.news, commerce.product, documentation.api_docs).

Training

  • Base model: Qwen2.5-1.5B-Instruct
  • Method: QLoRA (rank 32, alpha 64, dropout 0.05)
  • Training data: 2,335 classified web documents
  • Accuracy: 95.2% exact type match

Files

File Size Description
sdf-classify-Qwen2.5-1.5B-Instruct-Q4_K_M.gguf 941 MB Quantized (Q4_K_M) โ€” recommended for deployment
sdf-classify-Qwen2.5-1.5B-Instruct-f16.gguf 2.9 GB Full precision (f16)
Modelfile โ€” Ollama import configuration

Usage with Ollama

# Download the Q4_K_M file, then:
ollama create sdf-classify -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
2
GGUF
Model size
2B params
Architecture
qwen2
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-classify

Quantized
(220)
this model