Wstf-Odin-Spear: Local Document Parser and JSON Extractor
2 min readupdated
The Wstf-Odin-Spear model, based on LiquidAI/LFM2.5-VL-450M-Extract, tackles the task of extracting structured data from documents in any format—images, scans, PDFs, or raw text. It outputs strict JSON following your custom schema with normalized dates and currencies. Weighing just 856 MB, the model is optimized to run on standard laptops and servers without a GPU (using about 3 GB of RAM). It stands out from baseline models and alternatives through specialized multi-stage fine-tuning (including TIES-Merging and Orthogonal Subspace Circuit Projection) for flawless schema compliance. This tool will be useful for developers, analysts, and anyone automating the processing of invoices, receipts, resumes, and medical records without third-party APIs.
Key features
- Universal coverage of 26 domains (finance, medicine, law, HR, logistics).
- Precise adherence to custom JSON schemas and nested arrays.
- Multimodal input via vision (SigLIP-2) and pure text support (up to 128K context).
- Low system requirements: runs on a CPU (~3 GB RAM) or GPU (about 1 GB VRAM).
What you can do
- Automate the digitization of paper receipts, waybills, and invoices in a local ERP service.
- Parse applicant resumes into a single corporate database without sending data to the cloud.
- Extract metrics from medical certificates and prescriptions for internal clinic systems.
- Process bills of lading and customs declarations on budget hardware.
Example
import torch
from transformers import AutoModelForImageTextToText, AutoProcessor
model_id = "Wasserstoff-AI/odin-spear"
device = "cpu"
torch.set_num_threads(4)
processor = AutoProcessor.from_pretrained(model_id, trust_remote_code=True)
model = AutoModelForImageTextToText.from_pretrained(
model_id,
torch_dtype=torch.float32,
trust_remote_code=True,
).to(device).eval()Read more
Details• Architecture: hybrid language backbone (~350M) + SigLIP-2 NaFlex (~86M).
• Metrics: 100.0% valid JSON responses and 100.0% schema key matches on synthetic tests.
• Requirements: ~1 GB VRAM on GPU/MPS or ~3.0 GB RAM on CPU (float32).
• License: LFM Open License v1.0.










Comments