Buckets:

hf-doc-build/doc-dev / huggingface.js /pr_2407 /en /inference /interfaces /TextGenerationStreamToken.md
|
download
raw
1.18 kB
# Interface: TextGenerationStreamToken
## Properties
### id
**id**: `number`
Token ID from the model tokenizer
#### Defined in[[id.defined-in]]
[inference/src/tasks/nlp/textGenerationStream.ts:9](https://github.com/huggingface/huggingface.js/blob/main/packages/inference/src/tasks/nlp/textGenerationStream.ts#L9)
___
### logprob
• **logprob**: `number`
Logprob
#### Defined in[[logprob.defined-in]]
[inference/src/tasks/nlp/textGenerationStream.ts:13](https://github.com/huggingface/huggingface.js/blob/main/packages/inference/src/tasks/nlp/textGenerationStream.ts#L13)
___
### special
• **special**: `boolean`
Is the token a special token
Can be used to ignore tokens when concatenating
#### Defined in[[special.defined-in]]
[inference/src/tasks/nlp/textGenerationStream.ts:18](https://github.com/huggingface/huggingface.js/blob/main/packages/inference/src/tasks/nlp/textGenerationStream.ts#L18)
___
### text
• **text**: `string`
Token text
#### Defined in[[text.defined-in]]
[inference/src/tasks/nlp/textGenerationStream.ts:11](https://github.com/huggingface/huggingface.js/blob/main/packages/inference/src/tasks/nlp/textGenerationStream.ts#L11)

Xet Storage Details

Size:
1.18 kB
·
Xet hash:
1d6c0f7e35e23bd5105fa83f1c6d8df60a9272dd8ebb93a95ac9b7c780134b76

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.