Instructions to use MathGpn/pretrained-bert-math with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use MathGpn/pretrained-bert-math with Transformers:
# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForPreTraining tokenizer = AutoTokenizer.from_pretrained("MathGpn/pretrained-bert-math") model = AutoModelForPreTraining.from_pretrained("MathGpn/pretrained-bert-math", device_map="auto") - Notebooks
- Google Colab
- Kaggle
File size: 314 Bytes
5089ec0 | 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]"
}
|