Yelp/yelp_review_full
Viewer • Updated • 700k • 23.2k • 144
How to use Dcolinmorgan/bert-mlx-model with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("text-classification", model="Dcolinmorgan/bert-mlx-model") # Load model directly
from transformers import AutoTokenizer, AutoModelForSequenceClassification
tokenizer = AutoTokenizer.from_pretrained("Dcolinmorgan/bert-mlx-model")
model = AutoModelForSequenceClassification.from_pretrained("Dcolinmorgan/bert-mlx-model")# Load model directly
from transformers import AutoTokenizer, AutoModelForSequenceClassification
tokenizer = AutoTokenizer.from_pretrained("Dcolinmorgan/bert-mlx-model")
model = AutoModelForSequenceClassification.from_pretrained("Dcolinmorgan/bert-mlx-model")
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="Dcolinmorgan/bert-mlx-model")