Repository navigation
Commit c83c668
Fix ONNX GenAI special-token authority (#644)
## Summary
- emit execution-relevant numeric token IDs once under
`package.tokenizer.special_tokens`
- preserve ordered multi-EOS package defaults while making workflow EOS
tensors runtime-bound request overrides
- remove authored `package.eos_ids` and `package.eos_token_ids` literals
from decoder and VLM workflows
- cover image, video, audio, and vision-start placeholders; restrict CTC
metadata to relevant blank/padding semantics
- stamp schema v1.2 independently of tokenizer availability and retain
public `SpecialTokenFact` compatibility
- refresh decoder, static-cache, and VLM conformance fixtures
## Contract
Token IDs are package facts. Token spellings, added-token mappings, and
chat templates remain authoritative in tokenizer assets. Termination
policy consumes resolved package defaults or an explicit request
replacement but owns no duplicate IDs.
Consumer schema/runtime:
justinchuby/onnx-genai#2171 (**merged** as
`e599dc0f067d35aa5326ce5c97d83d2fd6d02f78`)
Reader guide: justinchuby/onnx-genai#2143
Baseline coverage repair: #647
## Validation
- **1,095 passed / 250 skipped** across
`src/mobius/integrations/onnx_genai` and `tests/model_coverage_test.py`
- full `lintrunner`
- generated schema and fixture validation
- `git diff --check`
- architecture and benchmark checks report no graph or performance
regression
- merged consumer validation passes **28/28 hosted repositories and
56/56 metadata files**
This branch is temporarily stacked on #647 solely to avoid known
current-`main` coverage failures. After #647 merges, rebase this PR onto
current `main` so only the two producer commits remain, rerun the
focused gates, and merge.
---------
Signed-off-by: justinchuby <[email protected]>
Co-authored-by: Copilot <[email protected]>1 parent 2e08e9b commit c83c668
10 files changed
Lines changed: 400 additions & 277 deletions
File tree
- src/mobius/integrations/onnx_genai
- _schema
- tests/fixtures/onnx_genai_workflows
- decoder
- static_cache
- vlm
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
71 | 71 | | |
72 | 72 | | |
73 | 73 | | |
| 74 | + | |
74 | 75 | | |
75 | 76 | | |
76 | 77 | | |
| |||
119 | 120 | | |
120 | 121 | | |
121 | 122 | | |
| 123 | + | |
122 | 124 | | |
123 | 125 | | |
124 | 126 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2234 | 2234 | | |
2235 | 2235 | | |
2236 | 2236 | | |
2237 | | - | |
| 2237 | + | |
2238 | 2238 | | |
2239 | 2239 | | |
2240 | 2240 | | |
| |||
2621 | 2621 | | |
2622 | 2622 | | |
2623 | 2623 | | |
2624 | | - | |
| 2624 | + | |
| 2625 | + | |
| 2626 | + | |
| 2627 | + | |
| 2628 | + | |
| 2629 | + | |
2625 | 2630 | | |
2626 | 2631 | | |
2627 | 2632 | | |
| |||
2976 | 2981 | | |
2977 | 2982 | | |
2978 | 2983 | | |
2979 | | - | |
2980 | | - | |
2981 | | - | |
2982 | | - | |
2983 | | - | |
2984 | | - | |
2985 | | - | |
2986 | | - | |
2987 | | - | |
2988 | | - | |
2989 | | - | |
2990 | | - | |
2991 | | - | |
2992 | | - | |
2993 | | - | |
2994 | | - | |
2995 | | - | |
2996 | | - | |
2997 | | - | |
2998 | | - | |
2999 | | - | |
3000 | | - | |
3001 | 2984 | | |
3002 | 2985 | | |
3003 | 2986 | | |
| |||
3993 | 3976 | | |
3994 | 3977 | | |
3995 | 3978 | | |
| 3979 | + | |
| 3980 | + | |
| 3981 | + | |
| 3982 | + | |
| 3983 | + | |
| 3984 | + | |
| 3985 | + | |
| 3986 | + | |
| 3987 | + | |
| 3988 | + | |
| 3989 | + | |
| 3990 | + | |
| 3991 | + | |
| 3992 | + | |
| 3993 | + | |
| 3994 | + | |
| 3995 | + | |
| 3996 | + | |
| 3997 | + | |
| 3998 | + | |
| 3999 | + | |
| 4000 | + | |
| 4001 | + | |
| 4002 | + | |
| 4003 | + | |
| 4004 | + | |
| 4005 | + | |
| 4006 | + | |
| 4007 | + | |
| 4008 | + | |
| 4009 | + | |
| 4010 | + | |
| 4011 | + | |
| 4012 | + | |
| 4013 | + | |
| 4014 | + | |
| 4015 | + | |
| 4016 | + | |
| 4017 | + | |
| 4018 | + | |
| 4019 | + | |
| 4020 | + | |
| 4021 | + | |
| 4022 | + | |
| 4023 | + | |
| 4024 | + | |
| 4025 | + | |
| 4026 | + | |
| 4027 | + | |
| 4028 | + | |
| 4029 | + | |
| 4030 | + | |
| 4031 | + | |
| 4032 | + | |
| 4033 | + | |
| 4034 | + | |
| 4035 | + | |
| 4036 | + | |
| 4037 | + | |
| 4038 | + | |
| 4039 | + | |
| 4040 | + | |
| 4041 | + | |
| 4042 | + | |
| 4043 | + | |
| 4044 | + | |
| 4045 | + | |
| 4046 | + | |
| 4047 | + | |
| 4048 | + | |
| 4049 | + | |
| 4050 | + | |
| 4051 | + | |
| 4052 | + | |
| 4053 | + | |
| 4054 | + | |
| 4055 | + | |
| 4056 | + | |
| 4057 | + | |
| 4058 | + | |
| 4059 | + | |
| 4060 | + | |
| 4061 | + | |
| 4062 | + | |
| 4063 | + | |
| 4064 | + | |
| 4065 | + | |
| 4066 | + | |
3996 | 4067 | | |
3997 | 4068 | | |
3998 | 4069 | | |
| |||
4015 | 4086 | | |
4016 | 4087 | | |
4017 | 4088 | | |
4018 | | - | |
| 4089 | + | |
| 4090 | + | |
| 4091 | + | |
| 4092 | + | |
4019 | 4093 | | |
4020 | 4094 | | |
4021 | 4095 | | |
| |||
4031 | 4105 | | |
4032 | 4106 | | |
4033 | 4107 | | |
4034 | | - | |
4035 | | - | |
4036 | | - | |
4037 | | - | |
4038 | | - | |
| 4108 | + | |
| 4109 | + | |
| 4110 | + | |
| 4111 | + | |
| 4112 | + | |
| 4113 | + | |
| 4114 | + | |
| 4115 | + | |
| 4116 | + | |
4039 | 4117 | | |
4040 | 4118 | | |
4041 | 4119 | | |
4042 | 4120 | | |
4043 | 4121 | | |
4044 | | - | |
| 4122 | + | |
| 4123 | + | |
| 4124 | + | |
| 4125 | + | |
4045 | 4126 | | |
4046 | 4127 | | |
4047 | | - | |
4048 | | - | |
4049 | | - | |
4050 | | - | |
4051 | 4128 | | |
4052 | 4129 | | |
4053 | 4130 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
244 | 244 | | |
245 | 245 | | |
246 | 246 | | |
247 | | - | |
248 | | - | |
249 | 247 | | |
250 | 248 | | |
251 | 249 | | |
| 250 | + | |
| 251 | + | |
252 | 252 | | |
253 | 253 | | |
254 | 254 | | |
| |||
0 commit comments