nvidia/OpenMathReasoning
Viewer • Updated • 5.68M • 14.7k • 467
How to use suayptalha/MoE-Router with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("text-classification", model="suayptalha/MoE-Router") # Load model directly
from transformers import AutoTokenizer, AutoModelForSequenceClassification
tokenizer = AutoTokenizer.from_pretrained("suayptalha/MoE-Router")
model = AutoModelForSequenceClassification.from_pretrained("suayptalha/MoE-Router", device_map="auto")# Load model directly
from transformers import AutoTokenizer, AutoModelForSequenceClassification
tokenizer = AutoTokenizer.from_pretrained("suayptalha/MoE-Router")
model = AutoModelForSequenceClassification.from_pretrained("suayptalha/MoE-Router", device_map="auto")labels = ['code', 'if', 'math', 'medical']
Base model
distilbert/distilbert-base-uncased
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="suayptalha/MoE-Router")