suayptalha/Diagnose-Instructions
Viewer • Updated • 496 • 90 • 1
How to use suayptalha/Medical-Router with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("text-classification", model="suayptalha/Medical-Router") # Load model directly
from transformers import AutoTokenizer, AutoModelForSequenceClassification
tokenizer = AutoTokenizer.from_pretrained("suayptalha/Medical-Router")
model = AutoModelForSequenceClassification.from_pretrained("suayptalha/Medical-Router")# Load model directly
from transformers import AutoTokenizer, AutoModelForSequenceClassification
tokenizer = AutoTokenizer.from_pretrained("suayptalha/Medical-Router")
model = AutoModelForSequenceClassification.from_pretrained("suayptalha/Medical-Router")Base model
answerdotai/ModernBERT-base
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="suayptalha/Medical-Router")