How to use from the
Use from the
Transformers library
# Use a pipeline as a high-level helper
from transformers import pipeline

pipe = pipeline("text-classification", model="ZennyKenny/zkhf-text-classifier")
# pip install -U transformers accelerate
# Load model directly
from transformers import AutoTokenizer, AutoModelForSequenceClassification

tokenizer = AutoTokenizer.from_pretrained("ZennyKenny/zkhf-text-classifier")
model = AutoModelForSequenceClassification.from_pretrained("ZennyKenny/zkhf-text-classifier", device_map="auto")
Quick Links

My first model: a text sentiment classifier built on DistilBERT.

Downloads last month
4
Safetensors
Model size
67M params
Tensor type
F32
ยท
Inference Providers NEW
This model isn't deployed by any Inference Provider. ๐Ÿ™‹ Ask for provider support