UPSTREAM PR #17307: Fix json schema with '\' in literals#229
Conversation
|
Access the complete analysis in the LOCI Dashboard Performance Analysis Summary: JSON Schema Backslash Escape FixOverviewPR #229 implements a targeted fix for JSON schema literal escaping, adding proper handling for backslash characters in Key FindingsPerformance Impact:
Power Consumption Analysis:
Technical Analysis:
Root Cause: Conclusion: |
f333350 to
9c4623f
Compare
d403a40 to
1019d57
Compare
|
Explore the complete analysis inside the Version Insights Pull Request #229 Performance ReviewPR Title: Fix json schema with '' in literals SummaryThis PR addresses a bug in JSON schema literal escaping by adding backslash character handling to the escape regex and escape map. The changes affect 4 files (C++, Python, JavaScript implementations and test suite) with identical logic updates across all implementations. Code Changes:
Performance Impact: Analysis:
Tokens per Second Impact: None. The changes affect schema preprocessing, which occurs before inference begins. Runtime token processing remains unchanged. Power Consumption: No measurable change. The modified functions are not in the execution hot path and the binary-level analysis shows 0.0% change across all core libraries (libllama.so, libggml.so). This is a correctness fix with no performance implications for model inference. |
5efc8b7 to
f077805
Compare
|
Explore the complete analysis inside the Version Insights Performance Analysis Summary: PR #229OverviewPR #229 introduces a correctness fix for JSON schema backslash escaping across 4 files (C++, Python, JavaScript implementations and tests). The changes add backslash character to escape regex patterns and lookup maps in Performance ImpactAnalysis of version 2b31f40c-7083-41ef-bf94-93431405560c against base 350e6f1e-8cc6-43fd-8044-0514208078a2 reveals no performance impact from this PR. The observed performance variations are unrelated to the backslash escaping fix and stem from compiler optimization differences affecting STL template instantiations. Modified Functions in PR:
Inference Impact: Power Consumption:
Changes are within measurement noise and unrelated to this PR's code modifications. Key FindingsPerformance Variations Observed (Unrelated to PR):
These variations result from debug assertions or compiler flag differences between builds, not from the backslash escaping changes. The PR modifies only static regex patterns and escape maps used during schema conversion, which occurs once at initialization, not during inference. Actual PR Impact: |
7475023 to
fc0f51d
Compare
Mirrored from ggml-org/llama.cpp#17307
Fixes issue Misc. bug: Symbol '' is not escaped in the json schema literals.