Environment Information
- Platform: Genio-720, D9300
- Toolkit Version: GAI-Deployment-Toolkit-v2.0.2_llama3-8b-v0.1.tar.gz
Issue Description:
- Tokenizer Class Mismatch:
The tokenizer class you load from this checkpoint is not the same type as the class this function is called from. It may result in unexpected tokenization.
The tokenizer class you load from this checkpoint is 'PreTrainedTokenizerFast'.
The class this function is called from is 'LlamaTokenizer'.
- Unsupported Argument
padding_side:
TypeError: _batch_encode_plus() got an unexpected keyword argument 'padding_side'
Solution:
- For tokenizer class mismatch:
- Add
"tokenizer": "pretrained_fast"toconfig.json.
- For argument error:
- Install the compatible version of
transformers:
pip install transformers==4.41.2