# \[LLaMA3-8B\] \[Pre-inference Setup\] Missing llama3\_8b.tiktoken in TokenizerPath

**URL:** <https://genio-community.mediatek.com/t/llama3-8b-pre-inference-setup-missing-llama3-8b-tiktoken-in-tokenizerpath/1061>\
**Category:** NeuroPilot - GenAI\
**Tags:** Genio-720\
**Created:** [September 24, 2025, 9:23am UTC](https://genio-community.mediatek.com/t/llama3-8b-pre-inference-setup-missing-llama3-8b-tiktoken-in-tokenizerpath/1061 "2025-09-24T09:23:10Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![jing\_liao](https://yyz2.discourse-cdn.com/flex004/user_avatar/genio-community.mediatek.com/jing_liao/32/294_2.png) [@jing\_liao](https://genio-community.mediatek.com/u/jing_liao)\
**Post date:** [September 24, 2025, 9:23am UTC](https://genio-community.mediatek.com/t/llama3-8b-pre-inference-setup-missing-llama3-8b-tiktoken-in-tokenizerpath/1061/1 "2025-09-24T09:23:10Z")

</div>

### Environment Information

- Platform: Genio-720, D9300
- Toolkit Version: [GAI-Deployment-Toolkit-v2.0.2\_llama3-8b-v0.1.tar.gz](https://neuropilot.mediatek.inc/resources/downloads/a3c96818-572e-4e23-9f74-4034775b4929)

### 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:

```auto
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](https://huggingface.co/meta-llama/Meta-Llama-3-8B-Instruct/tree/main/original). 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](https://huggingface.co/meta-llama/Meta-Llama-3-8B-Instruct/tree/main/original).
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.

---

<div class="post-metadata">

**Author:** ![joying.kuo](https://yyz2.discourse-cdn.com/flex004/user_avatar/genio-community.mediatek.com/joying.kuo/32/167_2.png) [@joying.kuo](https://genio-community.mediatek.com/u/joying.kuo)\
**Post date:** [September 25, 2025, 8:58am UTC](https://genio-community.mediatek.com/t/llama3-8b-pre-inference-setup-missing-llama3-8b-tiktoken-in-tokenizerpath/1061/2 "2025-09-25T08:58:39Z")

</div>

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