[GH-ISSUE #8273] Token counting #31051

Closed
opened 2026-04-22 11:10:42 -05:00 by GiteaMirror · 3 comments
Owner

Originally created by @mjaniec2013 on GitHub (Dec 31, 2024).
Original GitHub issue: https://github.com/ollama/ollama/issues/8273

Would it be possible to add to ollama model-dependent token counting functionality?

Currently, counting tokens requires using HF AutoTokenizer and duplicate installation of the models.

Originally created by @mjaniec2013 on GitHub (Dec 31, 2024). Original GitHub issue: https://github.com/ollama/ollama/issues/8273 Would it be possible to add to ollama model-dependent token counting functionality? Currently, counting tokens requires using HF AutoTokenizer and duplicate installation of the models.
GiteaMirror added the feature request label 2026-04-22 11:10:42 -05:00
Author
Owner
<!-- gh-comment-id:2566264768 --> @rick-github commented on GitHub (Dec 31, 2024): https://github.com/ollama/ollama/issues/3582 https://github.com/ollama/ollama/pull/8106
Author
Owner

@mjaniec2013 commented on GitHub (Dec 31, 2024):

Waiting till the change hits the main Python SDK then :)

<!-- gh-comment-id:2566593756 --> @mjaniec2013 commented on GitHub (Dec 31, 2024): Waiting till the change hits the main Python SDK then :)
Author
Owner

@rick-github commented on GitHub (Jan 1, 2025):

closing as dupe

<!-- gh-comment-id:2566768127 --> @rick-github commented on GitHub (Jan 1, 2025): closing as dupe
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/ollama#31051