Text Classification
Transformers
PyTorch
TensorFlow
JAX
English
distilbert
text-embeddings-inference
Instructions to use abspython/distilbert-finetuned with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use abspython/distilbert-finetuned with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="abspython/distilbert-finetuned")# Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("abspython/distilbert-finetuned") model = AutoModelForSequenceClassification.from_pretrained("abspython/distilbert-finetuned", device_map="auto") - Notebooks
- Google Colab
- Kaggle
File size: 174 Bytes
42d7250 | 1 2 3 | from transformers import FlaxAutoModelForSequenceClassification
model = FlaxAutoModelForSequenceClassification.from_pretrained("./", from_pt=True)
model.save_pretrained("./") |