Text Classification
Transformers
Safetensors
English
roberta
ai-governance
risk-classification
nlp
eu-ai-act
text-embeddings-inference
Instructions to use Begai/ai-risk-classifier-roberta with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Begai/ai-risk-classifier-roberta with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="Begai/ai-risk-classifier-roberta")# Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("Begai/ai-risk-classifier-roberta") model = AutoModelForSequenceClassification.from_pretrained("Begai/ai-risk-classifier-roberta") - 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": 768, | |
| "id2label": { | |
| "0": "lower_risk", | |
| "1": "possible_high_risk", | |
| "2": "likely_high_risk", | |
| "3": "potentially_prohibited" | |
| }, | |
| "initializer_range": 0.02, | |
| "intermediate_size": 3072, | |
| "is_decoder": false, | |
| "label2id": { | |
| "likely_high_risk": 2, | |
| "lower_risk": 0, | |
| "possible_high_risk": 1, | |
| "potentially_prohibited": 3 | |
| }, | |
| "layer_norm_eps": 1e-05, | |
| "max_position_embeddings": 514, | |
| "model_type": "roberta", | |
| "num_attention_heads": 12, | |
| "num_hidden_layers": 12, | |
| "pad_token_id": 1, | |
| "problem_type": "single_label_classification", | |
| "tie_word_embeddings": true, | |
| "transformers_version": "5.7.0", | |
| "type_vocab_size": 1, | |
| "use_cache": false, | |
| "vocab_size": 50265 | |
| } | |