Instructions to use BEGADE/chatbot with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- PEFT
How to use BEGADE/chatbot with PEFT:
from peft import PeftModel from transformers import AutoModelForCausalLM base_model = AutoModelForCausalLM.from_pretrained("gpt2") model = PeftModel.from_pretrained(base_model, "BEGADE/chatbot") - Notebooks
- Google Colab
- Kaggle
Download tokenizer_config.json from BEGADE/chatbot: direct link, hf CLI and curl.
- Browser
- Download file 1.12 kB
-
https://huggingface.co/BEGADE/chatbot/resolve/24c4c94eca309313ba45b61ba090d5bdcbcedd6d/tokenizer_config.json
- Command line
-
hf download hf://BEGADE/chatbot@24c4c94eca309313ba45b61ba090d5bdcbcedd6d/tokenizer_config.json
-
curl -L -o tokenizer_config.json https://huggingface.co/BEGADE/chatbot/resolve/24c4c94eca309313ba45b61ba090d5bdcbcedd6d/tokenizer_config.json
1.12 kB
| { | |
| "add_prefix_space": false, | |
| "added_tokens_decoder": { | |
| "50256": { | |
| "content": "<|endoftext|>", | |
| "lstrip": false, | |
| "normalized": true, | |
| "rstrip": false, | |
| "single_word": false, | |
| "special": true | |
| }, | |
| "50257": { | |
| "content": "<|im_start|>", | |
| "lstrip": false, | |
| "normalized": false, | |
| "rstrip": false, | |
| "single_word": false, | |
| "special": true | |
| }, | |
| "50258": { | |
| "content": "<|im_end|>", | |
| "lstrip": false, | |
| "normalized": false, | |
| "rstrip": false, | |
| "single_word": false, | |
| "special": true | |
| } | |
| }, | |
| "additional_special_tokens": [ | |
| "<|im_start|>", | |
| "<|im_end|>" | |
| ], | |
| "bos_token": "<|im_start|>", | |
| "chat_template": "{% for message in messages %}{{'<|im_start|>' + message['role'] + '\n' + message['content'] + '<|im_end|>' + '\n'}}{% endfor %}{% if add_generation_prompt %}{{ '<|im_start|>assistant\n' }}{% endif %}", | |
| "clean_up_tokenization_spaces": true, | |
| "eos_token": "<|im_end|>", | |
| "model_max_length": 1024, | |
| "pad_token": "<|im_end|>", | |
| "tokenizer_class": "GPT2Tokenizer", | |
| "unk_token": "<|endoftext|>" | |
| } | |