Instructions to use GRBartho/rpg-intent-classifier with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use GRBartho/rpg-intent-classifier with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="GRBartho/rpg-intent-classifier")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("GRBartho/rpg-intent-classifier") model = AutoModelForSequenceClassification.from_pretrained("GRBartho/rpg-intent-classifier", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Download config.json from GRBartho/rpg-intent-classifier: direct link, hf CLI and curl.
- Browser
- Download file 1.31 kB
-
https://huggingface.co/GRBartho/rpg-intent-classifier/resolve/main/config.json
- Command line
-
hf download hf://GRBartho/rpg-intent-classifier/config.json
-
curl -L -o config.json https://huggingface.co/GRBartho/rpg-intent-classifier/resolve/main/config.json
1.31 kB
| { | |
| "add_cross_attention": false, | |
| "architectures": [ | |
| "RobertaForSequenceClassification" | |
| ], | |
| "attention_probs_dropout_prob": 0.1, | |
| "bos_token_id": 0, | |
| "classifier_dropout": null, | |
| "dtype": "float32", | |
| "eos_token_id": 2, | |
| "hidden_act": "gelu", | |
| "hidden_dropout_prob": 0.1, | |
| "hidden_size": 768, | |
| "id2label": { | |
| "0": "intimidate", | |
| "1": "bribe", | |
| "2": "request_help", | |
| "3": "claim_authority", | |
| "4": "negotiate", | |
| "5": "flatter", | |
| "6": "request_information", | |
| "7": "express_empathy", | |
| "8": "insult", | |
| "9": "persuade", | |
| "10": "reassure", | |
| "11": "neutral" | |
| }, | |
| "initializer_range": 0.02, | |
| "intermediate_size": 3072, | |
| "is_decoder": false, | |
| "label2id": { | |
| "bribe": 1, | |
| "claim_authority": 3, | |
| "express_empathy": 7, | |
| "flatter": 5, | |
| "insult": 8, | |
| "intimidate": 0, | |
| "negotiate": 4, | |
| "neutral": 11, | |
| "persuade": 9, | |
| "reassure": 10, | |
| "request_help": 2, | |
| "request_information": 6 | |
| }, | |
| "layer_norm_eps": 1e-05, | |
| "max_position_embeddings": 514, | |
| "model_type": "roberta", | |
| "num_attention_heads": 12, | |
| "num_hidden_layers": 6, | |
| "pad_token_id": 1, | |
| "problem_type": "single_label_classification", | |
| "tie_word_embeddings": true, | |
| "transformers_version": "5.22.1", | |
| "type_vocab_size": 1, | |
| "use_cache": false, | |
| "vocab_size": 50265 | |
| } | |