AsrModels: an interrupted download deletes the whole model folder instead of resuming
メンテナーはふだん 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:):
- load
.int8; - load
.int8V2and kill the process about 10 s in, while the encoder weights download; - load
.int8V2again: "Deleting cache and re-downloading…", andEncoder.mlmodelcis 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 を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
FluidInference/FluidAudio のほかの issue
-
CTC keyword spotter hears silence: MelSpectrogram on the Neural Engine yields all-blank CTC framesオープン
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
FluidInference/FluidAudio#1074 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
FluidInference/FluidAudio#1049 ·
メンテナーはふだん 1 日以内に返信
-
Streaming ASR: sliding-window updates can't say which seam tokens were retired, and the stable prefix can shrink on a contraction対応中かも @johnny4young が 14 日前に担当しました。 オープン
難易度 5/5 1週間以上 初心者へのやさしさ 1/100
FluidInference/FluidAudio#1065 ·
メンテナーはふだん 1 日以内に返信
-
難易度 5/5 1週間以上 初心者へのやさしさ 38/100
FluidInference/FluidAudio#1063 ·
メンテナーはふだん 1 日以内に返信
-
難易度 4/5 3〜5日 初心者へのやさしさ 55/100
FluidInference/FluidAudio#1059 ·
メンテナーはふだん 1 日以内に返信
FluidInference/FluidAudio の issue をすべて見る
似ている issue
-
Seed a JRNYAx price before the last close so asset-detail S1.3 doesn't fail from 08:00Z to the openオープンbug tests
難易度 2/5 1〜3時間 初心者へのやさしさ 83/100
lognorman20/monaco#7231 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
メンテナーはふだん 5 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
Provenance-Emu/SkinKit#42 ·
メンテナーはふだん 1 日以内に返信
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
lwouis/alt-tab-macos#6154 ·
-
bug mac アプリ: コード アプリ: チャット 優先: 中 要トリアージ
難易度 2/5 1〜3時間 初心者へのやさしさ 74/100
yksr-melt/Meltype#1346 · コメント 2 件 ·
メンテナーはふだん 1 日以内に返信