Instructions to use dralsarrani/opp115-deberta with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use dralsarrani/opp115-deberta with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="dralsarrani/opp115-deberta")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("dralsarrani/opp115-deberta") model = AutoModelForSequenceClassification.from_pretrained("dralsarrani/opp115-deberta", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Download config.json from dralsarrani/opp115-deberta: direct link, hf CLI and curl.
- Browser
- Download file 1.65 kB
-
https://huggingface.co/dralsarrani/opp115-deberta/resolve/main/config.json
- Command line
-
hf download hf://dralsarrani/opp115-deberta/config.json
-
curl -L -o config.json https://huggingface.co/dralsarrani/opp115-deberta/resolve/main/config.json
1.65 kB
| { | |
| "architectures": [ | |
| "DebertaV2ForSequenceClassification" | |
| ], | |
| "attention_probs_dropout_prob": 0.1, | |
| "bos_token_id": null, | |
| "dtype": "float32", | |
| "eos_token_id": null, | |
| "hidden_act": "gelu", | |
| "hidden_dropout_prob": 0.1, | |
| "hidden_size": 768, | |
| "id2label": { | |
| "0": "First Party Collection/Use", | |
| "1": "Third Party Sharing/Collection", | |
| "2": "User Choice/Control", | |
| "3": "User Access, Edit and Deletion", | |
| "4": "Data Retention", | |
| "5": "Data Security", | |
| "6": "Policy Change", | |
| "7": "Do Not Track", | |
| "8": "International and Specific Audiences", | |
| "9": "Other" | |
| }, | |
| "initializer_range": 0.02, | |
| "intermediate_size": 3072, | |
| "label2id": { | |
| "Data Retention": 4, | |
| "Data Security": 5, | |
| "Do Not Track": 7, | |
| "First Party Collection/Use": 0, | |
| "International and Specific Audiences": 8, | |
| "Other": 9, | |
| "Policy Change": 6, | |
| "Third Party Sharing/Collection": 1, | |
| "User Access, Edit and Deletion": 3, | |
| "User Choice/Control": 2 | |
| }, | |
| "layer_norm_eps": 1e-07, | |
| "legacy": true, | |
| "max_position_embeddings": 512, | |
| "max_relative_positions": -1, | |
| "model_type": "deberta-v2", | |
| "norm_rel_ebd": "layer_norm", | |
| "num_attention_heads": 12, | |
| "num_hidden_layers": 6, | |
| "pad_token_id": 0, | |
| "pooler_dropout": 0.0, | |
| "pooler_hidden_act": "gelu", | |
| "pooler_hidden_size": 768, | |
| "pos_att_type": [ | |
| "p2c", | |
| "c2p" | |
| ], | |
| "position_biased_input": false, | |
| "position_buckets": 256, | |
| "problem_type": "multi_label_classification", | |
| "relative_attention": true, | |
| "share_att_key": true, | |
| "tie_word_embeddings": true, | |
| "transformers_version": "5.20.1", | |
| "type_vocab_size": 0, | |
| "vocab_size": 128100 | |
| } | |