Skip to content

Prefer current runtime model contracts with explicit embedded-spec selection - #918

Merged
0xShug0 merged 3 commits into
mainfrom
fix/model-spec-contract-priority
Oct 15, 2026
Merged

0xShug0 merged 3 commits into
mainfrom
fix/model-spec-contract-priority

Conversation

@0xShug0

@0xShug0 0xShug0 commented Oct 15, 2026

Copy link
Copy Markdown
Owner

Summary

  • Prefer discovered external and compiled runtime contracts over embedded GGUF contracts for capability/option validation; keep package/resource selection separate.
  • Support explicit embedded contract selection through --model-spec-override embedded, including server configuration and model loading.
  • Log the selected contract and add actionable guidance to unknown request-option errors.
  • Document lookup order and the embedded override.

Validation

Executed 24 standalone Debug CPU combinations using Kokoro Q8: v0.9.1, current source without this patch, and current source with this patch; each with old published and refreshed GGUFs, testing an unchanged option, a legacy option spelling, its canonical spelling, and a newly implemented request option. No external spec override or discoverable local spec was used.

Binary GGUF Existing option Legacy spelling Canonical spelling New request option
v0.9.1 Old Applied Applied Rejected Rejected
v0.9.1 Refreshed Applied Rejected Accepted but ignored Accepted but ignored
Current without patch Old / refreshed Applied Applied Applied Applied
Current with patch Old / refreshed Applied Applied Applied Applied

Verified actual synthesis voice/speed and session arena budget, not just successful exit. Equivalent successful WAVs are byte-identical across tested binaries and GGUF generations. Current compatibility handling already covers this sample without the patch; this change decouples future contract updates from weight downloads rather than claiming a new Kokoro compatibility fix.

Also validated explicit embedded selection, server override handling, and focused model-spec/server-config tests during development. Restored the normal Debug CUDA/Vulkan CLI and server builds after the matrix.

Compatibility

This does not make old binaries understand refreshed contracts. Refreshed GGUF publication still requires coordination with compatible downstream prebuilts. Applications requiring the embedded GGUF contract can select it explicitly. No inference graph or kernel changes.

@0xShug0
0xShug0 force-pushed the fix/model-spec-contract-priority branch from 8e69194 to 0cd47f6 Compare October 15, 2026 14:07
@0xShug0
0xShug0 merged commit 65df584 into main Oct 15, 2026
11 checks passed
@0xShug0
0xShug0 deleted the fix/model-spec-contract-priority branch October 15, 2026 20:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant