the line 32 in convert_llama_weights_to_hf is  LlamaTokenizer not LlamaForTokenizer 
https://github.com/huggingface/transformers/blob/c07a02a4b7892edfee22cbe57d3cdd9e10ae7a4d/src/transformers/models/llama/convert_llama_weights_to_hf.py#L37

from transformers import LlamaForCausalLM, LlamaForTokenizer 

to

from transformers import LlamaForCausalLM, LlamaTokenizer  

Hi @zhl5842, thanks for raising this! Would you like to open a PR to fix this doc example? <|||||>This issue has been automatically marked as stale because it has not had recent activity. If you think this still needs to be addressed please comment on this thread.

Please note that issues that do not follow the [contributing guidelines](https://github.com/huggingface/transformers/blob/main/CONTRIBUTING.md) are likely to be ignored.