Instructions to use shareAI/llama2-13b-Chinese-chat with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use shareAI/llama2-13b-Chinese-chat with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("question-answering", model="shareAI/llama2-13b-Chinese-chat")# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("shareAI/llama2-13b-Chinese-chat", dtype="auto") - Notebooks
- Google Colab
- Kaggle
ValueError: Tokenizer class LlamaTokenizer does not exist or is not currently imported.
#4
by HelixPark - opened
ValueError: Tokenizer class LlamaTokenizer does not exist or is not currently imported.
Transformers = 4.27.1
tokenizer_config.json中 "tokenizer_class": "LlamaTokenizer",
请问修改哪些地方
建议升级一下transformers库版本再进行尝试,没有能够复现到你这个问题
Baicai003 changed discussion status to closed