Instructions to use tolga-ozturk/mGPT-nsp with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use tolga-ozturk/mGPT-nsp with Transformers:
# Load model directly from transformers import AutoTokenizer, ModelNSP tokenizer = AutoTokenizer.from_pretrained("tolga-ozturk/mGPT-nsp") model = ModelNSP.from_pretrained("tolga-ozturk/mGPT-nsp") - Notebooks
- Google Colab
- Kaggle
Commit ·
72f6e17
1
Parent(s): 13abe60
Upload README.md
Browse files
README.md
CHANGED
|
@@ -59,6 +59,9 @@ encoded_dict = tokenizer.batch_encode_plus(batch_text_or_text_pairs=batch_texts,
|
|
| 59 |
print(torch.argmax(model(encoded_dict.input_ids, attention_mask=encoded_dict.attention_mask), dim=-1))
|
| 60 |
```
|
| 61 |
|
|
|
|
|
|
|
|
|
|
| 62 |
## BibTeX entry and citation info
|
| 63 |
|
| 64 |
```bibtex
|
|
|
|
| 59 |
print(torch.argmax(model(encoded_dict.input_ids, attention_mask=encoded_dict.attention_mask), dim=-1))
|
| 60 |
```
|
| 61 |
|
| 62 |
+
### Training Metrics
|
| 63 |
+
<img src="https://huggingface.co/tolga-ozturk/mgpt-nsp/resolve/main/metrics.png">
|
| 64 |
+
|
| 65 |
## BibTeX entry and citation info
|
| 66 |
|
| 67 |
```bibtex
|