Instructions to use MathGpn/pretrained-bert-math2 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use MathGpn/pretrained-bert-math2 with Transformers:
# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForPreTraining tokenizer = AutoTokenizer.from_pretrained("MathGpn/pretrained-bert-math2") model = AutoModelForPreTraining.from_pretrained("MathGpn/pretrained-bert-math2", device_map="auto") - Notebooks
- Google Colab
- Kaggle
File size: 314 Bytes
710f6e9 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 | {
"clean_up_tokenization_spaces": true,
"cls_token": "[CLS]",
"do_lower_case": true,
"mask_token": "[MASK]",
"model_max_length": 512,
"pad_token": "[PAD]",
"sep_token": "[SEP]",
"strip_accents": null,
"tokenize_chinese_chars": true,
"tokenizer_class": "BertTokenizer",
"unk_token": "[UNK]"
}
|