Repository navigation
Conversation
Move model_specs/omnivoice.json to schema_version 1 and declare the options OmniVoice's session reads: 18 request options (sampling and schedule controls, chunking, reference_text, instruction) and 10 session options (mem_saver, perf_mode, weight types, arena sizes), with the defaults from OmniVoiceGenerationOptions and the session constants. The loader's CLI help now comes from the contract. A GGUF that embeds the pre-v1 spec, with no v1 contract available, keeps the old help. No request validation is added: OmniVoice still accepts any key, as it does today, so no existing client breaks. With a contract the server forwards speed and injects a preset's reference_text only when the spec declares them, so both are declared. Legacy aliases (instruct, chunk_size, chunk_mode, bare mem_saver) stay accepted and are left out of the spec. Synthesis is unchanged: with the same seed, the WAV from the v1 spec and from the legacy spec (via model_spec_override) are byte-identical. Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
Thanks, #786 covers it, and more completely than this PR: it adds One thing was needed on my side. #787 only read Tested on a Windows CPU build of #786 plus #787, serial and |
This follows up #775 and #787: OmniVoice's spec moves to
schema_version: 1and declares its options. #787 serves an empty list for families on the older format, and OmniVoice is one of them.What changes
model_specs/omnivoice.jsongetsschema_version: 1and anoptionsblock. It declares exactly the keyssrc/models/omnivoice/session.cppreads, with defaults taken fromOmniVoiceGenerationOptionsand the session constants:seed,num_inference_steps,guidance_scale,speed,duration,t_shift,denoise,preprocess_prompt,postprocess_output,layer_penalty_factor,position_temperature,class_temperature,audio_chunk_duration,audio_chunk_threshold,text_chunk_size,text_chunk_mode(presettext_chunk_mode_full, defaulttag_aware),reference_text,instruction.mem_saver,perf_mode(presetperf_mode_flash_attention),weight_type,generator_weight_type,audio_tokenizer_weight_type(presetweight_type_full), and the five*_graph_arena_mb/*_weight_context_mbsizes.load:[].src/models/omnivoice/loader.cpp:inspect()takes the CLI help from the contract. When a GGUF embeds the pre-v1 spec and no v1 contract is available, it keeps the old hard-coded help, following the pattern from #685.docs/models/omnivoice.md: one line pointing to the spec for the full option list.What deliberately doesn't change
validate_spec_backed_request_optionshere or in a follow-up if you'd like it.speedand injects a voice preset'sreference_textonly when the spec declares them (refresh_model_option_flags). Without these two rows,speedwould fail with "speed is not supported by this model".instruct,chunk_size,chunk_modeand baremem_saver, following the "no UI-only aliases" note indocs/maintainers/model_specs.md.Runtime validation
Windows 11, CPU release build,
omnivoice-q8_0.gguffromaudio-cpp/audio.cpp-gguf, served with--config. I built this branch alone and also combined with #787 to read the options back over HTTP.tools/check_loader_catalog_sync.py --self-testand the full checkGET /v1/models?include_params=truetext_chunk_modelists the preset valuesseed: 7,speed: 1.1,options.num_inference_steps: 16voice_refandreference_textinstructions: "female, low pitch",guidance_scale: 2.5model_spec_overrideparams: [](no contract); WAV byte-identical to the v1-spec output--num-inference-steps 8 --seed 3 --request-option speed=1.2The byte-identical outputs are the main evidence that this is a metadata change: synthesis is unaffected. I didn't test CUDA, Vulkan or Metal; nothing here touches backend code.
🤖 Generated with Claude Code