Text Classification
Transformers
Safetensors
deberta-v2
Trained with AutoTrain
text-embeddings-inference
Instructions to use AeglosAI/aeglos-v1 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use AeglosAI/aeglos-v1 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="AeglosAI/aeglos-v1")# Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("AeglosAI/aeglos-v1") model = AutoModelForSequenceClassification.from_pretrained("AeglosAI/aeglos-v1", device_map="auto") - Notebooks
- Google Colab
- Kaggle
| { | |
| "data_path": "beloiual/autotrain-data-llm-prompt-injection-classifier-v2", | |
| "model": "microsoft/deberta-v3-base", | |
| "lr": 5e-05, | |
| "epochs": 3, | |
| "max_seq_length": 128, | |
| "batch_size": 8, | |
| "warmup_ratio": 0.1, | |
| "gradient_accumulation": 1, | |
| "optimizer": "adamw_torch", | |
| "scheduler": "linear", | |
| "weight_decay": 0.0, | |
| "max_grad_norm": 1.0, | |
| "seed": 42, | |
| "train_split": "train", | |
| "valid_split": "validation", | |
| "text_column": "autotrain_text", | |
| "target_column": "autotrain_label", | |
| "logging_steps": -1, | |
| "project_name": "/tmp/model", | |
| "auto_find_batch_size": false, | |
| "mixed_precision": "fp16", | |
| "save_total_limit": 1, | |
| "save_strategy": "epoch", | |
| "push_to_hub": true, | |
| "repo_id": "beloiual/llm-prompt-injection-classifier-v2", | |
| "evaluation_strategy": "epoch", | |
| "username": "beloiual", | |
| "log": "none" | |
| } |