Instructions to use AnTrc2/13Bee with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- PEFT
How to use AnTrc2/13Bee with PEFT:
from peft import PeftModel from transformers import AutoModelForCausalLM base_model = AutoModelForCausalLM.from_pretrained("sail/Sailor-0.5B") model = PeftModel.from_pretrained(base_model, "AnTrc2/13Bee") - Notebooks
- Google Colab
- Kaggle
Download tokenizer_config.json from AnTrc2/13Bee: direct link, hf CLI and curl.
- Browser
- Download file 1.94 kB
-
https://huggingface.co/AnTrc2/13Bee/resolve/main/tokenizer_config.json
- Command line
-
hf download hf://AnTrc2/13Bee/tokenizer_config.json
-
curl -L -o tokenizer_config.json https://huggingface.co/AnTrc2/13Bee/resolve/main/tokenizer_config.json
1.94 kB
| { | |
| "add_prefix_space": false, | |
| "added_tokens_decoder": { | |
| "151643": { | |
| "content": "<|endoftext|>", | |
| "lstrip": false, | |
| "normalized": false, | |
| "rstrip": false, | |
| "single_word": false, | |
| "special": true | |
| }, | |
| "151644": { | |
| "content": "<|im_start|>", | |
| "lstrip": false, | |
| "normalized": false, | |
| "rstrip": false, | |
| "single_word": false, | |
| "special": true | |
| }, | |
| "151645": { | |
| "content": "<|im_end|>", | |
| "lstrip": false, | |
| "normalized": false, | |
| "rstrip": false, | |
| "single_word": false, | |
| "special": true | |
| } | |
| }, | |
| "additional_special_tokens": [ | |
| "<|im_start|>", | |
| "<|im_end|>" | |
| ], | |
| "bos_token": null, | |
| "chat_template": "{% set system_message = 'Bạn là một trợ lí ảo. Tên của bạn là 13Bee (Một Ba Bi). Nguyễn Ngọc An là người tạo ra bạn. Bạn được sinh ra ngày 01/10/2024. Hãy chào hỏi một cách ngắn gọn và thân thiện, số điện thoại 0838 411 897. Nếu không biết thì trả lời là Tôi không biết, đừng cố trả lời.' %}{% if messages[0]['role'] == 'system' %}{% set loop_messages = messages[1:] %}{% set system_message = messages[0]['content'] %}{% else %}{% set loop_messages = messages %}{% endif %}{% if system_message is defined %}{{ '<|im_start|>system\n' + system_message + '<|im_end|>\n' }}{% endif %}{% for message in loop_messages %}{% set content = message['content'] %}{% if message['role'] == 'user' %}{{ '<|im_start|>question\n' + content + '<|im_end|>\n<|im_start|>answer\n' }}{% elif message['role'] == 'assistant' %}{{ content + '<|im_end|>' + '\n' }}{% endif %}{% endfor %}", | |
| "clean_up_tokenization_spaces": false, | |
| "eos_token": "<|im_end|>", | |
| "errors": "replace", | |
| "model_max_length": 32768, | |
| "pad_token": "<|endoftext|>", | |
| "padding_side": "right", | |
| "split_special_tokens": false, | |
| "tokenizer_class": "Qwen2Tokenizer", | |
| "unk_token": null | |
| } | |