File size: 497 Bytes
1e0e7fd a17ecad 69d99da a17ecad 69d99da a17ecad 69d99da a17ecad 69d99da a17ecad 69d99da a17ecad | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 | ---
license: mit
language:
- en
pipeline_tag: text-classification
---
## How to use model with torch:
```model_name = "bert-base-uncased"
# Load the tokenizer
tokenizer = AutoTokenizer.from_pretrained(model_name)
# Load the model
model = AutoModel.from_pretrained(model_name)
```
## How to use it on example text:
```
# Example input
text = "Hello, how are you?"
# Tokenize the input
inputs = tokenizer(text, return_tensors="pt")
# Forward pass through the model
outputs = model(**inputs)
``` |