Views
No views yet
Re-hosted by the LaconIQ project. Original model:chopratejas/technique-routerby chopratejas, licensed under Apache-2.0. Hosted underlaconiq-aifor distribution reliability and provenance control. All credit for the underlying model belongs to the original author; the Apache-2.0 license and attribution are retained.
| Technique | Best for |
|---|---|
transcode | Text extraction and OCR tasks |
crop | Region-specific queries |
full_low | General understanding |
preserve | Fine detail and counting |
microsoft/MiniLM-L12-H384-uncased1from transformers import AutoTokenizer, AutoModelForSequenceClassification
2import torch
3
4model_id = "laconiq-ai/technique-router"
5tokenizer = AutoTokenizer.from_pretrained(model_id)
6model = AutoModelForSequenceClassification.from_pretrained(model_id)
7model.eval()
8
9query = "What brand is the TV?"
10inputs = tokenizer(query, return_tensors="pt", truncation=True, padding=True)
11
12with torch.no_grad():
13 outputs = model(**inputs)
14 probs = torch.softmax(outputs.logits, dim=-1)
15 pred_id = torch.argmax(probs, dim=-1).item()
16
17technique = model.config.id2label[pred_id]
18print(f"{query} -> {technique}")1@misc{headroom-technique-router,
2 title={Technique Router for Image Token Optimization},
3 author={Headroom AI},
4 year={2025},
5 publisher={Hugging Face},
6 url={https://huggingface.co/chopratejas/technique-router}
7}