Instructions to use mSatashi/finetuned_IndoDiscourse_harm_multiclass with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use mSatashi/finetuned_IndoDiscourse_harm_multiclass with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="mSatashi/finetuned_IndoDiscourse_harm_multiclass")# Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("mSatashi/finetuned_IndoDiscourse_harm_multiclass") model = AutoModelForSequenceClassification.from_pretrained("mSatashi/finetuned_IndoDiscourse_harm_multiclass") - Notebooks
- Google Colab
- Kaggle
| { | |
| "add_cross_attention": false, | |
| "architectures": [ | |
| "BertForSequenceClassification" | |
| ], | |
| "attention_probs_dropout_prob": 0.1, | |
| "bos_token_id": 0, | |
| "classifier_dropout": null, | |
| "dtype": "float32", | |
| "eos_token_id": null, | |
| "eos_token_ids": 0, | |
| "gradient_checkpointing": false, | |
| "hidden_act": "gelu", | |
| "hidden_dropout_prob": 0.1, | |
| "hidden_size": 768, | |
| "id2label": { | |
| "0": "Adult Content", | |
| "1": "Assisting illegal activities", | |
| "2": "Causing material harm by disseminating misinformation e.g. in medicine or law", | |
| "3": "Compromise privacy by leaking or inferring private information (person/individual)", | |
| "4": "Disseminating false or misleading information", | |
| "5": "Ethnicities and Cultural Practices", | |
| "6": "Historical Controversies", | |
| "7": "Indonesian Entities", | |
| "8": "Mental Health or Overreliance Crisis", | |
| "9": "Nudging or advising users to perform unethical or unsafe actions", | |
| "10": "Pancasila Misinterpretation and Corruption", | |
| "11": "Reducing the cost of disinformation campaigns", | |
| "12": "Regional Separatism Advocacy", | |
| "13": "Religions and Beliefs", | |
| "14": "Risks from leaking or inferring sensitive information (organization/gov)", | |
| "15": "Social stereotypes and unfair discrimination", | |
| "16": "Supernatural", | |
| "17": "Toxic language (hate speech)", | |
| "18": "Treat Chatbot as a Human" | |
| }, | |
| "initializer_range": 0.02, | |
| "intermediate_size": 3072, | |
| "is_decoder": false, | |
| "label2id": { | |
| "Adult Content": 0, | |
| "Assisting illegal activities": 1, | |
| "Causing material harm by disseminating misinformation e.g. in medicine or law": 2, | |
| "Compromise privacy by leaking or inferring private information (person/individual)": 3, | |
| "Disseminating false or misleading information": 4, | |
| "Ethnicities and Cultural Practices": 5, | |
| "Historical Controversies": 6, | |
| "Indonesian Entities": 7, | |
| "Mental Health or Overreliance Crisis": 8, | |
| "Nudging or advising users to perform unethical or unsafe actions": 9, | |
| "Pancasila Misinterpretation and Corruption": 10, | |
| "Reducing the cost of disinformation campaigns": 11, | |
| "Regional Separatism Advocacy": 12, | |
| "Religions and Beliefs": 13, | |
| "Risks from leaking or inferring sensitive information (organization/gov)": 14, | |
| "Social stereotypes and unfair discrimination": 15, | |
| "Supernatural": 16, | |
| "Toxic language (hate speech)": 17, | |
| "Treat Chatbot as a Human": 18 | |
| }, | |
| "layer_norm_eps": 1e-12, | |
| "max_position_embeddings": 512, | |
| "model_type": "bert", | |
| "num_attention_heads": 12, | |
| "num_hidden_layers": 12, | |
| "output_past": true, | |
| "pad_token_id": 0, | |
| "position_embedding_type": "absolute", | |
| "problem_type": "single_label_classification", | |
| "tie_word_embeddings": true, | |
| "transformers_version": "5.12.1", | |
| "type_vocab_size": 2, | |
| "use_cache": false, | |
| "vocab_size": 31923 | |
| } | |