Instructions to use laconiq-ai/technique-router-onnx with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use laconiq-ai/technique-router-onnx with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="laconiq-ai/technique-router-onnx")# Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("laconiq-ai/technique-router-onnx") model = AutoModelForSequenceClassification.from_pretrained("laconiq-ai/technique-router-onnx") - Notebooks
- Google Colab
- Kaggle
LaconIQ technique-router (ONNX INT8)
ONNX INT8 export of the technique-router text classifier used by
LaconIQ to choose an image-compression
technique from a user's query. It runs on CPU with onnxruntime only (no GPU,
no PyTorch), in ~32 MB.
Provenance
This is a byte-identical re-host of the upstream ONNX export, with an
Apache-2.0 LICENSE, a NOTICE, and this README added so the LaconIQ project
has a self-owned, auditable model source.
- Derived from
chopratejas/technique-router(Apache-2.0), a fine-tune ofmicrosoft/MiniLM-L12-H384-uncased. - Original model and ONNX export by Tejas Chopra. Re-hosted unchanged.
Inputs / outputs
- Inputs:
input_ids,attention_mask,token_type_ids(int64, max length 64). - Output: logits over the routing classes;
argmaxgives the technique, andconfig.jsoncarries theid2labelmap.
License
Apache License 2.0. See LICENSE and NOTICE.
- Downloads last month
- 44
Model tree for laconiq-ai/technique-router-onnx
Base model
microsoft/MiniLM-L12-H384-uncased