Instructions to use Pyro-X2/math-tokenizer with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Pyro-X2/math-tokenizer with Transformers:
# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("Pyro-X2/math-tokenizer", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Download tokenizer_config.json from Pyro-X2/math-tokenizer: direct link, hf CLI and curl.
- Browser
- Download file 998 Bytes
-
https://huggingface.co/Pyro-X2/math-tokenizer/resolve/main/tokenizer_config.json
- Command line
-
hf download hf://Pyro-X2/math-tokenizer/tokenizer_config.json
-
curl -L -o tokenizer_config.json https://huggingface.co/Pyro-X2/math-tokenizer/resolve/main/tokenizer_config.json
998 Bytes
| { | |
| "add_bos_token": false, | |
| "add_eos_token": false, | |
| "add_prefix_space": null, | |
| "added_tokens_decoder": { | |
| "0": { | |
| "content": "<unk>", | |
| "lstrip": false, | |
| "normalized": false, | |
| "rstrip": false, | |
| "single_word": false, | |
| "special": true | |
| }, | |
| "1": { | |
| "content": "<s>", | |
| "lstrip": false, | |
| "normalized": false, | |
| "rstrip": false, | |
| "single_word": false, | |
| "special": true | |
| }, | |
| "2": { | |
| "content": "</s>", | |
| "lstrip": false, | |
| "normalized": false, | |
| "rstrip": false, | |
| "single_word": false, | |
| "special": true | |
| } | |
| }, | |
| "additional_special_tokens": [], | |
| "bos_token": "<s>", | |
| "clean_up_tokenization_spaces": false, | |
| "eos_token": "</s>", | |
| "legacy": true, | |
| "model_max_length": 1000000000000000019884624838656, | |
| "pad_token": "</s>", | |
| "sp_model_kwargs": {}, | |
| "spaces_between_special_tokens": false, | |
| "tokenizer_class": "LlamaTokenizer", | |
| "unk_token": "<unk>", | |
| "use_default_system_prompt": false | |
| } | |