Text Classification
Transformers
Safetensors
distilbert
Generated from Trainer
text-embeddings-inference
Instructions to use dibkunnskap/classifier-databases-labels with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use dibkunnskap/classifier-databases-labels with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="dibkunnskap/classifier-databases-labels")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("dibkunnskap/classifier-databases-labels") model = AutoModelForSequenceClassification.from_pretrained("dibkunnskap/classifier-databases-labels", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Download config.json from dibkunnskap/classifier-databases-labels: direct link, hf CLI and curl.
- Browser
- Download file 1.48 kB
-
https://huggingface.co/dibkunnskap/classifier-databases-labels/resolve/main/config.json
- Command line
-
hf download hf://dibkunnskap/classifier-databases-labels/config.json
-
curl -L -o config.json https://huggingface.co/dibkunnskap/classifier-databases-labels/resolve/main/config.json
1.48 kB
| { | |
| "activation": "gelu", | |
| "architectures": [ | |
| "DistilBertForSequenceClassification" | |
| ], | |
| "attention_dropout": 0.1, | |
| "dim": 768, | |
| "dropout": 0.1, | |
| "hidden_dim": 3072, | |
| "id2label": { | |
| "0": "Bank_finans", | |
| "1": "Bokf\u00f8ring", | |
| "2": "B\u00f8rs_verdipapirer", | |
| "3": "DIB", | |
| "4": "ESG_EN", | |
| "5": "ESG_NO", | |
| "6": "IFRS", | |
| "7": "Kommuneregnskap", | |
| "8": "Kommunerevisjon", | |
| "9": "L\u00f8nn", | |
| "10": "Merverdiavgift", | |
| "11": "Personal", | |
| "12": "Revisjon", | |
| "13": "Selskapsrett", | |
| "14": "Skatt", | |
| "15": "Styrearbeid", | |
| "16": "\u00c5rsregnskap" | |
| }, | |
| "initializer_range": 0.02, | |
| "label2id": { | |
| "Bank_finans": 0, | |
| "Bokf\u00f8ring": 1, | |
| "B\u00f8rs_verdipapirer": 2, | |
| "DIB": 3, | |
| "ESG_EN": 4, | |
| "ESG_NO": 5, | |
| "IFRS": 6, | |
| "Kommuneregnskap": 7, | |
| "Kommunerevisjon": 8, | |
| "L\u00f8nn": 9, | |
| "Merverdiavgift": 10, | |
| "Personal": 11, | |
| "Revisjon": 12, | |
| "Selskapsrett": 13, | |
| "Skatt": 14, | |
| "Styrearbeid": 15, | |
| "\u00c5rsregnskap": 16 | |
| }, | |
| "max_position_embeddings": 512, | |
| "model_type": "distilbert", | |
| "n_heads": 12, | |
| "n_layers": 6, | |
| "output_past": true, | |
| "pad_token_id": 0, | |
| "problem_type": "multi_label_classification", | |
| "qa_dropout": 0.1, | |
| "seq_classif_dropout": 0.2, | |
| "sinusoidal_pos_embds": false, | |
| "tie_weights_": true, | |
| "torch_dtype": "float32", | |
| "transformers_version": "4.50.0", | |
| "vocab_size": 119547 | |
| } | |