Huggingface.js 文件

介面:TextGenerationStreamBestOfSequence

Hugging Face's logo
加入 Hugging Face 社群

並獲得增強的文件體驗

開始使用

介面:TextGenerationStreamBestOfSequence

屬性

finish _ reason

finish_reason: TextGenerationStreamFinishReason

生成結束原因

定義於

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


generated _ text

generated_text: string

生成的文字

定義於

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


generated _ tokens

generated_tokens: number

生成的 token 數量

定義於

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


預填充

prefill: TextGenerationStreamPrefillToken[]

提示詞 token

定義於

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


seed

Optional seed: number

如果啟用了取樣,則為取樣種子

定義於

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


tokens

tokens: TextGenerationStreamToken[]

生成的 tokens

定義於

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

< > 在 GitHub 上更新

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