Thanks to visit codestin.com
Credit goes to github.com

Skip to content

server: remove duplicate top_logprobs validation#14564

Open
umut-polat wants to merge 1 commit intoollama:mainfrom
umut-polat:fix/remove-duplicate-logprobs-check
Open

server: remove duplicate top_logprobs validation#14564
umut-polat wants to merge 1 commit intoollama:mainfrom
umut-polat:fix/remove-duplicate-logprobs-check

Conversation

@umut-polat
Copy link

Both GenerateHandler and ChatHandler validated top_logprobs twice: once early after parsing the request and again after loading the model. The second check is unreachable dead code since the first already returns on invalid values.

Removed the duplicate checks at lines 236 and 2038 (before this change).

Both GenerateHandler and ChatHandler validated top_logprobs twice:
once early after parsing the request and again after loading the
model. The second check is unreachable since the first already
returns on invalid values.

Signed-off-by: umut-polat <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant