Dcolinmorgan/extreme-weather-news
Viewer • Updated • 200 • 27 • 1
How to use Dcolinmorgan/distilroberta-mlx-disaster with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("feature-extraction", model="Dcolinmorgan/distilroberta-mlx-disaster") # Load model directly
from transformers import AutoTokenizer, AutoModelForSequenceClassification
tokenizer = AutoTokenizer.from_pretrained("Dcolinmorgan/distilroberta-mlx-disaster")
model = AutoModelForSequenceClassification.from_pretrained("Dcolinmorgan/distilroberta-mlx-disaster")