Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

AsrModels: an interrupted download deletes the whole model folder instead of resuming

Aperta
#1,067 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
68/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
swift

Direzione di ricerca

Read AsrModels.download and ModelHub.loadModelsOnce in Sources/FluidAudio/Shared/Download/ModelHub.swift, then compare their cache checks with loadWithRecovery and ModelCache.incompleteFiles. Reproduce by interrupting the .int8V2 encoder download after loading .int8. Done when retrying resumes or safely repairs the incomplete bundle without deleting other encoder variants in the repo folder.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

The batch AsrModels path still has the #819 problem: after an interrupted download, the next load deletes the whole model folder instead of resuming.

AsrModels.download and ModelHub.loadModelsOnce only check that the bundle directories exist. A half-downloaded bundle passes, the load fails with "Missing coremldata.bin", and purgeCorruptedCache removes the whole repo folder. The partial file is lost, and bundles of the other encoder variants in that folder are never downloaded again, so another app using them loses its model (e.g. .int8's Encoder.mlmodelc when the .int8V2 download was interrupted).

How to reproduce

On main 1b0ed50, with AsrModels.downloadAndLoad(to: <dir>/parakeet-tdt-0.6b-v3, version: .v3, encoderPrecision:):

  1. load .int8;
  2. load .int8V2 and kill the process about 10 s in, while the encoder weights download;
  3. load .int8V2 again: "Deleting cache and re-downloading…", and Encoder.mlmodelc is gone.

Fix idea: check with ModelCache.incompleteFiles there, as #829's loadWithRecovery does, and maybe purge only the bundle that failed.

Lingua principale
Swift
Stelle
3k
Fork
451
Merge medio
1g 4h
PR unite (30g)
60

Preparare l'ambiente

Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di FluidInference/FluidAudio

Tutte le issue di FluidInference/FluidAudio

Issue simili

Altre issue su Swift

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.