[Bug]: JSON Mode Eval exact match conflates Boolean and numeric values
Los mantenedores suelen responder en 1 día
@JunkaiWang-TheoPhy ya está trabajando en esto.
Desde el 2/12/2026.
- #23269 de @JunkaiWang-TheoPhy — abierto
Evaluación
- Dificultad
- 2/5
- Tiempo estimado
- 1-3 horas
- Aptitud para principiantes
- 35/100
- Tipo de issue
- Error
- Claridad
- Bien especificado
- Estado de actividad
- Estancado
- Stack tecnológico
- python
- Área
- testing-qa
Línea de trabajo
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.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
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.
- Lenguaje dominante
- Python
- Estrellas
- 15.2k
- Forks
- 3k
- Merge medio
- 2 d 21 h
- PR fusionados (30 d)
- 477
Preparar el entorno
Inicia el contenedor de desarrollo del proyecto en tu navegador, con tu propia cuenta de GitHub.
- Sin Dockerfile ni archivo de Docker Compose
- Tiene una plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de NVIDIA/TensorRT-LLM
-
Bug: AttributeError: 'GptOssConfig' object has no attribute 'rope_scaling_factor' with transformers >= 5.xPosiblemente ocupada @NimaVaziri la tomó hoy. AbiertoPytorch
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
NVIDIA/TensorRT-LLM#23406 ·
Los mantenedores suelen responder en 1 día
-
Inference runtime Windows
Dificultad 2/5 1-3 horas Aptitud para principiantes 65/100
NVIDIA/TensorRT-LLM#23394 ·
Los mantenedores suelen responder en 1 día
-
[Bug]: MMLU subsampling changes when evaluators are interleavedPosiblemente ocupada @LeNeLeNeWo la tomó hace 1 día. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
NVIDIA/TensorRT-LLM#23273 ·
Los mantenedores suelen responder en 1 día
-
Trace-replay Pareto window includes the drain when sessions finish out of admission orderPosiblemente ocupada @sbeierle la tomó hace 3 días. AbiertoTesting
Dificultad 2/5 1-3 horas Aptitud para principiantes 86/100
NVIDIA/TensorRT-LLM#23077 ·
Los mantenedores suelen responder en 1 día
-
LongBench V2 blog command breaks on inline comments after continuationsPosiblemente ocupada @ddlw la tomó hace 25 días. AbiertoDoc
Dificultad 1/5 Menos de una hora Aptitud para principiantes 91/100
NVIDIA/TensorRT-LLM#21879 ·
Los mantenedores suelen responder en 1 día
Todos los issues de NVIDIA/TensorRT-LLM
Issues similares
-
[Resource]: SpaicelyAbiertoresource-submission validation-passed
Dificultad 1/5 Menos de una hora Aptitud para principiantes 68/100
hesreallyhim/awesome-claude-code#3875 · 1 comentario ·
-
[Bug]: Ajax Pro login issueAbiertobug
Dificultad 2/5 1-3 horas Aptitud para principiantes 77/100
bvis/aegis-hass#725 ·
Los mantenedores suelen responder en 1 día
-
bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 67/100
datasektionen/cashflow#468 ·
-
dont call alembic upgrade until we check whether or not the cache DB has an alembic version stampAbierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
Los mantenedores suelen responder en 1 día
-
#1643 unrecoverable split: 1 digest with a 403 — two earlier captures of the same URL are real 200sAbierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 66/100
Robin-IA/Congressional-Letters-Dev#1684 ·
Los mantenedores suelen responder en 1 día