CoolFace
Modelpublic

WisdomShell/Shell-7B-Chat

sourceHugging Faceupdated 2y agoView on Hugging Face
1likes16downloads
tokenizer_config.json189 linesDownload Raw Back to root
1{2  "add_bos_token": false,3  "add_prefix_space": false,4  "added_tokens_decoder": {5    "70000": {6      "content": "<|endoftext|>",7      "lstrip": false,8      "normalized": false,9      "rstrip": false,10      "single_word": false,11      "special": true12    },13    "70001": {14      "content": "<fim_prefix>",15      "lstrip": false,16      "normalized": false,17      "rstrip": false,18      "single_word": false,19      "special": true20    },21    "70002": {22      "content": "<fim_middle>",23      "lstrip": false,24      "normalized": false,25      "rstrip": false,26      "single_word": false,27      "special": true28    },29    "70003": {30      "content": "<fim_suffix>",31      "lstrip": false,32      "normalized": false,33      "rstrip": false,34      "single_word": false,35      "special": true36    },37    "70004": {38      "content": "<fim_pad>",39      "lstrip": false,40      "normalized": false,41      "rstrip": false,42      "single_word": false,43      "special": true44    },45    "70005": {46      "content": "<filename>",47      "lstrip": false,48      "normalized": false,49      "rstrip": false,50      "single_word": false,51      "special": true52    },53    "70006": {54      "content": "<gh_stars>",55      "lstrip": false,56      "normalized": false,57      "rstrip": false,58      "single_word": false,59      "special": true60    },61    "70007": {62      "content": "<issue_start>",63      "lstrip": false,64      "normalized": false,65      "rstrip": false,66      "single_word": false,67      "special": true68    },69    "70008": {70      "content": "<issue_comment>",71      "lstrip": false,72      "normalized": false,73      "rstrip": false,74      "single_word": false,75      "special": true76    },77    "70009": {78      "content": "<issue_closed>",79      "lstrip": false,80      "normalized": false,81      "rstrip": false,82      "single_word": false,83      "special": true84    },85    "70010": {86      "content": "<jupyter_start>",87      "lstrip": false,88      "normalized": false,89      "rstrip": false,90      "single_word": false,91      "special": true92    },93    "70011": {94      "content": "<jupyter_text>",95      "lstrip": false,96      "normalized": false,97      "rstrip": false,98      "single_word": false,99      "special": true100    },101    "70012": {102      "content": "<jupyter_code>",103      "lstrip": false,104      "normalized": false,105      "rstrip": false,106      "single_word": false,107      "special": true108    },109    "70013": {110      "content": "<jupyter_output>",111      "lstrip": false,112      "normalized": false,113      "rstrip": false,114      "single_word": false,115      "special": true116    },117    "70014": {118      "content": "<empty_output>",119      "lstrip": false,120      "normalized": false,121      "rstrip": false,122      "single_word": false,123      "special": true124    },125    "70015": {126      "content": "<commit_before>",127      "lstrip": false,128      "normalized": false,129      "rstrip": false,130      "single_word": false,131      "special": true132    },133    "70016": {134      "content": "<commit_msg>",135      "lstrip": false,136      "normalized": false,137      "rstrip": false,138      "single_word": false,139      "special": true140    },141    "70017": {142      "content": "<commit_after>",143      "lstrip": false,144      "normalized": false,145      "rstrip": false,146      "single_word": false,147      "special": true148    },149    "70018": {150      "content": "<reponame>",151      "lstrip": false,152      "normalized": false,153      "rstrip": false,154      "single_word": false,155      "special": true156    }157  },158  "additional_special_tokens": [159    "<|endoftext|>",160    "<fim_prefix>",161    "<fim_middle>",162    "<fim_suffix>",163    "<fim_pad>",164    "<filename>",165    "<gh_stars>",166    "<issue_start>",167    "<issue_comment>",168    "<issue_closed>",169    "<jupyter_start>",170    "<jupyter_text>",171    "<jupyter_code>",172    "<jupyter_output>",173    "<empty_output>",174    "<commit_before>",175    "<commit_msg>",176    "<commit_after>",177    "<reponame>"178  ],179  "bos_token": "<|endoftext|>",180  "clean_up_tokenization_spaces": true,181  "eos_token": "<|endoftext|>",182  "errors": "replace",183  "model_max_length": 1000000000000000019884624838656,184  "pad_token": "<|endoftext|>",185  "tokenizer_class": "GPT2Tokenizer",186  "unk_token": "<|endoftext|>",187  "chat_template": "{% if not add_generation_prompt is defined %}{% set add_generation_prompt = false %}{% endif %}{% for message in messages %}{{'<|' + message['role'] + '|>\n' + message['content']}}{% if message['role'] == 'assistant' %}{{ '<|endoftext|>' }}{% endif %}{{'\n'}}{% endfor %}{% if add_generation_prompt %}{{ '<|assistant|>\n' }}{% endif %}"188}189