[Bug]: JSON Mode Eval exact match conflates Boolean and numeric values
Maintainers usually reply within 1 day
@JunkaiWang-TheoPhy is already working on this.
Since Dec 2, 2026.
- #23269 by @JunkaiWang-TheoPhy — open
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 35/100
- Issue type
- Bug
- Clarity
- Clearly specified
- Activity status
- Stale
- Tech stack
- python
- Domain
- testing-qa
Research direction
Start with tensorrt_llm/evaluate/json_mode_eval.py and inspect JsonModeEval.compute_score, then run the reproduction in the issue; it needs no model or GPU. Add or locate coverage for Boolean versus numeric values nested in objects and arrays, while preserving object key order and equivalent numeric representations. Done when those Boolean and numeric mismatches score 0 and equivalent JSON values still match.
Written by the indexing model from the issue text.
Description
System Info
TensorRT-LLM main at c29791e46a7ef586921114da197d5d6be899bdaf. Reproduced on CPU with Python 3.12 and the real evaluator. This is score calculation after generation and needs no model or GPU.
Reproduction
Call the scorer with a schema-valid Boolean prediction and a numeric reference:
from types import SimpleNamespace
from tensorrt_llm.evaluate.json_mode_eval import JsonModeEval
evaluator = JsonModeEval.__new__(JsonModeEval)
output = SimpleNamespace(outputs=[SimpleNamespace(text='{"items": [false]}')])
print(evaluator.compute_score([output], ['{"items": [0]}'], ['{"type": "object"}']))
The default dataset exhibits this too. In zero-indexed training row 39, replacing properties.propertiesCount.minimum from the integer 0 with false preserves validation against that row's schema. Pinned NousResearch dataset revision
Expected behavior
Both predictions can be grammar-valid, but their exact-match score should be 0. JSON Boolean and numeric values differ, including when nested inside an object or array. JSON Schema instance equality
Actual behavior
The example above returns 100.0, and the substitution in default dataset row 39 does the same. Python compares False == 0 and also treats these values as equal inside nested containers.
Additional notes
The evaluation should still accept differences in object property order and equivalent JSON numeric representations such as 1 and 1.0. The score can reuse the JSON Schema validator's const semantics.
- Dominant language
- Python
- Stars
- 15.2k
- Forks
- 3k
- Avg merge
- 2d 21h
- Merged PRs (30d)
- 477
Getting set up
Starts the project's dev container in your browser, under your own GitHub account.
- No Dockerfile or Docker Compose file
- Has a pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from NVIDIA/TensorRT-LLM
-
Bug: AttributeError: 'GptOssConfig' object has no attribute 'rope_scaling_factor' with transformers >= 5.xPossibly taken @NimaVaziri claimed this today. OpenPytorch
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
NVIDIA/TensorRT-LLM#23406 ·
Maintainers usually reply within 1 day
-
Inference runtime Windows
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
NVIDIA/TensorRT-LLM#23394 ·
Maintainers usually reply within 1 day
-
[Bug]: MMLU subsampling changes when evaluators are interleavedPossibly taken @LeNeLeNeWo claimed this 1 day ago. Open
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
NVIDIA/TensorRT-LLM#23273 ·
Maintainers usually reply within 1 day
-
Trace-replay Pareto window includes the drain when sessions finish out of admission orderPossibly taken @sbeierle claimed this 3 days ago. OpenTesting
Difficulty 2/5 1-3 hours Newbie friendliness 86/100
NVIDIA/TensorRT-LLM#23077 ·
Maintainers usually reply within 1 day
-
LongBench V2 blog command breaks on inline comments after continuationsPossibly taken @ddlw claimed this 25 days ago. OpenDoc
Difficulty 1/5 Under an hour Newbie friendliness 91/100
NVIDIA/TensorRT-LLM#21879 ·
Maintainers usually reply within 1 day
All issues in NVIDIA/TensorRT-LLM
Similar issues
-
[Resource]: SpaicelyOpenresource-submission validation-passed
Difficulty 1/5 Under an hour Newbie friendliness 68/100
hesreallyhim/awesome-claude-code#3875 · 1 comment ·
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 77/100
bvis/aegis-hass#725 ·
Maintainers usually reply within 1 day
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 67/100
datasektionen/cashflow#468 ·
-
dont call alembic upgrade until we check whether or not the cache DB has an alembic version stampOpen
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
Maintainers usually reply within 1 day
-
#1643 unrecoverable split: 1 digest with a 403 — two earlier captures of the same URL are real 200sOpen
Difficulty 2/5 1-3 hours Newbie friendliness 66/100
Robin-IA/Congressional-Letters-Dev#1684 ·
Maintainers usually reply within 1 day