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 chatyuan_wechat.jpeg from ClueAI/ChatYuan-large-v2: direct link, hf CLI and curl.
- Browser
- Download file 82.4 kB
-
https://huggingface.co/ClueAI/ChatYuan-large-v2/resolve/main/chatyuan_wechat.jpeg
- Command line
-
hf download hf://ClueAI/ChatYuan-large-v2/chatyuan_wechat.jpeg
-
curl -L -o chatyuan_wechat.jpeg https://huggingface.co/ClueAI/ChatYuan-large-v2/resolve/main/chatyuan_wechat.jpeg
82.4 kB
