How to use from the
Use from the
Transformers library
# Use a pipeline as a high-level helper
from transformers import pipeline

pipe = pipeline("text-classification", model="y22ma/alibaba-modernbert-router")
# Load model directly
from transformers import AutoTokenizer, AutoModelForSequenceClassification

tokenizer = AutoTokenizer.from_pretrained("y22ma/alibaba-modernbert-router")
model = AutoModelForSequenceClassification.from_pretrained("y22ma/alibaba-modernbert-router", device_map="auto")
Quick Links

Uploaded model

  • Developed by: y22ma
  • License: apache-2.0
  • Finetuned from model : Alibaba-NLP/gte-modernbert-base

This modernbert model was trained 2x faster with Unsloth and Huggingface's TRL library.

Downloads last month
7,608
Safetensors
Model size
0.1B params
Tensor type
F32
·
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support

Model tree for y22ma/alibaba-modernbert-router

Finetuned
(39)
this model