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")# pip install -U transformers accelerate # 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
Download convert_pytorch_to_flax.py from abspython/distilbert-finetuned: direct link, hf CLI and curl.
- Browser
- Download file 174 Bytes
-
https://huggingface.co/abspython/distilbert-finetuned/resolve/main/convert_pytorch_to_flax.py
- Command line
-
hf download hf://abspython/distilbert-finetuned/convert_pytorch_to_flax.py
-
curl -L -o convert_pytorch_to_flax.py https://huggingface.co/abspython/distilbert-finetuned/resolve/main/convert_pytorch_to_flax.py
174 Bytes
| from transformers import FlaxAutoModelForSequenceClassification | |
| model = FlaxAutoModelForSequenceClassification.from_pretrained("./", from_pt=True) | |
| model.save_pretrained("./") |