Decodes an ordered list of token ids back into text using a local model’s vocabulary, returning the reconstructed string. Detokenization is a local-only operation: it requires a build with the local execution feature and returns inference.unsupported_operation for cloud provider specs.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
ids | integer[] | yes | Token ids. |
model | string | yes | Model spec. |
Returns
DetokenizedText.
Errors
failed_precondition.engine.runtime_closednot_found.engine.branchinference.unsupported_operationinference.missing_modelinference.model_load_failedinference.local_runtime_failedinference.registry_corrupt
Invocation
- CLI:
strata inference detokenize - Wire type:
inference_detokenize