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
Download config.json from KordAI/III-BERT: direct link, hf CLI and curl.
- Browser
- Download file 1.03 kB
-
https://huggingface.co/KordAI/III-BERT/resolve/main/config.json
- Command line
-
hf download hf://KordAI/III-BERT/config.json
-
curl -L -o config.json https://huggingface.co/KordAI/III-BERT/resolve/main/config.json
1.03 kB
| { | |
| "architectures": [ | |
| "IIIBERTForMaskedLM" | |
| ], | |
| "attention_bias": false, | |
| "auto_map": { | |
| "AutoConfig": "iii_configuration.IIIBERTConfig", | |
| "AutoModelForMaskedLM": "iii_modeling.IIIBERTForMaskedLM", | |
| "AutoModelForSequenceClassification": "iii_modeling.IIIBERTForSequenceClassification", | |
| "AutoModelForTokenClassification": "iii_modeling.IIIBERTForTokenClassification" | |
| }, | |
| "bos_token_id": 24005, | |
| "dropout": 0.1, | |
| "dtype": "float32", | |
| "embedding_dim": 128, | |
| "eos_token_id": 6, | |
| "hidden_dim": 768, | |
| "initializer_range": 0.02, | |
| "intermediate_dim": 2048, | |
| "layers_diliation_size": [ | |
| 1, | |
| 2, | |
| 4, | |
| 1 | |
| ], | |
| "layers_kernel_size": [ | |
| 5, | |
| 5, | |
| 5, | |
| 0 | |
| ], | |
| "lora_dim": 192, | |
| "max_sequence_length": 512, | |
| "model_type": "iii_bert", | |
| "n_heads": 6, | |
| "n_layers": 6, | |
| "n_sublayers": 4, | |
| "pad_token_id": 5, | |
| "pe_theta": 10000.0, | |
| "rms_norm_eps": 1e-06, | |
| "tie_word_embeddings": false, | |
| "transformers_version": "5.14.1", | |
| "vocab_size": 24008 | |
| } | |