Instructions to use justingohn/lease-abstractor-v76 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use justingohn/lease-abstractor-v76 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="justingohn/lease-abstractor-v76") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("justingohn/lease-abstractor-v76", dtype="auto") - llama-cpp-python
How to use justingohn/lease-abstractor-v76 with llama-cpp-python:
# !pip install llama-cpp-python from llama_cpp import Llama llm = Llama.from_pretrained( repo_id="justingohn/lease-abstractor-v76", filename="qwen2.5-3b-instruct.Q4_K_M.gguf", )
llm.create_chat_completion( messages = [ { "role": "user", "content": "What is the capital of France?" } ] ) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use justingohn/lease-abstractor-v76 with llama.cpp:
Install from brew
brew install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama-server -hf justingohn/lease-abstractor-v76:Q4_K_M # Run inference directly in the terminal: llama-cli -hf justingohn/lease-abstractor-v76:Q4_K_M
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama-server -hf justingohn/lease-abstractor-v76:Q4_K_M # Run inference directly in the terminal: llama-cli -hf justingohn/lease-abstractor-v76: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 justingohn/lease-abstractor-v76:Q4_K_M # Run inference directly in the terminal: ./llama-cli -hf justingohn/lease-abstractor-v76: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 justingohn/lease-abstractor-v76:Q4_K_M # Run inference directly in the terminal: ./build/bin/llama-cli -hf justingohn/lease-abstractor-v76:Q4_K_M
Use Docker
docker model run hf.co/justingohn/lease-abstractor-v76:Q4_K_M
- LM Studio
- Jan
- vLLM
How to use justingohn/lease-abstractor-v76 with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "justingohn/lease-abstractor-v76" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "justingohn/lease-abstractor-v76", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/justingohn/lease-abstractor-v76:Q4_K_M
- SGLang
How to use justingohn/lease-abstractor-v76 with SGLang:
Install from pip and serve model
# Install SGLang from pip: pip install sglang # Start the SGLang server: python3 -m sglang.launch_server \ --model-path "justingohn/lease-abstractor-v76" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "justingohn/lease-abstractor-v76", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker images
docker run --gpus all \ --shm-size 32g \ -p 30000:30000 \ -v ~/.cache/huggingface:/root/.cache/huggingface \ --env "HF_TOKEN=<secret>" \ --ipc=host \ lmsysorg/sglang:latest \ python3 -m sglang.launch_server \ --model-path "justingohn/lease-abstractor-v76" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "justingohn/lease-abstractor-v76", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Ollama
How to use justingohn/lease-abstractor-v76 with Ollama:
ollama run hf.co/justingohn/lease-abstractor-v76:Q4_K_M
- Unsloth Studio
How to use justingohn/lease-abstractor-v76 with Unsloth Studio:
Install Unsloth Studio (macOS, Linux, WSL)
curl -fsSL https://unsloth.ai/install.sh | sh # Run unsloth studio unsloth studio -H 0.0.0.0 -p 8888 # Then open http://localhost:8888 in your browser # Search for justingohn/lease-abstractor-v76 to start chatting
Install Unsloth Studio (Windows)
irm https://unsloth.ai/install.ps1 | iex # Run unsloth studio unsloth studio -H 0.0.0.0 -p 8888 # Then open http://localhost:8888 in your browser # Search for justingohn/lease-abstractor-v76 to start chatting
Using HuggingFace Spaces for Unsloth
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for justingohn/lease-abstractor-v76 to start chatting
- Pi
How to use justingohn/lease-abstractor-v76 with Pi:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama-server -hf justingohn/lease-abstractor-v76:Q4_K_M
Configure the model in Pi
# Install Pi: npm install -g @mariozechner/pi-coding-agent # Add to ~/.pi/agent/models.json: { "providers": { "llama-cpp": { "baseUrl": "http://localhost:8080/v1", "api": "openai-completions", "apiKey": "none", "models": [ { "id": "justingohn/lease-abstractor-v76:Q4_K_M" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Hermes Agent new
How to use justingohn/lease-abstractor-v76 with Hermes Agent:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama-server -hf justingohn/lease-abstractor-v76:Q4_K_M
Configure Hermes
# Install Hermes: curl -fsSL https://hermes-agent.nousresearch.com/install.sh | bash hermes setup # Point Hermes at the local server: hermes config set model.provider custom hermes config set model.base_url http://127.0.0.1:8080/v1 hermes config set model.default justingohn/lease-abstractor-v76:Q4_K_M
Run Hermes
hermes
- Docker Model Runner
How to use justingohn/lease-abstractor-v76 with Docker Model Runner:
docker model run hf.co/justingohn/lease-abstractor-v76:Q4_K_M
- Lemonade
How to use justingohn/lease-abstractor-v76 with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull justingohn/lease-abstractor-v76:Q4_K_M
Run and chat with the model
lemonade run user.lease-abstractor-v76-Q4_K_M
List all available models
lemonade list
Lease Abstractor V7.6
A fine-tuned Qwen2.5-3B-Instruct model for extracting structured data from commercial real estate leases.
Model Description
This model reads commercial lease documents and extracts 18 standardized fields into clean JSON. It was trained on 684 labeled examples and achieves:
| Metric | Score |
|---|---|
| JSON Parse Rate | 100% |
| Schema Compliance | 100% |
| Verbatim Accuracy | 83.6% |
This model is designed for abstracting lease agreements, extracting lease terms for rent rolls, income analysis, and property valuation. Intended users include real estate appraisers, commercial brokers, asset managers, analysts, and attorneys.
Intended Use
- Primary: Commercial real estate appraisers, analysts, brokers, asset managers
- Input: Raw text from commercial lease documents (office, retail, industrial)
- Output: Structured JSON with 18 fields
Schema (18 Fields)
| Group | Fields |
|---|---|
| Parties | landlord_name, tenant_name, guarantor |
| Property | property_address, suite_unit, rentable_sqft, usable_sqft |
| Term | lease_term_months, commencement_date, expiration_date, lease_execution_date |
| Rent | initial_monthly_rent, rent_schedule, escalation_clause |
| Expenses | expense_structure, cam_description, tax_obligations, insurance_obligations |
How to Use
With Ollama
# Create the model
ollama create lease-v76 -f Modelfile
# Run inference
ollama run lease-v76 "Extract lease data from: [paste lease text here]"
Modelfile
FROM ./qwen2.5-3b-instruct.Q4_K_M.gguf
TEMPLATE """{{ if .System }}<|im_start|>system
{{ .System }}<|im_end|>
{{ end }}{{ if .Prompt }}<|im_start|>user
{{ .Prompt }}<|im_end|>
{{ end }}<|im_start|>assistant
{{ .Response }}<|im_end|>
"""
PARAMETER stop "<|im_start|>"
PARAMETER stop "<|im_end|>"
PARAMETER temperature 0.1
PARAMETER top_p 0.9
PARAMETER num_ctx 8192
SYSTEM """You are a Legal Data Extraction Engine for commercial real estate leases.
STRICT RULES:
1. VERBATIM ONLY: Every value must be an EXACT substring from the source text
2. NO CALCULATIONS: Never compute, derive, or infer values
3. NO FORMATTING CHANGES: Preserve exact punctuation, spacing, case
4. NULL FOR MISSING: If a field is not explicitly stated, return null
5. JSON ONLY: Return raw JSON, no markdown, no explanation"""
With llama.cpp
./llama-cli -m qwen2.5-3b-instruct.Q4_K_M.gguf \
--temp 0.1 --top-p 0.9 -c 8192 \
-p "<|im_start|>system\nYou are a Legal Data Extraction Engine...<|im_end|>\n<|im_start|>user\n[LEASE TEXT]<|im_end|>\n<|im_start|>assistant\n"
Example Output
{
"landlord_name": "ABC Properties LLC",
"tenant_name": "Acme Corporation",
"guarantor": null,
"property_address": "123 Main Street, Suite 200, Philadelphia, PA 19103",
"suite_unit": ["Suite 200"],
"rentable_sqft": "5,000",
"usable_sqft": null,
"lease_term_months": "60",
"commencement_date": ["January 1, 2024"],
"expiration_date": "December 31, 2028",
"lease_execution_date": "November 15, 2023",
"initial_monthly_rent": "$12,500.00",
"rent_schedule": [
{"period": "Year 1", "monthly_rent": "$12,500.00", "annual_rent": "$150,000.00"},
{"period": "Year 2", "monthly_rent": "$12,875.00", "annual_rent": "$154,500.00"}
],
"escalation_clause": "Base Rent shall increase by 3% annually on each anniversary of the Commencement Date",
"expense_structure": "Triple Net (NNN)",
"cam_description": "Tenant shall pay its pro rata share of Common Area Maintenance",
"tax_obligations": "Tenant shall pay its pro rata share of real estate taxes",
"insurance_obligations": "Tenant shall maintain commercial general liability insurance"
}
Production Recommendations
For production use, we recommend adding a "snapper" verification layer that checks each extracted value exists verbatim in the source text. This catches the ~16% of cases where the model makes minor transcription errors or formatting changes.
The snapper approach:
- Model extracts candidate values
- Snapper searches source text for each value
- Values not found verbatim are nullified
- Result: 100% reliable output (verified or null)
Training Details
- Base Model: Qwen/Qwen2.5-3B-Instruct
- Fine-tuning: SFT with response masking (loss only on JSON output)
- Dataset: 684 labeled commercial lease examples
- Hardware: NVIDIA A40 (48GB)
- Training Time: 70 minutes (2 epochs, 172 steps)
- Quantization: Q4_K_M (1.8GB)
Limitations
- English only โ Not trained on leases in other languages
- Commercial leases โ Residential leases may not extract correctly
- US format โ Trained primarily on US commercial lease conventions
- Verbatim extraction โ Does not calculate, summarize, or interpret
- Chunk size โ Best results with 8K token context windows
License
Apache 2.0 (same as base Qwen2.5 model)
Citation
@misc{lease-abstractor-v76,
author = {Justin Gohn},
title = {Lease Abstractor V7.6: Fine-tuned Qwen2.5-3B for Commercial Lease Extraction},
year = {2024},
publisher = {HuggingFace},
url = {https://huggingface.co/independentsearcher/lease-abstractor-v76}
}
Acknowledgments
Built with assistance from Claude (Anthropic), GPT-5.x (OpenAI), and Gemini Pro (Google) as collaborative AI advisors for brainstorming, overall design, and code review.
- Downloads last month
- 5
4-bit