How to use dannyliv/agent-guard-modernbert-base with PEFT:
from peft import PeftModel from transformers import AutoModelForSequenceClassification base_model = AutoModelForSequenceClassification.from_pretrained("answerdotai/ModernBERT-base") model = PeftModel.from_pretrained(base_model, "dannyliv/agent-guard-modernbert-base")
The community tab is the place to discuss and collaborate with the HF community!