fix: update model filename to gpu-int4 variant

This commit is contained in:
2026-04-26 15:17:38 +10:00
parent 68780ff436
commit ffb0b427b7
3 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -7,7 +7,7 @@ class MediapipeLlmService implements LlmService {
final _chat = FlutterMediapipeChat();
bool _initialised = false;
static const _modelFileName = 'gemma-2b-it-cpu-int4.bin';
static const _modelFileName = 'gemma-2b-it-gpu-int4.bin';
@override
Future<void> initialise() async {
+1 -1
View File
@@ -3,7 +3,7 @@ import 'package:path_provider/path_provider.dart';
import 'package:path/path.dart' as p;
class ModelDownloadService {
static const modelFileName = 'gemma-2b-it-cpu-int4.bin';
static const modelFileName = 'gemma-2b-it-gpu-int4.bin';
static const modelSizeBytes = 1183285248; // ~1.1 GB
// Gemma 2B IT CPU int4 — MediaPipe LLM Inference model
@@ -91,13 +91,13 @@ class _InstructionCard extends StatelessWidget {
const SizedBox(height: 10),
_Step(
n: '1',
text: 'Download gemma-2b-it-cpu-int4.bin from Kaggle '
text: 'Download gemma-2b-it-gpu-int4.bin from Kaggle '
'(requires a free Google account and licence acceptance).',
),
_Step(
n: '2',
text: 'Transfer the file to the device using adb:\n'
'adb push gemma-2b-it-cpu-int4.bin '
'adb push gemma-2b-it-gpu-int4.bin '
r'$(adb shell run-as net.stefwill.dailyou '
r'printenv DATA_DIR)/files/',
),