Kokoro ANE v3: every short phrase after the first fails (BNNS workspace 427 GB) on iPhone Air A19 Pro / iOS 27.2.1, follow-up to #1155
Maintainer thường phản hồi trong vòng 1 ngày
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức phù hợp với người mới
- 45/100
- Loại issue
- Lỗi
- Độ rõ ràng
- Khá rõ ràng
- Mức độ hoạt động
- Sôi nổi
- Công nghệ
- ios, swift
- Lĩnh vực
- audio-video-rtc, mobile
Hướng nghiên cứu
Start by reading #1155 for the prior iOS 27 default decision and #1187 for the custom routing context, then trace KokoroAneManager.synthesizeDetailed and its PostAlbert BNNS inference path. Reproduce on an A19 Pro device with repeated short phrases using the setup in this report, and compare with longer phrases and simulator or macOS runs. Done when the cause is identified and repeated short calls succeed on the same manager, with regression coverage for the reported device behavior.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Follow-up to #1155. In that issue you said you'd decide on changing the iOS 27 default after testing on an A19 Pro iPhone running iOS 27.2. Here is that data point: it reproduces on an A19 Pro phone, and with short phrases too.
Setup
- iPhone Air (iPhone18,4, A19 Pro), iOS 27.2.1 (24B156)
- FluidAudio
e2ea498(includes #1187) KokoroAneManager(variant: .english, directory:, version: .v3)with default routing,initialize(preloadVoices: ["af_heart", "am_fenrir", "bf_emma", "bm_george"])- Models bundled in the app (no download), Debug build
Steps
Using one KokoroAneManager, call synthesizeDetailed(text:voice:speed: 1.0) with the same short phrase several times, a few seconds apart. Each call finishes before the next one starts:
Hi! What kind of music are you into lately?
The voice can change between calls (af_heart → am_fenrir → bf_emma → bm_george) or stay the same.
Result
- The first call succeeds.
- The second and every later call on the same manager fails. Only killing the app recovers it:
[e5rt] [BnnsCpuInferenceOperation]: Failed to allocate workspace of size 427036591616 for subgraph 1
[e5rt] [BnnsCpuInferenceOperation]: subgraph planning: failed to allocate workspace for subgraph 1
Error Domain=com.apple.CoreML Code=0 "Unable to compute the prediction using ML Program. It can be an invalid input data or broken/unsupported model."
NSUnderlyingError: "E5RT: Error(s) occurred executing a BNNS Op: Failed to allocate workspace of size 427036591616 for subgraph 1"
The size changes between attempts (427036591616, 420940591104).
- A new
KokoroAneManagerinstance succeeds again, but only for its first call. The next call fails the same way. - In the same process, a one-minute loop of longer sentences ran 31 calls with 0 errors. Right after that loop, two short phrases in a row failed on the second one again.
- The iOS 27.2 simulator and macOS (Apple Silicon) run the same sequence without errors.
I haven't isolated which stage fails. The error comes from a BNNS CPU op, which matches the PostAlbert failure in #1155.
Workaround in our app
We create a new manager and retry once when a call fails. That adds ~0.6 s to each later short phrase. I haven't tried .cpuOnly for PostAlbert through the custom routing from #1187 yet.
Question
Does this settle the iOS 27 default from #1155? With the current default, every short phrase after the first one on a manager fails on this phone.
- Ngôn ngữ chính
- Swift
- Star
- 3k
- Fork
- 451
- Merge trung bình
- 1 ngày 19 giờ
- Pull request đã merge (30 ngày)
- 87
Chuẩn bị môi trường
Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của FluidInference/FluidAudio
-
Kokoro ANE legacy: Alignment still runs the graph that traps at 48 tokens (#1172 fixed v3 only)Đang mởbug text-to-speech
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
FluidInference/FluidAudio#1201 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 42/100
FluidInference/FluidAudio#1194 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 45/100
FluidInference/FluidAudio#1193 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 22/100
FluidInference/FluidAudio#1191 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 20/100
FluidInference/FluidAudio#1182 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của FluidInference/FluidAudio
Issue tương tự
-
area: build-and-ci S3: minor
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
manaflow-ai/cmux#65734 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
OneBusAway/onebusaway-ios#2025 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
good first issue help wanted
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 95/100
erkamyaman/rust-anything#930 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
contributor: external iOS needs review sdk-58 severity: low
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 88/100
expo/expo#54458 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 88/100
SwiftOldDriver/iOS-Weekly#5528 ·
Maintainer thường phản hồi trong vòng 1 ngày