Skip to content

feat(telemetry): add embedding token count usage - #594

Open
abn wants to merge 1 commit into
ROCm:mainfrom
abn:feat/embedding-telemetry-usage
Open

feat(telemetry): add embedding token count usage#594
abn wants to merge 1 commit into
ROCm:mainfrom
abn:feat/embedding-telemetry-usage

Conversation

@abn

@abn abn commented Jul 3, 2026

Copy link
Copy Markdown

This change introduces embed_with_usage to AutoEmbeddingModel to return prompt token counts. Implemented for Gemma_Embedding, avoiding double-tokenization, and update RestHandler to report total batch usage.

This change also updates standalone test suite to verify token counts.

Introduce embed_with_usage to AutoEmbeddingModel to return prompt token counts. Implement for Gemma_Embedding, avoiding double-tokenization, and update RestHandler to report total batch usage. Update standalone test suite to verify token counts.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant