Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion android/app/src/main/res/xml/backup_rules.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<!--
Auto-backup rules for Android 11 and below (android:fullBackupContent).

Provisioned model weights (0.5-2.4GB) are excluded: they are re-downloadable
Provisioned model weights (0.58-2.59GB) are excluded: they are re-downloadable
from their pinned source URL, so backing them up buys no recovery value while
consuming the user's backup quota — multiplied by device count on a managed
fleet. `domain="file"` is the app's files directory, which is what
Expand Down
2 changes: 1 addition & 1 deletion android/app/src/main/res/xml/data_extraction_rules.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
Backup and transfer rules for Android 12+ (android:dataExtractionRules).

Both destinations exclude the provisioned model weights, for different reasons:
cloud backup because 0.5-2.4GB of re-downloadable weights would consume the
cloud backup because 0.58-2.59GB of re-downloadable weights would consume the
user's backup quota for no recovery value, and device-to-device transfer
because the new device can fetch the artifact itself — and must re-verify its
SHA-256 rather than inherit a receipt written on another machine.
Expand Down
2 changes: 1 addition & 1 deletion integration_test/model_provisioning_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ void main() {
ModelVerificationSource.existingFile,
);
},
// A 2.4GB artifact over a real link; generous, and still bounded.
// A 2.59GB artifact over a real link; generous, and still bounded.
timeout: const Timeout(Duration(minutes: 45)),
);
}
Expand Down
2 changes: 1 addition & 1 deletion lib/services/models/model_downloader.dart
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import 'dart:io';
class ModelByteStream {
const ModelByteStream({required this.bytes, this.contentLength});

/// The body, chunk by chunk. Never buffered whole: a 2.4GB artifact must not
/// The body, chunk by chunk. Never buffered whole: a 2.59GB artifact must not
/// pass through memory on its way to disk.
final Stream<List<int>> bytes;

Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ dependencies:
path_provider: ^2.1.6
path: ^1.9.1

# Streaming SHA-256 for model-weight verification: a 2.4GB artifact is hashed
# Streaming SHA-256 for model-weight verification: a 2.59GB artifact is hashed
# chunk-by-chunk as it is written, never buffered in memory.
crypto: ^3.0.7
flutter_gemma: ^1.4.1
Expand Down