Instructions to use tliumozilla/mobilebert-query-intent-detection-test with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use tliumozilla/mobilebert-query-intent-detection-test with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="tliumozilla/mobilebert-query-intent-detection-test")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("tliumozilla/mobilebert-query-intent-detection-test") model = AutoModelForSequenceClassification.from_pretrained("tliumozilla/mobilebert-query-intent-detection-test", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Download label_map.json from tliumozilla/mobilebert-query-intent-detection-test: direct link, hf CLI and curl.
- Browser
- Download file 110 Bytes
-
https://huggingface.co/tliumozilla/mobilebert-query-intent-detection-test/resolve/main/label_map.json
- Command line
-
hf download hf://tliumozilla/mobilebert-query-intent-detection-test/label_map.json
-
curl -L -o label_map.json https://huggingface.co/tliumozilla/mobilebert-query-intent-detection-test/resolve/main/label_map.json
110 Bytes
| { | |
| "label2id": { | |
| "Chat": 0, | |
| "Search": 1 | |
| }, | |
| "id2label": { | |
| "0": "Chat", | |
| "1": "Search" | |
| } | |
| } |