Instructions to use isbondarev/TeleChat2-7B-32K-adv with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use isbondarev/TeleChat2-7B-32K-adv with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("feature-extraction", model="isbondarev/TeleChat2-7B-32K-adv", trust_remote_code=True)# pip install -U transformers accelerate # Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("isbondarev/TeleChat2-7B-32K-adv", trust_remote_code=True, device_map="auto") - Notebooks
- Google Colab
- Kaggle
Download tokenizer_config.json from isbondarev/TeleChat2-7B-32K-adv: direct link, hf CLI and curl.
- Browser
- Download file 2.46 kB
-
https://huggingface.co/isbondarev/TeleChat2-7B-32K-adv/resolve/main/tokenizer_config.json
- Command line
-
hf download hf://isbondarev/TeleChat2-7B-32K-adv/tokenizer_config.json
-
curl -L -o tokenizer_config.json https://huggingface.co/isbondarev/TeleChat2-7B-32K-adv/resolve/main/tokenizer_config.json
2.46 kB
| { | |
| "add_bos_token": false, | |
| "add_eos_token": false, | |
| "added_tokens_decoder": { | |
| "1": { | |
| "content": "<_start>", | |
| "lstrip": false, | |
| "normalized": false, | |
| "rstrip": false, | |
| "single_word": false, | |
| "special": true | |
| }, | |
| "2": { | |
| "content": "<_end>", | |
| "lstrip": false, | |
| "normalized": false, | |
| "rstrip": false, | |
| "single_word": false, | |
| "special": true | |
| }, | |
| "3": { | |
| "content": "<_pad>", | |
| "lstrip": false, | |
| "normalized": false, | |
| "rstrip": false, | |
| "single_word": false, | |
| "special": true | |
| }, | |
| "4": { | |
| "content": "<_user>", | |
| "lstrip": false, | |
| "normalized": false, | |
| "rstrip": false, | |
| "single_word": false, | |
| "special": true | |
| }, | |
| "5": { | |
| "content": "<_bot>", | |
| "lstrip": false, | |
| "normalized": false, | |
| "rstrip": false, | |
| "single_word": false, | |
| "special": true | |
| }, | |
| "6": { | |
| "content": "<_system>", | |
| "lstrip": false, | |
| "normalized": false, | |
| "rstrip": false, | |
| "single_word": false, | |
| "special": true | |
| }, | |
| "9": { | |
| "content": "<tool_call>", | |
| "lstrip": false, | |
| "normalized": false, | |
| "rstrip": false, | |
| "single_word": false, | |
| "special": true | |
| }, | |
| "10": { | |
| "content": "</tool_call>", | |
| "lstrip": false, | |
| "normalized": false, | |
| "rstrip": false, | |
| "single_word": false, | |
| "special": true | |
| }, | |
| "11": { | |
| "content": "<tool_response>", | |
| "lstrip": false, | |
| "normalized": false, | |
| "rstrip": false, | |
| "single_word": false, | |
| "special": true | |
| }, | |
| "12": { | |
| "content": "</tool_response>", | |
| "lstrip": false, | |
| "normalized": false, | |
| "rstrip": false, | |
| "single_word": false, | |
| "special": true | |
| } | |
| }, | |
| "additional_special_tokens": [ | |
| "<_start>", | |
| "<_end>", | |
| "<_pad>", | |
| "<_user>", | |
| "<_bot>", | |
| "<_system>", | |
| "<tool_call>", | |
| "</tool_call>", | |
| "<tool_response>", | |
| "</tool_response>" | |
| ], | |
| "auto_map": { | |
| "AutoTokenizer": [ | |
| "tokenization_telechat2.Telechat2Tokenizer", | |
| null | |
| ] | |
| }, | |
| "bos_token": "<_start>", | |
| "clean_up_tokenization_spaces": false, | |
| "eos_token": "<_end>", | |
| "extra_special_tokens": {}, | |
| "model_max_length": 100000000, | |
| "pad_token": "<_pad>", | |
| "padding_side": "left", | |
| "sp_model_kwargs": {}, | |
| "split_special_tokens": false, | |
| "tokenizer_class": "Telechat2Tokenizer", | |
| "use_fast": false | |
| } | |