Instructions to use biodatlab/MIReAD-Neuro with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use biodatlab/MIReAD-Neuro with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="biodatlab/MIReAD-Neuro")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("biodatlab/MIReAD-Neuro") model = AutoModelForSequenceClassification.from_pretrained("biodatlab/MIReAD-Neuro", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Update README.md
Browse files
README.md
CHANGED
|
@@ -59,7 +59,7 @@ with torch.no_grad():
|
|
| 59 |
|
| 60 |
# for classification
|
| 61 |
output = model(**tokens)
|
| 62 |
-
class =
|
| 63 |
```
|
| 64 |
|
| 65 |
## Training procedure
|
|
|
|
| 59 |
|
| 60 |
# for classification
|
| 61 |
output = model(**tokens)
|
| 62 |
+
class = output.logits
|
| 63 |
```
|
| 64 |
|
| 65 |
## Training procedure
|