PromptBuilder::usingTopK( int $topK ): self

In this article

Sets the top-k value for generation.

Parameters

$topKintrequired
The top-k value.

Return

self

Source

public function usingTopK(int $topK): self
{
    $this->modelConfig->setTopK($topK);
    return $this;
}

Changelog

VersionDescription
0.1.0Introduced.

User Contributed Notes

You must log in before being able to contribute a note or feedback.