Instructions to use RyanStudio/Mezzo-Content-Guard-Large-Preview with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use RyanStudio/Mezzo-Content-Guard-Large-Preview with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="RyanStudio/Mezzo-Content-Guard-Large-Preview")# Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("RyanStudio/Mezzo-Content-Guard-Large-Preview") model = AutoModelForSequenceClassification.from_pretrained("RyanStudio/Mezzo-Content-Guard-Large-Preview") - Notebooks
- Google Colab
- Kaggle
| { | |
| "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": 1024, | |
| "id2label": { | |
| "0": "Sexual", | |
| "1": "Violence", | |
| "2": "Self-Harm", | |
| "3": "Divisive", | |
| "4": "Hate Speech", | |
| "5": "Toxic" | |
| }, | |
| "initializer_range": 0.02, | |
| "intermediate_size": 4096, | |
| "is_decoder": false, | |
| "label2id": { | |
| "Divisive": 3, | |
| "Hate Speech": 4, | |
| "Self-Harm": 2, | |
| "Sexual": 0, | |
| "Toxic": 5, | |
| "Violence": 1 | |
| }, | |
| "layer_norm_eps": 1e-05, | |
| "max_position_embeddings": 514, | |
| "model_type": "roberta", | |
| "num_attention_heads": 16, | |
| "num_hidden_layers": 24, | |
| "pad_token_id": 1, | |
| "problem_type": "multi_label_classification", | |
| "tie_word_embeddings": true, | |
| "transformers_version": "5.5.0", | |
| "type_vocab_size": 1, | |
| "use_cache": false, | |
| "vocab_size": 50265 | |
| } | |