mudler / mudler/LocalAI

Gallery model audio-cpp-sortformer-diarization fails to install: SHA mismatch, reproducible across retries

Open Beginner friendly
#11,995 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Go
Stars
49.2k
Forks
4.5k
Avg merge
1d 3m
Merged PRs (30d)
239

Description

LocalAI version

v4.9.0 (localai/localai:latest-gpu-nvidia-cuda-12, revision f7ad3f70eb5d8a0ddf80e08557f0d7df28cf032e)

Describe the bug

Installing the gallery model audio-cpp-sortformer-diarization always fails with
a SHA mismatch. The downloaded file is consistent across attempts, so the
checksum recorded in the gallery metadata appears to be wrong rather than the
download being corrupted.

error: SHA mismatch for file "/models/audio-cpp/sortformer-diar-4spk-v1-q8_0.gguf"
( calculated: 4fa6a3e30c4a1c6cc1da455268806edc93432ca1e1b5b6923e942be8e6e479ff
 != metadata:  84744b047296daf2177aed9dd2735497152ff83f49ec170d2a6a18cbcb93ef19 )

I retried after deleting the partial and completed file, and the calculated hash
was byte-for-byte identical the second time. That points at the metadata rather
than a transfer problem.

Because the install fails at the verification step, the model is never usable and
/v1/audio/diarization has nothing to run.

To Reproduce
  1. Install the cuda12-audio-cpp backend (this succeeds).
  2. POST /models/apply with {"id": "localai@audio-cpp-sortformer-diarization"}
  3. Poll the job. It ends with the SHA mismatch above.
  4. Delete /models/audio-cpp/sortformer-diar-4spk-v1-q8_0.gguf and repeat: the
    calculated hash is the same again.
Expected behavior

Either the gallery metadata should carry the hash of the file actually served, or
the upstream artifact should be restored to the version the metadata describes.

Additional context

Every other model I installed the same way worked, including
granite-embedding-107m-multilingual, whisper-large-turbo-q5_0,
insightface-antelopev2, kokoro, voice-detect-campplus,
voice-detect-ecapa-tdnn, voice-detect-emotion-wav2vec2 and
voice-detect-age-gender-wav2vec2. So this looks specific to the sortformer
gallery entry rather than a general problem with checksum verification.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Find the gallery entry for audio-cpp-sortformer-diarization and compare its recorded SHA with the consistently downloaded file hash shown in the issue. Reproduce the POST /models/apply request and verify the checksum path; done means installation completes and /v1/audio/diarization can use the model.

Written by the indexing model from the issue text.

Assessment

Domain
ai
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Active
Clarity
Mostly clear
Newbie friendliness
76/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.