Instructions to use nullpointer-ind/Query-Classification with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use nullpointer-ind/Query-Classification with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="nullpointer-ind/Query-Classification")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("nullpointer-ind/Query-Classification") model = AutoModelForSequenceClassification.from_pretrained("nullpointer-ind/Query-Classification", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Download config.json from nullpointer-ind/Query-Classification: direct link, hf CLI and curl.
- Browser
- Download file 954 Bytes
-
https://huggingface.co/nullpointer-ind/Query-Classification/resolve/main/config.json
- Command line
-
hf download hf://nullpointer-ind/Query-Classification/config.json
-
curl -L -o config.json https://huggingface.co/nullpointer-ind/Query-Classification/resolve/main/config.json
954 Bytes
| { | |
| "_name_or_path": "distilbert/distilbert-base-uncased", | |
| "activation": "gelu", | |
| "architectures": [ | |
| "DistilBertForSequenceClassification" | |
| ], | |
| "attention_dropout": 0.1, | |
| "dim": 768, | |
| "dropout": 0.1, | |
| "hidden_dim": 3072, | |
| "id2label": { | |
| "0": "balancesheetconsolidated", | |
| "1": "profitandlossconsolidated", | |
| "2": "cashflowconsolidated", | |
| "3": "financialratiosconsolidated" | |
| }, | |
| "initializer_range": 0.02, | |
| "label2id": { | |
| "balancesheetconsolidated": 0, | |
| "cashflowconsolidated": 2, | |
| "financialratiosconsolidated": 3, | |
| "profitandlossconsolidated": 1 | |
| }, | |
| "max_position_embeddings": 512, | |
| "model_type": "distilbert", | |
| "n_heads": 12, | |
| "n_layers": 6, | |
| "pad_token_id": 0, | |
| "problem_type": "single_label_classification", | |
| "qa_dropout": 0.1, | |
| "seq_classif_dropout": 0.2, | |
| "sinusoidal_pos_embds": false, | |
| "tie_weights_": true, | |
| "torch_dtype": "float32", | |
| "transformers_version": "4.44.0", | |
| "vocab_size": 30522 | |
| } | |