Sets the top-k value for generation.
Parameters
$topKintrequired- The top-k value.
Source
public function usingTopK(int $topK): self
{
$this->modelConfig->setTopK($topK);
return $this;
}
Changelog
| Version | Description |
|---|---|
| 0.1.0 | Introduced. |
Sets the top-k value for generation.
$topKintrequiredpublic function usingTopK(int $topK): self
{
$this->modelConfig->setTopK($topK);
return $this;
}
| Version | Description |
|---|---|
| 0.1.0 | Introduced. |
User Contributed Notes
You must log in before being able to contribute a note or feedback.