]> git.djapps.eu Git - pkg/ggml/sources/llama.cpp/commit
llama-eval : fix crash when answer is None in HTML dump (#25435)
authorGeorgi Gerganov <redacted>
Wed, 8 Jul 2026 07:00:03 +0000 (10:00 +0300)
committerGitHub <redacted>
Wed, 8 Jul 2026 07:00:03 +0000 (10:00 +0300)
commitda46e59cbf899282a70eb48a3502f7811e9ede29
treea6125bde7812b74875842ed60f13cea6270a52e6
parent0512ef1e5a7f76297c72beae1383b70632048008
llama-eval : fix crash when answer is None in HTML dump (#25435)

dict.get("key", default) returns None (not default) when the key
exists but its value is explicitly None. This caused an AttributeError
in _escape_html() when a task errored before grading and answer was
set to None.

Assisted-by: pi:llama.cpp/Qwen3.6-27B
examples/llama-eval/llama-eval.py