diff --git a/src/Service/ModelGenerationConfigManager.php b/src/Service/ModelGenerationConfigManager.php index 0434b94..b0d6847 100644 --- a/src/Service/ModelGenerationConfigManager.php +++ b/src/Service/ModelGenerationConfigManager.php @@ -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'); } diff --git a/templates/admin/model_config/create.html.twig b/templates/admin/model_config/create.html.twig index e9c2024..08c5b49 100644 --- a/templates/admin/model_config/create.html.twig +++ b/templates/admin/model_config/create.html.twig @@ -84,7 +84,7 @@