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

Qwen3 0.6B fails to load after flutter_edge_ai 2.3 / litertlm 1.13 bump

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

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

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

評価

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

調査の方向性

Start with the failing path in the LiteRT-LM client at src/ffi/litert_lm_client.dart (initialize, around line 956) and LiteRtLmEngine.createModel in litert_lm_engine.dart (line 167), then reproduce with integration_test/llm_stability_e2e_test.dart, which is listed in all_tests.dart. The open question is whether Qwen3-0.6B needs re-conversion for LiteRT-LM 0.18 or a different load setting, and the issue still lacks those probe results. Done means either the model loads on the bumped packages or AIModelId.qwen25_05b is gated behind a load check with a fallback to Gemma.

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

説明

bug P1-High

Summary

After bumping to flutter_edge_ai 2.3.2 / flutter_edge_ai_litertlm 1.13.2 (LiteRT-LM 0.18.0, see #257), Qwen3 0.6B (Qwen3-0.6B.litertlm) no longer loads on device. The same file loads and answers on our current packages. Gemma 4 E2B is unaffected.

Error

BackendInitException: all FFI backends failed. Last attempted cpu. Attempts:
  gpu: Exception: Failed to create engine. Model may be invalid: .../app_flutter/Qwen3-0.6B.litertlm;
  cpu: Exception: Failed to create engine. Model may be invalid: .../app_flutter/Qwen3-0.6B.litertlm
#0 LiteRtLmFfiClient.initialize (flutter_edge_ai_litertlm/src/ffi/litert_lm_client.dart:956)
#1 LiteRtLmEngine.createModel (litert_lm_engine.dart:167)

Logged just before: [LiteRtLmFfi] litert_lm_engine_create took 91ms, then [LiteRtLmEngine] cpu backend failed, no candidates are left.

Evidence it is the package, not our code or the file

Result
Old: flutter_gemma 1.8.3 + _litertlm 1.6.3 (native 0.16.0), same phone, same file loads, replies (<think> ... )
New: flutter_edge_ai 2.3.2 + _litertlm 1.13.2 (native 0.18.0-e) Failed to create engine. Model may be invalid on GPU and CPU
File on device 614,236,160 bytes, identical size to the pushed fixture
Gemma 4 E2B (gemma-4-E2B-it.litertlm) on the new packages all cases pass

Device: vivo 1933, Android 11 (API 30), arm64. The native bundle downloaded and verified its checksum (native-v0.18.0-e), so it is not a corrupt download.

How it was found

New device test integration_test/llm_stability_e2e_test.dart (runs every model fixture). Before it, every baseline and post-bump device test ran on Gemma, so the Qwen regression was invisible.

Impact

Qwen3 0.6B is in our local catalog (AIModelId.qwen25_05b). On the bumped packages it cannot be activated, so anyone who picked it would get no local model.

Open

  • Probe in progress: does a different maxTokens (256 / 1024 / 4096) or an explicit CPU backend load it? Results will be added here.
  • Whether the file needs re-converting for LiteRT-LM 0.18 (the upstream "Model may be invalid" text suggests a format check). I could not confirm without upstream.

Proposed handling

  1. Report upstream (flutter_edge_ai) with the table above.
  2. Until fixed, do not ship the bump with Qwen3 0.6B in the catalog, or gate it behind a load check with a clear message and fall back to Gemma.
  3. Keep llm_stability_e2e_test in all_tests.dart so this is caught on every device run.

Related: #257 (the bump), #88 (device tests).

主要言語
Dart
スター
2
フォーク
2
平均マージ
1日 35分
マージ済み PR(30日)
36

環境構築

はじめの一歩

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

basictech01/uniun のほかの issue

basictech01/uniun の issue をすべて見る

似ている issue

Dart の issue をもっと見る

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

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