abullard1/germeval-2025-harmful-content-detection-training-dataset
Viewer • Updated • 22.1k • 34
How to use abullard1/germeval2025-vio-moderngbert-cw_and_focal with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("text-classification", model="abullard1/germeval2025-vio-moderngbert-cw_and_focal") # Load model directly
from transformers import AutoTokenizer, AutoModelForSequenceClassification
tokenizer = AutoTokenizer.from_pretrained("abullard1/germeval2025-vio-moderngbert-cw_and_focal")
model = AutoModelForSequenceClassification.from_pretrained("abullard1/germeval2025-vio-moderngbert-cw_and_focal", device_map="auto")
abullardUR@GermEval Shared Task 2025 Submission
This model is a fine-tuned version of LSX-UniWue/ModernGBERT_134M, specifically designed for Violence Detection (VIO) in German social media content. It was developed as part of the GermEval 2025 Shared Task on Harmful Content Detection.
False (no violence), True (violence-related content detected)from transformers import AutoProcessor, AutoModelForSequenceClassification
# Load model and processor
model_id = "abullard1/germeval2025-vio-moderngbert-cw_and_focal"
processor = AutoProcessor.from_pretrained(model_id, trust_remote_code=True)
model = AutoModelForSequenceClassification.from_pretrained(model_id, trust_remote_code=True).eval()
# Run inference
text = "Diese Situation macht mich wütend!"
inputs = processor(text, return_tensors="pt", truncation=True)
probs = model(**inputs).logits.softmax(-1).detach().cpu().numpy()
print(f"Predictions: {probs}")
@inproceedings{bullard2025germeval,
title = {abullardUR@GermEval Shared Task 2025: Fine-tuning ModernGBERT on Highly Imbalanced German Social Media for Harmful Content Detection},
author = {Bullard, Samuel},
year = {2025},
booktitle = {Proceedings of KONVENS 2025 Workshops}
}
This model inherits the Research-only RAIL-M license from ModernGBERT. See license details.
Base model
LSX-UniWue/ModernGBERT_134M