tok/mkf upd
This commit is contained in:
@@ -77,12 +77,14 @@ pre-tokenizer and BPE logic in `tokenizer.c`) — no upstream token counts are
|
||||
available from the Gradio backend.
|
||||
|
||||
- `prompt_tokens` sums the active `system` prompt, each message's `content`
|
||||
(or individual multi-part content parts), `reasoning_content`, `tool_calls`
|
||||
/ `function_call` (`name` and `arguments`), `tool` result wrappers, and any
|
||||
request `tools` function definitions (`name`, `description`, `parameters`).
|
||||
(or individual multi-part content parts), `reasoning_content` when
|
||||
`preserved_thinking` is active (enabled by default when `tools` are
|
||||
present, matching `tencent/Hy3`'s `chat_template.jinja`), `tool_calls` /
|
||||
`function_call` (`name` and unpacked `arguments` key/value pairs), the
|
||||
final `tool` result wrapper, and any request `tools` function definitions.
|
||||
- `completion_tokens` sums the assistant `content`, `reasoning_content`, and
|
||||
any emitted `tool_calls` (`name` and `arguments`), with `reasoning_tokens`
|
||||
broken out under `completion_tokens_details`.
|
||||
any emitted `tool_calls` (`name` and unpacked `arguments` key/value pairs),
|
||||
with `reasoning_tokens` broken out under `completion_tokens_details`.
|
||||
- `total_tokens = prompt_tokens + completion_tokens`.
|
||||
|
||||
The embedded tokenizer implements `tencent/Hy3`'s exact 4-stage `Sequence`
|
||||
|
||||
Reference in New Issue
Block a user