Fill-Mask
Transformers
Safetensors
Thai
iii_bert
thai
masked-language-model
pretrained-model
custom-transformer
custom_code
Instructions to use KordAI/III-BERT with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use KordAI/III-BERT with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("fill-mask", model="KordAI/III-BERT", trust_remote_code=True)# pip install -U transformers accelerate # Load model directly from transformers import AutoModelForMaskedLM model = AutoModelForMaskedLM.from_pretrained("KordAI/III-BERT", trust_remote_code=True, device_map="auto") - Notebooks
- Google Colab
- Kaggle
Update README.md
Browse files
README.md
CHANGED
|
@@ -44,11 +44,11 @@ The repository contains custom model code. Review that code before loading it an
|
|
| 44 |
|
| 45 |
```python
|
| 46 |
import torch
|
| 47 |
-
from transformers import
|
| 48 |
|
| 49 |
model_id = "KordAI/III-BERT"
|
| 50 |
|
| 51 |
-
tokenizer =
|
| 52 |
model = AutoModelForMaskedLM.from_pretrained(
|
| 53 |
model_id,
|
| 54 |
trust_remote_code=True,
|
|
|
|
| 44 |
|
| 45 |
```python
|
| 46 |
import torch
|
| 47 |
+
from transformers import CamembertTokenizer, AutoModelForMaskedLM
|
| 48 |
|
| 49 |
model_id = "KordAI/III-BERT"
|
| 50 |
|
| 51 |
+
tokenizer = CamembertTokenizer.from_pretrained(model_id, trust_remote_code=True)
|
| 52 |
model = AutoModelForMaskedLM.from_pretrained(
|
| 53 |
model_id,
|
| 54 |
trust_remote_code=True,
|