Text Classification
Transformers
ONNX
Safetensors
English
Portuguese
modernbert
feature-extraction
typestrict
decision-model
typed-decisions
encoder
decision-index
cpu
text-embeddings-inference
Instructions to use typestrict/TS-moBERTo-150M with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use typestrict/TS-moBERTo-150M with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="typestrict/TS-moBERTo-150M")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModel tokenizer = AutoTokenizer.from_pretrained("typestrict/TS-moBERTo-150M") model = AutoModel.from_pretrained("typestrict/TS-moBERTo-150M", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Download decision_ai.json from typestrict/TS-moBERTo-150M: direct link, hf CLI and curl.
- Browser
- Download file 985 Bytes
-
https://huggingface.co/typestrict/TS-moBERTo-150M/resolve/main/decision_ai.json
- Command line
-
hf download hf://typestrict/TS-moBERTo-150M/decision_ai.json
-
curl -L -o decision_ai.json https://huggingface.co/typestrict/TS-moBERTo-150M/resolve/main/decision_ai.json
985 Bytes
| { | |
| "format": "decision-ai/option-reader@1", | |
| "name": "TS-moBERTo-150M", | |
| "license": "apache-2.0", | |
| "homepage": "https://huggingface.co/typestrict/TS-moBERTo-150M", | |
| "files": { | |
| "model": "onnx/model_8bit.onnx", | |
| "tokenizer": "tokenizer.json" | |
| }, | |
| "sha256": { | |
| "onnx/model_8bit.onnx": "69e800246f545d7d877087b55958da6f4b18bccbaf22c996a4973221307cf42d", | |
| "tokenizer.json": "edeac9e7b2f170022cefd1c7b396ebca3ac9c57f2f93604844cb7fb16b1a71ca" | |
| }, | |
| "max_length": 8192, | |
| "pad_multiple": 64, | |
| "tokens": { | |
| "cls": "[CLS]", | |
| "sep": "[SEP]", | |
| "pad": "[PAD]", | |
| "option": "[OPT]" | |
| }, | |
| "question_types": { | |
| "noul": 0, | |
| "choice": 1, | |
| "score": 2 | |
| }, | |
| "noul_false_default": "The statement above is false.", | |
| "inputs": { | |
| "ids": "ids", | |
| "pad_mask": "pad_mask", | |
| "option_positions": "opt_positions", | |
| "option_mask": "opt_mask", | |
| "question_type": "qtype" | |
| }, | |
| "outputs": { | |
| "logits": "logits", | |
| "confidence_logit": "conf_logit" | |
| } | |
| } | |