Skip to content

Commit 11759e9

Browse files
justinchubyCopilot
andcommitted
Target latest stable ORT GenAI runtime
Remove the legacy dual-version matrix and validate only the latest stable 0.15.2 release. Refresh the SmolLM route and runtime package evidence after the #611 squash merge, and keep the real artifact lane limited to scheduled, manual, or explicitly requested runs. Co-authored-by: Copilot App <[email protected]> Signed-off-by: Justin Chu <[email protected]>
1 parent 7df9628 commit 11759e9

10 files changed

Lines changed: 21 additions & 33 deletions

File tree

‎.agents/skills/quality-checklist/SKILL.md‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -165,8 +165,8 @@ python examples/<model>_text_generation.py --compare-hf --dtype bf16
165165

166166
Downstream evidence:
167167

168-
- [ ] The network-free generic decoder test passes with pinned
169-
`onnxruntime-genai==0.14.1` and `onnxruntime-genai==0.15.2`.
168+
- [ ] The network-free generic decoder test passes with the pinned latest stable
169+
`onnxruntime-genai==0.15.2`.
170170
- [ ] Every runtime-supported real route has an `ort_genai` YAML marker with an
171171
immutable evidence ID, exact tokenizer provenance, bounded download size,
172172
CPU provider claim, and explicit released-version capabilities.

‎.github/workflows/ort_genai_e2e.yml‎

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -21,13 +21,9 @@ concurrency:
2121

2222
jobs:
2323
fast:
24-
name: Fast CPU / OGA ${{ matrix.ort_genai }}
24+
name: Fast CPU / OGA 0.15.2
2525
runs-on: ubuntu-latest
2626
timeout-minutes: 15
27-
strategy:
28-
fail-fast: false
29-
matrix:
30-
ort_genai: ["0.14.1", "0.15.2"]
3127
steps:
3228
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7
3329
with:
@@ -40,29 +36,29 @@ jobs:
4036
- name: Install pinned runtime and test dependencies
4137
run: |
4238
python -m pip install --disable-pip-version-check \
43-
"onnxruntime-genai==${{ matrix.ort_genai }}" \
39+
"onnxruntime-genai==0.15.2" \
4440
"pytest==8.4.2" \
4541
"pytest-timeout==2.4.0"
4642
python -m pip install --disable-pip-version-check -e .
4743
- name: Run network-free ORT GenAI E2E
4844
env:
4945
HF_HUB_OFFLINE: "1"
5046
TRANSFORMERS_OFFLINE: "1"
51-
MOBIUS_EXPECTED_ORT_GENAI_VERSION: ${{ matrix.ort_genai }}
47+
MOBIUS_EXPECTED_ORT_GENAI_VERSION: "0.15.2"
5248
run: |
5349
python -m pytest tests/ort_genai_e2e_test.py \
5450
-m ort_genai_fast -v --timeout=120 --junitxml=junit-ort-genai-fast.xml
5551
- name: Upload fast-lane logs
5652
if: always()
5753
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7
5854
with:
59-
name: ort-genai-fast-${{ matrix.ort_genai }}
55+
name: ort-genai-fast-0.15.2
6056
path: junit-ort-genai-fast.xml
6157
retention-days: 14
6258

6359
real-smollm:
6460
name: Pinned SmolLM F16 CPU / OGA 0.15.2
65-
if: github.event_name != 'workflow_call' || inputs.run_real
61+
if: inputs.run_real || github.event_name == 'schedule' || github.event_name == 'workflow_dispatch'
6662
runs-on: ubuntu-latest
6763
timeout-minutes: 35
6864
steps:

‎CONTRIBUTING.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,7 @@ the PR description). The full checklist with explanations lives in the
201201

202202
**Runtime and deployment**
203203
- [ ] CLI build: `mobius build --model <hf-model-id> /tmp/out` succeeds
204-
- [ ] ORT GenAI fast lane passes on both pinned released runtimes:
204+
- [ ] ORT GenAI fast lane passes on the pinned latest stable runtime:
205205
`pytest tests/ort_genai_e2e_test.py -m ort_genai_fast -v`
206206
- [ ] Runtime-supported real routes declare `ort_genai` evidence in their
207207
`testdata/cases/` YAML and pass:

‎docs/design/multi-tier-testing-strategy.md‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -866,7 +866,7 @@ The test must verify:
866866

867867
| Lane | What it tests | Runtime | CI cadence |
868868
|------|---------------|---------|------------|
869-
| Fast | Generated generic `decoder` package, tokenizer load, model creation, prefill, four cache-threaded decode steps, deterministic tokens, save/reload, and malformed config rejection | CPU; `onnxruntime-genai==0.14.1` and `==0.15.2` | Relevant PRs, main, scheduled/manual |
869+
| Fast | Generated generic `decoder` package, tokenizer load, model creation, prefill, four cache-threaded decode steps, deterministic tokens, save/reload, and malformed config rejection | CPU; latest stable `onnxruntime-genai==0.15.2` | Relevant PRs, main, scheduled/manual |
870870
| Real | YAML-enrolled immutable artifacts with exact tokenizer provenance, byte budget, deterministic full-length generation, and disposable per-test Hub/Xet caches | CPU; currently `onnxruntime-genai==0.15.2` | Weekly and manual |
871871

872872
Run the lanes locally:
@@ -883,11 +883,11 @@ matching evidence ID. Released lanes use the architecture-neutral
883883
`model.type=decoder`; main-only `state_groups` metadata is explicitly excluded.
884884
Changes to graph construction, task wiring, ORT GenAI config generation,
885885
tokenizer packaging, and GGUF qtype/runtime helpers conservatively select the
886-
fast E2E matrix through `detect_affected_models.py`.
886+
fast E2E lane through `detect_affected_models.py`.
887887

888888
CUDA is not a required PR claim. The existing self-hosted GPU lane uses a
889-
CUDA-12-specific pre-release ORT feed, so adding it to this released-wheel
890-
matrix would conflate runtime and EP coverage. CUDA runtime E2E remains suitable
889+
CUDA-12-specific pre-release ORT feed, so adding it to this stable-wheel
890+
lane would conflate runtime and EP coverage. CUDA runtime E2E remains suitable
891891
for scheduled/manual validation once that runner can install an equivalently
892892
pinned released stack.
893893

‎scripts/detect_affected_models_test.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -264,7 +264,7 @@ def test_test_configs_with_model_uses_model_scope(self):
264264
]
265265
)
266266
assert result["run_all"] is False
267-
assert result["affected"] == ["lfm2", "lfm2_vl"]
267+
assert result["affected"] == ["lfm2", "lfm2_moe", "lfm2_vl"]
268268

269269
def test_test_configs_with_unmapped_task_still_runs_all(self):
270270
result = detect_affected_models(

‎src/mobius/integrations/gguf/_runtime_evidence.py‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ def _is_hex(value: str) -> bool:
174174

175175
_SMOLLM_F16_ROUTE = (
176176
'{"architecture":"llama","config_sha256":'
177-
'"134f95e6a635d978737d712ed61ac8959acebdf080eafae838cf97f12c416430",'
177+
'"b999a219ddf6046f1b6e5c082dab2d00b7ba1682169914430b1a3672fc735498",'
178178
'"execution_provider":"cpu","model_type":"llama","module_type":"llama",'
179179
'"preserve_quantization":false,"registry_import":{"config_key_map":null,'
180180
'"config_postprocessor":null,"llama_qk_permute":true,"offset_norm":false,'
@@ -262,7 +262,7 @@ def _is_hex(value: str) -> bool:
262262
"tokenizer.json",
263263
"tokenizer_config.json",
264264
),
265-
runtime_package_sha256="09738315d14392316106cca776c52165994ea55ef1407dbd9961c1f92e54c92c",
265+
runtime_package_sha256="43568320f669d259d5a570ee04bd6378316ab31ce2fcb6383e75b479b4f2b349",
266266
deterministic_test="test_smollm_generic_ort_genai_generation",
267267
stateful_semantics="ORT GenAI prefill plus 20 cache-threaded decode steps",
268268
runtime="ort-genai",

‎testdata/cases/causal-lm/smollm-135m-gguf-f16.yaml‎

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ gguf:
1515
F16: 211
1616
F32: 61
1717
execution_provider: "cpu"
18-
config_sha256: "134f95e6a635d978737d712ed61ac8959acebdf080eafae838cf97f12c416430"
18+
config_sha256: "b999a219ddf6046f1b6e5c082dab2d00b7ba1682169914430b1a3672fc735498"
1919
preserve_quantization: false
2020
keep_quantized: true
2121
tokenizer:
@@ -42,9 +42,6 @@ ort_genai:
4242
execution_provider: "cpu"
4343
max_download_bytes: 300000000
4444
released_capabilities:
45-
"0.14.1":
46-
generic_decoder: true
47-
state_groups: false
4845
"0.15.2":
4946
generic_decoder: true
5047
state_groups: false

‎testdata/cases/schema.json‎

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -283,11 +283,11 @@
283283
"type": "array",
284284
"items": {
285285
"enum": [
286-
"0.14.1",
287286
"0.15.2"
288287
]
289288
},
290289
"minItems": 1,
290+
"maxItems": 1,
291291
"uniqueItems": true,
292292
"description": "Released onnxruntime-genai versions validated for this route."
293293
},
@@ -315,13 +315,9 @@
315315
"type": "object",
316316
"additionalProperties": false,
317317
"required": [
318-
"0.14.1",
319318
"0.15.2"
320319
],
321320
"properties": {
322-
"0.14.1": {
323-
"$ref": "#/$defs/ortGenaiCapabilities"
324-
},
325321
"0.15.2": {
326322
"$ref": "#/$defs/ortGenaiCapabilities"
327323
}

‎tests/gguf_small_model_runtime_integration_test.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ class _RuntimeCase:
7777
reference_revision="1d461723eec654e65efdc40cf49301c89c0c92f4",
7878
prompt="Once upon a time,",
7979
tensor_qtypes={"F16": 211, "F32": 61},
80-
config_sha256="134f95e6a635d978737d712ed61ac8959acebdf080eafae838cf97f12c416430",
80+
config_sha256="b999a219ddf6046f1b6e5c082dab2d00b7ba1682169914430b1a3672fc735498",
8181
generated_tokens=(
8282
665,
8383
436,

‎tests/ort_genai_e2e_test.py‎

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,15 +14,14 @@
1414
from pathlib import Path
1515
from typing import Any
1616

17-
import numpy as np
1817
import onnx_ir as ir
1918
import pytest
2019
from onnxscript import GraphBuilder
2120

2221
from mobius._model_package import ModelPackage
2322
from mobius.integrations.ort_genai import write_ort_genai_config
2423

25-
_SUPPORTED_ORT_GENAI_VERSIONS = {"0.14.1", "0.15.2"}
24+
_EXPECTED_ORT_GENAI_VERSION = "0.15.2"
2625

2726

2827
@dataclasses.dataclass
@@ -209,7 +208,7 @@ def test_generic_decoder_end_to_end_and_reload(
209208
installed_version = version("onnxruntime-genai")
210209
if expected_version:
211210
assert installed_version == expected_version
212-
assert installed_version in _SUPPORTED_ORT_GENAI_VERSIONS
211+
assert installed_version == _EXPECTED_ORT_GENAI_VERSION
213212

214213
package_dir = tmp_path / "synthetic-decoder"
215214
package = _synthetic_decoder_package()
@@ -268,5 +267,5 @@ def test_malformed_genai_config_is_rejected(
268267
del config["model"]["decoder"]["filename"]
269268
config_path.write_text(json.dumps(config), encoding="utf-8")
270269

271-
with pytest.raises(RuntimeError, match="filename|model path is a directory"):
270+
with pytest.raises(RuntimeError, match=r"filename|model path is a directory"):
272271
ort_genai_module.Model(str(package_dir))

0 commit comments

Comments
 (0)