Instructions to use DollarSign/ModernBERT-base-lora-cicflow-1m-r4 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- PEFT
How to use DollarSign/ModernBERT-base-lora-cicflow-1m-r4 with PEFT:
from peft import PeftModel from transformers import AutoModelForSequenceClassification base_model = AutoModelForSequenceClassification.from_pretrained("answerdotai/ModernBERT-base") model = PeftModel.from_pretrained(base_model, "DollarSign/ModernBERT-base-lora-cicflow-1m-r4") - Transformers
How to use DollarSign/ModernBERT-base-lora-cicflow-1m-r4 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("fill-mask", model="DollarSign/ModernBERT-base-lora-cicflow-1m-r4")# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("DollarSign/ModernBERT-base-lora-cicflow-1m-r4", dtype="auto") - Notebooks
- Google Colab
- Kaggle
Welcome to the community
The community tab is the place to discuss and collaborate with the HF community!