How to use caihx/modernbert-llm-router-lora with PEFT:
from peft import PeftModel from transformers import AutoModelForSequenceClassification base_model = AutoModelForSequenceClassification.from_pretrained("answerdotai/ModernBERT-base") model = PeftModel.from_pretrained(base_model, "caihx/modernbert-llm-router-lora")
The community tab is the place to discuss and collaborate with the HF community!
Create images in seconds. No sign-up, no paywall, no setup.