Skip to content

Add YAML config support to CLI - #1304

Merged
0xShug0 merged 3 commits into
0xShug0:mainfrom
j0n4t:feature/yaml-cli-config
Nov 16, 2026
Merged

0xShug0 merged 3 commits into
0xShug0:mainfrom
j0n4t:feature/yaml-cli-config

Conversation

@j0n4t

@j0n4t j0n4t commented Nov 15, 2026 •

Copy link
Copy Markdown
Contributor

What this does: it lets you drive audiocpp_cli from a YAML file instead of long
command-line flags. --config-file <yaml> maps scalars to one option, sequences to
repeated options, and booleans to flags, with explicit CLI values still winning.

Simple example:

task: tts
family: pocket_tts
model: /path/to/model
backend: cuda
text: "Hello from YAML"
voice-id: alba
request-option:
  - temperature=0.7
  - top_k=10
metrics: true
do-sample: false
build/bin/audiocpp_cli --config-file run.yaml --text "CLI text overrides YAML"

@0xShug0

0xShug0 commented Nov 16, 2026

Copy link
Copy Markdown
Owner

@j0n4t Thanks for the PR! I found two issues and one minor edge case.

  1. Equivalent request options conflict
YAML CLI Result
request-option: temperature=0.7 --temperature 0.9 Throws conflict
temperature: 0.7 --request-option temperature=0.9 Throws conflict

Both throw conflicting request option value for temperature instead of letting CLI win

  1. I forgot to mention --load-option in the discussion. Please apply the same override handling to this option.

  2. Minor: The new pre-scan treats every --config-file token as an option, even when it is the value of another option, such as --text "--config-file" E.g., audiocpp_cli --help --log --text "--config-file" Before PR it prints help, exits 0. In PR it exits 1: --config-file requires a YAML file path.

@0xShug0
0xShug0 merged commit 5c98ebc into 0xShug0:main Nov 16, 2026
7 checks passed
@0xShug0

0xShug0 commented Nov 16, 2026

Copy link
Copy Markdown
Owner

@j0n4t PR merged! Thanks!

A new issue was found during testing and could be addressed in a follow-up PR: YAML still incorrectly wins for moe_* options.

@j0n4t

j0n4t commented Nov 16, 2026

Copy link
Copy Markdown
Contributor Author

@0xShug0 Thank you! Follow-up PR for moe_* options is at #1317

@j0n4t
j0n4t deleted the feature/yaml-cli-config branch November 20, 2026 15:29
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.

2 participants