Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

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

オープン
#1,067 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
68/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
活発
技術スタック
swift

調査の方向性

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.

索引モデルが issue の本文から書いたものです。

説明

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.

主要言語
Swift
スター
3k
フォーク
451
平均マージ
1日 4時間
マージ済み PR(30日)
60

環境構築

このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

FluidInference/FluidAudio のほかの issue

FluidInference/FluidAudio の issue をすべて見る

似ている issue

Swift の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。