[LLaMA3-8B] [Pre-inference Setup] Missing llama3_8b.tiktoken in TokenizerPath

Environment Information

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.model and rename it to llama3_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

  1. Download the tokenizer.model from the original directory.
  2. Rename the file to llama3_8b.tiktoken.
  3. Push it to /data/local/tmp/llm_sdk/llama3/.
  4. Ensure added_tokens.yaml is 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.

The solution was tested and verified on July 24th, 2025