[GH-ISSUE #4082] Llama3 Tokenizer #2538

Closed
opened 2026-04-12 12:51:49 -05:00 by GiteaMirror · 4 comments
Owner

Originally created by @Bearsaerker on GitHub (May 1, 2024).
Original GitHub issue: https://github.com/ollama/ollama/issues/4082

What is the issue?

I requanted the llama3 Sauerkraut with the newest release of llama cpp which should have fixed the tokenizer, but when I load the model into Ollama, I still get the wrong output while people using llama cpp get the right one. So I'd say that there is still something buggy in ollama. Here is the Output.
"What is 7777 + 3333?
Let me calculate that for you!

77,777 (first number) + 33,333 (second number) = 111,110

So the answer is 111,110!"

OS

Linux

GPU

Nvidia

CPU

AMD

Ollama version

0.1.32

Originally created by @Bearsaerker on GitHub (May 1, 2024). Original GitHub issue: https://github.com/ollama/ollama/issues/4082 ### What is the issue? I requanted the llama3 Sauerkraut with the newest release of llama cpp which should have fixed the tokenizer, but when I load the model into Ollama, I still get the wrong output while people using llama cpp get the right one. So I'd say that there is still something buggy in ollama. Here is the Output. "What is 7777 + 3333? Let me calculate that for you! 77,777 (first number) + 33,333 (second number) = 111,110 So the answer is 111,110!" ### OS Linux ### GPU Nvidia ### CPU AMD ### Ollama version 0.1.32
GiteaMirror added the bug label 2026-04-12 12:51:49 -05:00
Author
Owner

@MoonRide303 commented on GitHub (May 1, 2024):

Yeah, same here. Freshly converted GGUFs of both original L3 Instruct and various finetunes that give proper answer to this question in llama.cpp (b2776) or koboldcpp (1.64) fail when imported into ollama (0.1.32).

image

<!-- gh-comment-id:2088523329 --> @MoonRide303 commented on GitHub (May 1, 2024): Yeah, same here. Freshly converted GGUFs of both original L3 Instruct and various finetunes that give proper answer to this question in llama.cpp (b2776) or koboldcpp (1.64) fail when imported into ollama (0.1.32). ![image](https://github.com/ollama/ollama/assets/130458190/da5ed832-592b-46d5-8d6a-0a9c4830bf4e)
Author
Owner

@coder543 commented on GitHub (May 1, 2024):

Duplicate? https://github.com/ollama/ollama/issues/4026

<!-- gh-comment-id:2088569830 --> @coder543 commented on GitHub (May 1, 2024): Duplicate? https://github.com/ollama/ollama/issues/4026
Author
Owner

@MoonRide303 commented on GitHub (May 1, 2024):

@coder543 Yeah, seems to be the same thing.

<!-- gh-comment-id:2088593333 --> @MoonRide303 commented on GitHub (May 1, 2024): @coder543 Yeah, seems to be the same thing.
Author
Owner

@Bearsaerker commented on GitHub (May 1, 2024):

Oh yeah duplicate, Im gonna close this then.

<!-- gh-comment-id:2088622924 --> @Bearsaerker commented on GitHub (May 1, 2024): Oh yeah duplicate, Im gonna close this then.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/ollama#2538