params optimize
This commit is contained in:
@@ -50,7 +50,7 @@ final class ModelGenerationConfigManager
|
||||
throw new \InvalidArgumentException('Top P must be between 0.0 and 1.0');
|
||||
}
|
||||
|
||||
if ($config->getTopK() <= 0) {
|
||||
if ($config->getTopK() < 0) {
|
||||
throw new \InvalidArgumentException('Top K must be > 0');
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user