[GH-ISSUE #3671] Ollama Reports 0 Prompt Tokens When Using Llava #2262

Closed
opened 2026-04-12 12:32:05 -05:00 by GiteaMirror · 1 comment
Owner

Originally created by @chigkim on GitHub (Apr 16, 2024).
Original GitHub issue: https://github.com/ollama/ollama/issues/3671

What is the issue?

When asking Llava a question with image via api, Ollama returns a wrong number of prompt tokens. It reports as 0.
It's llama.cpp issue, and the pr below fixes it.
https://github.com/ggerganov/llama.cpp/pull/5896

What did you expect to see?

It should report the right number of prompt tokens including image.

Steps to reproduce

Ask Llava with an image through chat api.

Are there any recent changes that introduced the issue?

No response

OS

No response

Architecture

No response

Platform

No response

Ollama version

f335722275

GPU

Apple

GPU info

m3-max

CPU

Apple

Other software

No response

Originally created by @chigkim on GitHub (Apr 16, 2024). Original GitHub issue: https://github.com/ollama/ollama/issues/3671 ### What is the issue? When asking Llava a question with image via api, Ollama returns a wrong number of prompt tokens. It reports as 0. It's llama.cpp issue, and the pr below fixes it. https://github.com/ggerganov/llama.cpp/pull/5896 ### What did you expect to see? It should report the right number of prompt tokens including image. ### Steps to reproduce Ask Llava with an image through chat api. ### Are there any recent changes that introduced the issue? _No response_ ### OS _No response_ ### Architecture _No response_ ### Platform _No response_ ### Ollama version https://github.com/ollama/ollama/commit/f335722275d8184836d1b777f356fa7b0a012ede ### GPU Apple ### GPU info m3-max ### CPU Apple ### Other software _No response_
GiteaMirror added the bug label 2026-04-12 12:32:05 -05:00
Author
Owner

@dhiltgen commented on GitHub (Oct 23, 2024):

Fixed in the new Go server in 0.4.0 RC

https://github.com/ollama/ollama/releases

<!-- gh-comment-id:2433142624 --> @dhiltgen commented on GitHub (Oct 23, 2024): Fixed in the new Go server in 0.4.0 RC https://github.com/ollama/ollama/releases
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/ollama#2262