Skip to content

Commit fd1689b

Browse files
justinchubyCopilot
andcommitted
fix(onnx-genai): preserve newer metadata schema versions
Keep schema v1.2 after declaring batch capacities and resolve the decoder fixtures against the latest batching contract. This prevents the batching helper from downgrading token-authority metadata emitted by the producer. Co-authored-by: Copilot <[email protected]> Signed-off-by: justinchuby <[email protected]>
1 parent 18fe000 commit fd1689b

3 files changed

Lines changed: 1 addition & 9 deletions

File tree

‎src/mobius/integrations/onnx_genai/workflow_metadata.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -273,7 +273,7 @@ def _declare_batch_capacities(
273273
capacity["uniform_dimensions"] = uniform_dimensions
274274
component["batch_capacity"] = capacity
275275
declared = True
276-
if declared:
276+
if declared and metadata.get("schema_version") == "v1":
277277
metadata["schema_version"] = "v1.1"
278278

279279

‎tests/fixtures/onnx_genai_workflows/decoder/inference_metadata.yaml‎

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,4 @@
1-
<<<<<<< HEAD
2-
schema_version: v1.1
3-
=======
41
schema_version: v1.2
5-
>>>>>>> 031ee3b2 (test(onnx-genai): refresh token authority fixtures)
62
pipeline:
73
workflow:
84
manifest:

‎tests/fixtures/onnx_genai_workflows/static_cache/inference_metadata.yaml‎

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,4 @@
1-
<<<<<<< HEAD
2-
schema_version: v1.1
3-
=======
41
schema_version: v1.2
5-
>>>>>>> 031ee3b2 (test(onnx-genai): refresh token authority fixtures)
62
pipeline:
73
workflow:
84
manifest:

0 commit comments

Comments
 (0)