Instructions to use muthuramkumar/roberta-base-conversation-classification with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use muthuramkumar/roberta-base-conversation-classification with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="muthuramkumar/roberta-base-conversation-classification")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("muthuramkumar/roberta-base-conversation-classification") model = AutoModelForSequenceClassification.from_pretrained("muthuramkumar/roberta-base-conversation-classification", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Download config.json from muthuramkumar/roberta-base-conversation-classification: direct link, hf CLI and curl.
- Browser
- Download file 1.8 kB
-
https://huggingface.co/muthuramkumar/roberta-base-conversation-classification/resolve/main/config.json
- Command line
-
hf download hf://muthuramkumar/roberta-base-conversation-classification/config.json
-
curl -L -o config.json https://huggingface.co/muthuramkumar/roberta-base-conversation-classification/resolve/main/config.json
1.8 kB
| { | |
| "_name_or_path": "FacebookAI/roberta-base", | |
| "architectures": [ | |
| "RobertaForSequenceClassification" | |
| ], | |
| "attention_probs_dropout_prob": 0.1, | |
| "bos_token_id": 0, | |
| "classifier_dropout": null, | |
| "eos_token_id": 2, | |
| "hidden_act": "gelu", | |
| "hidden_dropout_prob": 0.1, | |
| "hidden_size": 768, | |
| "id2label": { | |
| "0": "Continue Conversation", | |
| "1": "Pause Conversation", | |
| "2": "Restart Conversation", | |
| "3": "Repeat Conversation", | |
| "4": "End Conversation", | |
| "5": "Refuse to Answer", | |
| "6": "Affirmative Confirmation", | |
| "7": "Negative Confirmation", | |
| "8": "Correction Request", | |
| "9": "Questions Answerable by Conversational Context / History", | |
| "10": "Questions Requiring External Information", | |
| "11": "Questions on Process", | |
| "12": "New Inquiry or Request", | |
| "13": "Transfer to Human Agent" | |
| }, | |
| "initializer_range": 0.02, | |
| "intermediate_size": 3072, | |
| "label2id": { | |
| "Affirmative Confirmation": 6, | |
| "Continue Conversation": 0, | |
| "Correction Request": 8, | |
| "End Conversation": 4, | |
| "Negative Confirmation": 7, | |
| "New Inquiry or Request": 12, | |
| "Pause Conversation": 1, | |
| "Questions Answerable by Conversational Context / History": 9, | |
| "Questions Requiring External Information": 10, | |
| "Questions on Process": 11, | |
| "Refuse to Answer": 5, | |
| "Repeat Conversation": 3, | |
| "Restart Conversation": 2, | |
| "Transfer to Human Agent": 13 | |
| }, | |
| "layer_norm_eps": 1e-05, | |
| "max_position_embeddings": 514, | |
| "model_type": "roberta", | |
| "num_attention_heads": 12, | |
| "num_hidden_layers": 12, | |
| "pad_token_id": 1, | |
| "position_embedding_type": "absolute", | |
| "problem_type": "multi_label_classification", | |
| "torch_dtype": "float32", | |
| "transformers_version": "4.40.1", | |
| "type_vocab_size": 1, | |
| "use_cache": true, | |
| "vocab_size": 50265 | |
| } | |