Instructions to use opticalmaterials/opticalbert_cased with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use opticalmaterials/opticalbert_cased with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("fill-mask", model="opticalmaterials/opticalbert_cased")# Load model directly from transformers import AutoTokenizer, AutoModelForMaskedLM tokenizer = AutoTokenizer.from_pretrained("opticalmaterials/opticalbert_cased") model = AutoModelForMaskedLM.from_pretrained("opticalmaterials/opticalbert_cased") - Notebooks
- Google Colab
- Kaggle
Commit ·
4fc4c43
1
Parent(s): 7bd0b42
Upload tokenizer_config.json
Browse files- tokenizer_config.json +1 -0
tokenizer_config.json
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
{"do_lower_case": false, "unk_token": "[UNK]", "sep_token": "[SEP]", "pad_token": "[PAD]", "cls_token": "[CLS]", "mask_token": "[MASK]", "tokenize_chinese_chars": true, "strip_accents": null, "use_fast": true, "model_max_length": 512, "special_tokens_map_file": null, "name_or_path": "/projects/SolarWindowsADSP/jiuyang/opticalbert/pretrain/bertoptical_cased/output/checkpoint-1270000", "tokenizer_class": "BertTokenizer"}
|