File size: 482 Bytes
0b52979
 
e8f3e17
 
 
 
 
3f691df
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
---
license: cc-by-sa-4.0
language:
- uk
metrics:
- f1
pipeline_tag: text-classification
---

## Usage
```python
from transformers import AutoTokenizer, AutoModelForSequenceClassification, pipeline

tokenizer = AutoTokenizer.from_pretrained("zeusfsx/title-instruction")
model = AutoModelForSequenceClassification.from_pretrained("zeusfsx/title-instruction")


classification = pipeline("text-classification", model=model, tokenizer=tokenizer, device="mps")  # for mac I used mps
```