Instructions to use ClueAI/ChatYuan-large-v2 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use ClueAI/ChatYuan-large-v2 with Transformers:
# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSeq2SeqLM tokenizer = AutoTokenizer.from_pretrained("ClueAI/ChatYuan-large-v2", trust_remote_code=True) model = AutoModelForSeq2SeqLM.from_pretrained("ClueAI/ChatYuan-large-v2", trust_remote_code=True, device_map="auto") - Notebooks
- Google Colab
- Kaggle
Download tokenizer_config.json from ClueAI/ChatYuan-large-v2: direct link, hf CLI and curl.
- Browser
- Download file 197 Bytes
-
https://huggingface.co/ClueAI/ChatYuan-large-v2/resolve/main/tokenizer_config.json
- Command line
-
hf download hf://ClueAI/ChatYuan-large-v2/tokenizer_config.json
-
curl -L -o tokenizer_config.json https://huggingface.co/ClueAI/ChatYuan-large-v2/resolve/main/tokenizer_config.json
197 Bytes
| { | |
| "eos_token": "</s>", | |
| "unk_token": "<unk>", | |
| "pad_token": "<pad>", | |
| "extra_ids": 0, "additional_special_tokens": null, | |
| "model_max_length": 2048, | |
| "name_or_path": "t5-large" | |
| } |