Skip to content

Add Hviske v6 Danish ASR support - #833

Merged
0xShug0 merged 2 commits into
mainfrom
feature/hviske-v6
Oct 8, 2026
Merged

0xShug0 merged 2 commits into
mainfrom
feature/hviske-v6

Conversation

@0xShug0

@0xShug0 0xShug0 commented Oct 8, 2026

Copy link
Copy Markdown
Owner

Summary

  • Add hviske_asr_v6: Whisper-RoPE encoder, frame-stacking projector, and Qwen3 decoder, separate from the existing Hviske family.
  • Support offline long-form Danish transcription, beam/greedy decoding, formatting controls, and self-contained BF16/Q8_0 GGUFs.
  • Reuse framework modules with session-owned graphs and directly packed projections. No framework, ggml, or graph-optimizer changes.
  • Add model documentation, licensing, spec, and canonical path tests.

Validation

CUDA, Vulkan, and CPU tested. Controlled FP32 comparisons matched Python transcripts on three short recordings. Repeated requests and short/long/short transitions preserved output.

On the 180-second recording, BF16 CUDA had zero normalized word differences from Python; Q8_0 had two substitutions (0.57% transcript disagreement, not ground-truth WER). Normal precision can change beam selection on short inputs.

Warm Performance

Model loading excluded; individual warmed 180-second requests, not statistical benchmarks. CUDA used an RTX 5090; CPU used a Ryzen 9 7900X with eight threads.

Runtime Inference RTF Peak VRAM
Python CUDA, default BF16 2.774 s 0.01541 4,260 MiB
C++ CUDA, BF16 2.239 s 0.01244 3,198 MiB
C++ CUDA, Q8_0 2.014 s 0.01119 2,246 MiB
Python CPU, FP32 110.282 s 0.613 —
C++ CPU, FP32 54.988 s 0.305 —

Performance runs used no TF32 overrides. CPU FP32 results use the weight-type override. Python batches long-form chunks by default; C++ processes them sequentially.

Weights are CC BY-NC 4.0. Native streaming and timestamps are not supported.

@0xShug0
0xShug0 merged commit 8c28140 into main Oct 8, 2026
6 checks passed
@0xShug0
0xShug0 deleted the feature/hviske-v6 branch October 8, 2026 03:54
0xShug0 pushed a commit that referenced this pull request Oct 10, 2026
* webui: let a studio panel run the page's request

Model panels are registered per family, and the page always builds and
sends the request itself. A conversation view has to send its own
request and show the reply as it streams in, while it keeps the page's
Run button, Ctrl+Enter, Cancel, elapsed time and status line.

This adds that hook without changing what any existing panel does:

- A panel entry may list the tasks it covers, such as tasks: ['s2s'].
  An entry without the list covers every task of its family, as before.
- With requestMode 'panel', run() hands the request to the runner the
  panel registers through the page's registerPanelRunner, which the
  next commit passes to panels as setPanelRunner; registering returns
  the function that removes it. It passes the source audio, the
  resolved seed, Max tokens, Language, the request options and the
  abort signal that Cancel uses. The hand-off comes before anything is
  awaited, so the panel can start audio inside the Run click or key
  press. The reply the panel returns is shown in the Result column;
  these runs are not added to Run history. Missing source audio, a
  recording still running, or Run from a tab other than Studio is
  reported as a warning, like the page's other checks before a run.
- With UI management the panel can ask for the entry in a given mode.
  This uses the page's ensureLoadedMode unchanged, after reloading an
  entry that is resident with another package or with imported
  settings that differ, as ensureLoaded does for the other runs.
- api.ts gets taskStreamEvents, a reader for /v1/tasks/stream with
  "stream_format": "sse". It yields each event and then the result,
  throws the server's error message, and throws TaskStreamClosedError
  when the stream ends before task.stream.done. The done message
  carries the whole reply again and comes over many reads, so the
  reader keeps its pieces and joins them once, when the message ends.

No panel uses requestMode 'panel' yet.

* webui: LFM2.5-Audio conversation panel for speech-to-speech

The LFM2.5-Audio speech-to-speech entries ran one question per Run, as a
new conversation each time, and showed the reply only when it was done.
The server can now carry a conversation (earlier turns sent as request
artifacts) and stream a reply as server-sent events, so this gives the
two S2S entries a page of their own, as asked on #828.

The panel covers only the S2S entries; ASR and TTS keep the generic
controls. It adds a conversation above the page's own Language, Seed,
Max tokens, Source audio and Model parameters, which it uses as they
are. Each Run:

- uploads the recorded or chosen question, and sends it to
  /v1/tasks/stream with "stream_format": "sse" and return_codes, with
  each earlier turn as its question's upload path and the reply
  artifact that turn returned;
- plays the reply as it streams in, its 80 ms chunks scheduled back to
  back on one Web Audio clock, and shows the reply text as it arrives;
- adds the turn to a list with the question, the reply text and the
  reply audio, and clears the source picker for the next question.

New conversation starts over, and Leave out drops an old turn from the
next request, which is what the server asks for past its 8192-step
limit. A failed or stopped turn, or one whose stream closed before its
result, is never sent as history; the next Run takes its place.
Starting a turn stops the previous reply, and Stop audio stops a reply
that is still playing. If the browser does not let live audio start,
the panel says so and the reply is in its player when it finishes.
Finished turns are kept when the user opens another tab or entry and
comes back (leaving the panel stops a turn still running), and a turn
on the other checkpoint starts a new conversation. With UI management
the entry is loaded in streaming mode when needed; on a server with a
config file, an entry in offline mode is run through /v1/tasks/run and
its reply shows when it is done. An S2S entry configured under an id
that is not the catalog's gets the family's ASR parameters in Model
parameters; turns leave those out and send the page's Max tokens.

Each turn's players and its Leave out button are named with the turn
number for screen readers, and its state badge is a polite live
region.

The page passes panels three more props for this: modelId,
setPanelRunner, which is its registerPanelRunner, and clearSource, its
own clearSourceFile. The other panels do not declare them and ignore
them. model_params.json gets text_temperature and text_top_k for the
two S2S entries, with the server's defaults, and the S2S hints and the
model docs describe the conversation.

* webui: rebuild the page

Rebuilt from this branch's source with the lockfile (node 24.19.0,
npm 11.17.0):

  cd webui/native
  npm ci
  npm run build

The page on main was built from an older tree. It lacks changes to the
model specs or the page from #824, #829, #830, #833, #834, #835, #846,
#851, #853 and #854, so this rebuild also brings those into the page.
Rebuilding main's own source the same way gives a page that differs
from this one only in this branch's changes.
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