Skip to content

llama-eval : fix crash when answer is None in HTML dump - #25435

Merged
ggerganov merged 1 commit into
masterfrom
gg/fix-llama-eval-none-answer
Jul 8, 2026
Merged

ggerganov merged 1 commit into
masterfrom
gg/fix-llama-eval-none-answer

Conversation

@ggerganov

Copy link
Copy Markdown
Member

Overview

dict.get("key", default) returns None (not the default) when the key exists with value None, causing an AttributeError in _escape_html() for errored tasks.

Requirements

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
@ggerganov
ggerganov marked this pull request as ready for review July 8, 2026 06:25
@ggerganov
ggerganov merged commit da46e59 into master Jul 8, 2026
6 checks passed
@ggerganov
ggerganov deleted the gg/fix-llama-eval-none-answer branch July 8, 2026 07:00
satindergrewal pushed a commit to satindergrewal/llama.cpp that referenced this pull request Aug 12, 2026
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
zbrad pushed a commit to zbrad/llama.cpp that referenced this pull request Sep 10, 2026
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant