Downloads · 30 days
3
13% of all-time downloads
andriadze/text-pic-request-identifier
text-pic-request-identifier is a text classification model from andriadze. Use it when you need a label for a piece of text. It is set up for transformers. The card lists the license as apache-2.0.
should probably proofread and complete it, then remove this comment. --
Downloads · 30 days
3
13% of all-time downloads
All-time downloads
23
Public
Parameters
67M
536 MB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors268 MB · 100%
From the Hugging Face model README
This model is a fine-tuned version of distilbert/distilbert-base-uncased on an synthetic dataset.
It achieves the following results on the evaluation set:
Model identifies if user is asking for a picture or a text.
Intended use for chat applications to either route the message to a text model or an image model.
Model will return 'pic' or 'text'
Model was trained on synthetic dataset consisting of around ~25k messages. Messages were generated by different LLM's including gpt4,gpt4o,gpt4o-mini,gpt3.5-turbo
The following hyperparameters were used during training:
| Training Loss | Epoch | Step | Validation Loss | Accuracy |
|---|---|---|---|---|
| 0.0391 | 1.0 | 844 | 0.0021 | 0.9996 |
| 0.0021 | 2.0 | 1688 | 0.0015 | 0.9996 |
from transformers import (
pipeline
)
picClassifier = pipeline("text-classification", model="andriadze/text-pic-request-identifier")
res = picClassifier('Can you send me a selfie?')