whisper.cpp v1.9.6 makes flash attention as accurate as running without it

2 days ago

whisper.cpp v1.9.6 makes flash attention, on by default, as accurate as running without it. The last segment now ends with the audio, whisper-server can listen on a Unix socket, and the Docker images run on CPUs without AVX-512.

Ask about this presentation

Chapters

  1. 0:00whisper.cpp v1.9.6
  2. 0:11Segments end with the audio
  3. 0:21whisper-server on a Unix socket
  4. 0:30Docker images stop crashing
  5. 0:41Three more fixes
  6. 0:52Upgrade?
Show transcript
  1. The new whisper.cpp release fixes flash attention, which is on by default. Padding slipped into every attention step, so transcripts came out slightly worse than with it off. Now they match, at twice the encoder speed.

    Slide text
    whisper.cpp

    whisper.cpp’s flash attention is now as accurate as running without it

    fa off 2.67% WER · 40 ms
    before 2.83% WER · 20 ms
    now 2.70% WER · 20 ms

    Word error rate and encoder time, large-v3-turbo, 200 LibriSpeech clips

    src/whisper.cpp · PR #4127
  2. When a file ended in silence, its last segment could close several seconds after the audio did, and split runs could overlap. Every segment now ends at or before the end of the recording.

    Slide text
    whisper.cpp

    The last segment no longer runs past the end of the file

    before 03:16.400 → 03:26.400
    now 03:16.400 → 03:18.730

    Final segment of a recording 3 minutes 18.73 seconds long

    src/whisper.cpp · PR #4137
  3. whisper-server can now take requests through a socket file on your machine instead of a network port. It leaves that file behind on shutdown, so remove it before restarting, and Windows is not supported.

    Slide text
    whisper.cpp

    whisper-server can listen on a Unix socket

    TCP port → whisper.sock

    Remove the socket file before restarting · not on Windows

    examples/server/README.md · PR #4124
  4. The published Docker images were compiled for the build server's own processor, so they crashed on any CPU without AVX-512. They now target a common AVX2 baseline.

    Slide text
    whisper.cpp

    The Docker images run on processors without AVX-512

    before ggml-cpu: -march=native
    now ggml-cpu: -msse4.2;-mf16c;-mfma;-mbmi2;-mavx;-mavx2

    CPU backend line from the image’s CMake build

    .devops/main.Dockerfile · PR #4111
  5. Word-level timestamps no longer kill a long run halfway through. whisper-server now answers a request whose audio is all silence, and on Windows, whisper-cli writes its transcript to standard output instead of an empty file.

    Slide text
    whisper.cpp

    Word timestamps, silent audio and Windows output, fixed

    • + Word-level timestamps no longer abort on a short window
    • + whisper-server answers silent audio instead of failing with an error
    • + whisper-cli output to stdout works on Windows
    src/whisper.cpp · examples/server/server.cpp · examples/cli/cli.cpp
  6. I would say yes, upgrade, especially if you keep flash attention on or run the published Docker images. The accuracy fix was measured on a single NVIDIA GPU. The release notes list everything else.

    Slide text
    whisper.cpp

    Worth the upgrade if you run flash attention or the Docker images

    The accuracy fix was measured on one NVIDIA H100

    Release notes · v1.9.6

What happened in AI today, in your inbox

One short email each evening. Read it and you’re caught up.

Built with ❤️ in New York