I used the example from the modem card in my local pycharm, but encountered an error. What is the reason for this,and i how to get this model's token
#15
by
zhaoxel
- opened
----> 5 model = AutoModelForCausalLM.from_pretrained(
6 model_name
7
8 )
9 tokenizer = AutoTokenizer.from_pretrained(model_name)
11 prompt = "Give me a short introduction to large language model."
KeyError: 'qwen2',
Try upgrading transformers
as per the README. pip install -U transformers
jklj077
changed discussion status to
closed