Upload MODEL_CARD.md with huggingface_hub
Browse files- MODEL_CARD.md +34 -0
MODEL_CARD.md
ADDED
|
@@ -0,0 +1,34 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
language: English
|
| 3 |
+
license: apache-2.0
|
| 4 |
+
tags:
|
| 5 |
+
- text-classification
|
| 6 |
+
- bert
|
| 7 |
+
- fine-tuned
|
| 8 |
+
- recipe-bot
|
| 9 |
+
datasets: []
|
| 10 |
+
metrics: []
|
| 11 |
+
---
|
| 12 |
+
|
| 13 |
+
# recipe-bert
|
| 14 |
+
|
| 15 |
+
A small fine-tuned BERT model for demonstration (trained on a tiny sample). Replace with your real dataset for production.
|
| 16 |
+
|
| 17 |
+
## Model description
|
| 18 |
+
- Base model: bert-base-uncased
|
| 19 |
+
- Task: binary text classification
|
| 20 |
+
- Training: quick 1-epoch smoke run (demo)
|
| 21 |
+
|
| 22 |
+
## How to use
|
| 23 |
+
```python
|
| 24 |
+
from transformers import AutoTokenizer, AutoModelForSequenceClassification, pipeline
|
| 25 |
+
|
| 26 |
+
model_id = "x2-world/recipe-bert"
|
| 27 |
+
tokenizer = AutoTokenizer.from_pretrained(model_id)
|
| 28 |
+
model = AutoModelForSequenceClassification.from_pretrained(model_id)
|
| 29 |
+
clf = pipeline('text-classification', model=model, tokenizer=tokenizer)
|
| 30 |
+
print(clf('The pizza was great'))
|
| 31 |
+
```
|
| 32 |
+
|
| 33 |
+
## Limitations
|
| 34 |
+
This model was trained on an extremely small synthetic dataset—do not use in production.
|