Huggingface.js 文件

介面:TextGenerationStreamPrefillToken

Hugging Face's logo
加入 Hugging Face 社群

並獲得增強的文件體驗

開始使用

介面:TextGenerationStreamPrefillToken

屬性

ID

id: number

模型分詞器中的令牌 ID

定義於

inference/src/tasks/nlp/textGenerationStream.ts:23


對數機率

可選 logprob: number

對數機率(可選),因為第一個令牌的對數機率無法計算。

定義於

inference/src/tasks/nlp/textGenerationStream.ts:30


文字

text: string

令牌文字

定義於

inference/src/tasks/nlp/textGenerationStream.ts:25

< > 在 GitHub 上更新

© . This site is unofficial and not affiliated with Hugging Face, Inc.