sampling : fix temperature check to allow zero temperature

This commit modifies the temperature sampling check to allow a
temperature value of zero. Previously, the check only allowed
positive temperature values, which excluded the valid case of
zero temperature.

The motivation for this is to enable a zero temperature setting which is
also currently causing the following test to fail:
```console
(venv) $ cd tools/server/tests
(venv) $ ./tests.sh unit/test_basic.py::test_load_split_model
```
This commit is contained in:
Daniel Bevenius 2025-11-27 09:18:43 +01:00
parent d9d736102b
commit 51107a0b63
No known key found for this signature in database
1 changed files with 1 additions and 1 deletions

View File

@ -207,7 +207,7 @@ static bool is_sampler_enabled(enum common_sampler_type type, const struct commo
}
break;
case COMMON_SAMPLER_TYPE_TEMPERATURE:
if (params.temp <= 0.0f) {
if (params.temp < 0.0f) {
return false;
}
break;