smalldocs-spade
23
license:apache-2.0
by
bluecopa
Other
OTHER
New
23 downloads
Early-stage
Edge AI:
Mobile
Laptop
Server
Unknown
Mobile
Laptop
Server
Quick Summary
AI model with specialized capabilities.
Code Examples
Performancepythontransformers
from transformers import AutoTokenizer
from model_v2 import SpadeExtractor # Custom model class
tokenizer = AutoTokenizer.from_pretrained("bluecopa/smalldocs-spade")
model = SpadeExtractor.from_pretrained("bluecopa/smalldocs-spade")
# Format: query + document
query = "total: Total amount due"
document = "Receipt\nItem: Widget $50\nTotal: $50"
inputs = tokenizer(query, document, return_tensors="pt", max_length=4096, truncation=True)
outputs = model(**inputs)
# Decode prediction
# ... see model_v2.py for decode_with_confidence()Deploy This Model
Production-ready deployment in minutes
Together.ai
Instant API access to this model
Production-ready inference API. Start free, scale to millions.
Try Free APIReplicate
One-click model deployment
Run models in the cloud with simple API. No DevOps required.
Deploy NowDisclosure: We may earn a commission from these partners. This helps keep LLMYourWay free.