Skip to content

Give install-aware fixes on Nix and in the model picker - #1116

Open
peteonrails wants to merge 2 commits into
devfrom
fix/430-1047-install-aware-messages
Open

peteonrails wants to merge 2 commits into
devfrom
fix/430-1047-install-aware-messages

Conversation

@peteonrails

Copy link
Copy Markdown
Owner

Messages that assumed the wrong install type now give the fix for the install the user actually has.

#430, Nix. On a binary running from /nix/store, setup gpu --enable/--disable, setup onnx --enable/--disable and setup variant no longer report a missing /usr/lib/voxtype. They change nothing and name the flake package to install (programs.voxtype.package = voxtype.packages.${system}.vulkan; or nix profile install github:peteonrails/voxtype#vulkan). setup gpu and setup onnx status list the flake packages and mark the running one instead of "simple (source build)" and a broken symlink. info variants, the TUI variant panel and engine picker, and the variant-mismatch notice say the same. A test checks every package name used against flake.nix. Reported by @EzequielRamis.

#1047.

  • voxtype setup --model for an engine missing from the build (and setup npu --enable) uses the shared install hint: switch to the installed ONNX variant, add the variant to an AUR build, reinstall the deb/rpm package, install the Nix flake package, or, for a source build only, rebuild with the feature.
  • GGUF models show their decoder (TDT, RNN-T, CTC, transformer, LLM) in the setup model picker and in voxtype models (text and JSON decoder). Values come from each file's GGUF metadata. dcbeab7 hid Parakeet's Decoder type setting in the TUI for .gguf models on purpose, since parakeet.model_type does nothing for a GGUF file, so that stays hidden and the decoder is shown as information in the lists instead.
  • The Japanese Moonshine (and any curated GGUF) language error says which languages the model has and both ways out: voxtype config set gguf.language ja (or auto), or switch to a model that supports the requested language, e.g. Qwen3-ASR-0.6B-Q8_0.gguf.

Unit tests cover each message per install type, the Nix refusal and status, the GGUF picker row, and the decoder of every curated GGUF. TROUBLESHOOTING.md and INSTALL.md (NixOS) updated.

Checks: cargo fmt --check; cargo clippy --all-targets -D warnings with default features and with gguf,cohere-gguf,parakeet-gguf; cargo test --features gguf,cohere-gguf,parakeet-gguf --lib over setup, model_selection, config_set, tui, model_catalog, language_selection, model_upgrade (710 passed), plus rc2_gguf_review and setup_config_override. The ONNX-feature clippy job was not run locally.

Fixes #430
Fixes #1047

`voxtype setup gpu --enable` on NixOS failed with "The voxtype-vulkan
binary was not found in /usr/lib/voxtype", and `setup gpu` reported a
"simple (source build)" install with a broken symlink. A Nix install has
no /usr/lib/voxtype and no variants to switch: each flake package is one
fixed build in the read-only store, so the only fix is another package.

Recognize a binary running from /nix/store and, on such an install, have
setup gpu/onnx --enable/--disable and setup variant refuse with the flake
package to install (programs.voxtype.package or nix profile install).
setup gpu/onnx status, info variants, the TUI variant panel and engine
picker, and the variant-mismatch notice name the flake packages instead
of rebuild or symlink advice. The install hint every surface shares gains
a Nix case, so the missing-engine messages pick it up too. A package
install without the Vulkan build now gets its install-specific fix
instead of a bare "not found".

Fixes #430
`voxtype setup --model` told everyone missing an engine to run
`cargo build --features ...`, which is wrong for deb, rpm, AUR and Nix
users. It now prints the same install-aware fix as the model picker:
switch to the installed ONNX variant, add the variant to an AUR build,
reinstall the package, install the Nix flake package, and only for a
source build, rebuild with the feature. `setup npu --enable` and the
GGUF branch of setup get the same treatment.

GGUF models now show their decoder (TDT, RNN-T, CTC, transformer, LLM)
in the `setup model` picker and in `voxtype models`, text and JSON. The
TUI keeps hiding the Decoder type setting for a .gguf model, as dcbeab7
intended: parakeet.model_type does nothing for a GGUF file, which carries
its own architecture, so the decoder is shown as information in the
lists rather than as a setting.

A curated GGUF that does not support the configured language now says
which languages it has and both ways out: set gguf.language to one of
them, or switch to a model that supports the requested language.

Fixes #1047
@peteonrails
peteonrails force-pushed the fix/430-1047-install-aware-messages branch from 2987037 to 4cb4756 Compare November 25, 2026 17:44

This branch has not been deployed

No deployments
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.

Fix three confusing messages in the model picker [Bug] Installed Vulkan runtime/backend not found

1 participant