Environment Information
- Platform: Genio-720, D9300
- Toolkit Version: GAI-Deployment-Toolkit-v2.0.2_llama3-8b-v0.1.tar.gz
Issue Description
When configuring the Llama3-8B model for inference, the config_llama3_8b.yaml file references both llama3_8b.tiktoken and added_tokens.yaml in its tokenizerPath field:
tokenizerPath:
- /data/local/tmp/llm_sdk/llama3/llama3_8b.tiktoken
- /data/local/tmp/llm_sdk/llama3/added_tokens.yaml
If the llama3_8b.tiktoken file cannot be found in the model directory, is it still required, or can inference proceed with only added_tokens.yaml?
Solution
The llama3_8b.tiktoken file is required for proper model inference. This file corresponds to the tokenizer configuration and is necessary for encoding input data correctly. Without it, the model may not process input as expected.
- You can obtain this file from Hugging Face: Meta-Llama-3-8B-Instruct repository. The file in the repository is named
tokenizer.model. - To use it in your configuration, download
tokenizer.modeland rename it tollama3_8b.tiktoken. - Place it in the expected directory as referenced in your
config_llama3_8b.yaml.
The added_tokens.yaml file is also required if your pipeline depends on additional token customization.
Example Steps
- Download the
tokenizer.modelfrom the original directory. - Rename the file to
llama3_8b.tiktoken. - Push it to
/data/local/tmp/llm_sdk/llama3/. - Ensure
added_tokens.yamlis also present if needed.
Notes
- Both files must be present unless your specific use case or configuration indicates otherwise.
- Refer to your model’s documentation or codebase comments for any exceptions.
- Missing the tokenizer file may result in inference errors or incorrect outputs.