Instructions to use jfrick/scholarly-code-tokenizer with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use jfrick/scholarly-code-tokenizer with Transformers:
# pip install -U transformers accelerate # Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("jfrick/scholarly-code-tokenizer", device_map="auto") - Notebooks
- Google Colab
- Kaggle
File size: 316 Bytes
6bbbc6f | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | {
"tokenizer_class": "PreTrainedTokenizerFast",
"clean_up_tokenization_spaces": false,
"model_input_names": [
"input_ids",
"attention_mask"
],
"add_bos_token": false,
"add_eos_token": false,
"pad_token": "<|pad|>",
"bos_token": "<|bos|>",
"eos_token": "<|eos|>",
"unk_token": "<|unk|>"
}
|