Upload 22 files
Browse files- .gitattributes +2 -0
- ARCHITECTURE.md +11 -0
- Apache-2.0.txt +176 -0
- BUILD.md +24 -0
- Bonsai-Local-0.2.3-arm64-Q2_0-bundled-preview.apk +3 -0
- Bonsai-Local-0.2.3-arm64-small-preview.apk +3 -0
- Bonsai-Local-0.2.3-source.zip +3 -0
- Bonsai-Local-Apache-2.0.txt +176 -0
- Bonsai-Local-NOTICE.txt +10 -0
- Bonsai-model-Apache-2.0.txt +177 -0
- Bonsai-model-NOTICE.txt +4 -0
- LICENSE +176 -0
- LICENSES.md +10 -0
- NOTICE +10 -0
- PROGRESS.md +82 -0
- README.md +93 -0
- RELICENSING.md +7 -0
- SHA256SUMS +21 -0
- TEST_PLAN.md +18 -0
- THIRD_PARTY.txt +34 -0
- artifact-inventory.json +142 -0
- dependencies.json +36 -0
- llama-MIT.txt +21 -0
.gitattributes
CHANGED
|
@@ -33,3 +33,5 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
|
|
| 33 |
*.zip filter=lfs diff=lfs merge=lfs -text
|
| 34 |
*.zst filter=lfs diff=lfs merge=lfs -text
|
| 35 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
|
|
|
|
|
|
|
|
| 33 |
*.zip filter=lfs diff=lfs merge=lfs -text
|
| 34 |
*.zst filter=lfs diff=lfs merge=lfs -text
|
| 35 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
| 36 |
+
Bonsai-Local-0.2.3-arm64-Q2_0-bundled-preview.apk filter=lfs diff=lfs merge=lfs -text
|
| 37 |
+
Bonsai-Local-0.2.3-arm64-small-preview.apk filter=lfs diff=lfs merge=lfs -text
|
ARCHITECTURE.md
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Architecture
|
| 2 |
+
|
| 3 |
+
Bonsai Local is an independent Android source/build root. Kotlin/Compose owns Chat, Models and Settings; a ViewModel serializes inference/model operations on a background-priority worker. UI and BLE are not coupled: there is no BLE subsystem in this application.
|
| 4 |
+
|
| 5 |
+
`LocalLLMEngine` isolates the replaceable model interface. `BonsaiEngine` calls direct JNI exports for package `org.gdalabs.bonsailocal`; there is no HTTP bridge. The model's embedded tokenizer/Jinja template and the pinned PrismML Hadamard/hybrid-attention operators are used. CPU-only ARM64, conservative 2K default context, cancellable generation, context reset, explicit unload and memory-pressure handling.
|
| 6 |
+
|
| 7 |
+
The native runtime.cpp/runtime.h are preserved byte-for-byte from MeshMind. JNI package names change for the independent app. A development-only ignored symlink may reuse the pinned upstream checkout; a source distribution contains its own upstream snapshot, and `fetch-upstream.sh` can independently provision the exact commit. No parent repository path is required in a distributed build.
|
| 8 |
+
|
| 9 |
+
The model repository stages/checks local files before activation. Bundled assets follow the same verified import path. ChatStore encrypts history with an app-specific Android Keystore key. Android package/UID separation keeps existing MeshMind data untouched. Imported manifests provide integrity information, not publisher authentication; no signature verifier is claimed.
|
| 10 |
+
|
| 11 |
+
The compiled app intentionally contains no transport, mesh protocol, derivative-model experiment, telemetry SDK or remote logging path. The source distribution is an app runtime, not a training checkpoint.
|
Apache-2.0.txt
ADDED
|
@@ -0,0 +1,176 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
Apache License
|
| 2 |
+
Version 2.0, January 2004
|
| 3 |
+
http://www.apache.org/licenses/
|
| 4 |
+
|
| 5 |
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
| 6 |
+
|
| 7 |
+
1. Definitions.
|
| 8 |
+
|
| 9 |
+
"License" shall mean the terms and conditions for use, reproduction,
|
| 10 |
+
and distribution as defined by Sections 1 through 9 of this document.
|
| 11 |
+
|
| 12 |
+
"Licensor" shall mean the copyright owner or entity authorized by
|
| 13 |
+
the copyright owner that is granting the License.
|
| 14 |
+
|
| 15 |
+
"Legal Entity" shall mean the union of the acting entity and all
|
| 16 |
+
other entities that control, are controlled by, or are under common
|
| 17 |
+
control with that entity. For the purposes of this definition,
|
| 18 |
+
"control" means (i) the power, direct or indirect, to cause the
|
| 19 |
+
direction or management of such entity, whether by contract or
|
| 20 |
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
| 21 |
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
| 22 |
+
|
| 23 |
+
"You" (or "Your") shall mean an individual or Legal Entity
|
| 24 |
+
exercising permissions granted by this License.
|
| 25 |
+
|
| 26 |
+
"Source" form shall mean the preferred form for making modifications,
|
| 27 |
+
including but not limited to software source code, documentation
|
| 28 |
+
source, and configuration files.
|
| 29 |
+
|
| 30 |
+
"Object" form shall mean any form resulting from mechanical
|
| 31 |
+
transformation or translation of a Source form, including but
|
| 32 |
+
not limited to compiled object code, generated documentation,
|
| 33 |
+
and conversions to other media types.
|
| 34 |
+
|
| 35 |
+
"Work" shall mean the work of authorship, whether in Source or
|
| 36 |
+
Object form, made available under the License, as indicated by a
|
| 37 |
+
copyright notice that is included in or attached to the work
|
| 38 |
+
(an example is provided in the Appendix below).
|
| 39 |
+
|
| 40 |
+
"Derivative Works" shall mean any work, whether in Source or Object
|
| 41 |
+
form, that is based on (or derived from) the Work and for which the
|
| 42 |
+
editorial revisions, annotations, elaborations, or other modifications
|
| 43 |
+
represent, as a whole, an original work of authorship. For the purposes
|
| 44 |
+
of this License, Derivative Works shall not include works that remain
|
| 45 |
+
separable from, or merely link (or bind by name) to the interfaces of,
|
| 46 |
+
the Work and Derivative Works thereof.
|
| 47 |
+
|
| 48 |
+
"Contribution" shall mean any work of authorship, including
|
| 49 |
+
the original version of the Work and any modifications or additions
|
| 50 |
+
to that Work or Derivative Works thereof, that is intentionally
|
| 51 |
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
| 52 |
+
or by an individual or Legal Entity authorized to submit on behalf of
|
| 53 |
+
the copyright owner. For the purposes of this definition, "submitted"
|
| 54 |
+
means any form of electronic, verbal, or written communication sent
|
| 55 |
+
to the Licensor or its representatives, including but not limited to
|
| 56 |
+
communication on electronic mailing lists, source code control systems,
|
| 57 |
+
and issue tracking systems that are managed by, or on behalf of, the
|
| 58 |
+
Licensor for the purpose of discussing and improving the Work, but
|
| 59 |
+
excluding communication that is conspicuously marked or otherwise
|
| 60 |
+
designated in writing by the copyright owner as "Not a Contribution."
|
| 61 |
+
|
| 62 |
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
| 63 |
+
on behalf of whom a Contribution has been received by Licensor and
|
| 64 |
+
subsequently incorporated within the Work.
|
| 65 |
+
|
| 66 |
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
| 67 |
+
this License, each Contributor hereby grants to You a perpetual,
|
| 68 |
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
| 69 |
+
copyright license to reproduce, prepare Derivative Works of,
|
| 70 |
+
publicly display, publicly perform, sublicense, and distribute the
|
| 71 |
+
Work and such Derivative Works in Source or Object form.
|
| 72 |
+
|
| 73 |
+
3. Grant of Patent License. Subject to the terms and conditions of
|
| 74 |
+
this License, each Contributor hereby grants to You a perpetual,
|
| 75 |
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
| 76 |
+
(except as stated in this section) patent license to make, have made,
|
| 77 |
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
| 78 |
+
where such license applies only to those patent claims licensable
|
| 79 |
+
by such Contributor that are necessarily infringed by their
|
| 80 |
+
Contribution(s) alone or by combination of their Contribution(s)
|
| 81 |
+
with the Work to which such Contribution(s) was submitted. If You
|
| 82 |
+
institute patent litigation against any entity (including a
|
| 83 |
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
| 84 |
+
or a Contribution incorporated within the Work constitutes direct
|
| 85 |
+
or contributory patent infringement, then any patent licenses
|
| 86 |
+
granted to You under this License for that Work shall terminate
|
| 87 |
+
as of the date such litigation is filed.
|
| 88 |
+
|
| 89 |
+
4. Redistribution. You may reproduce and distribute copies of the
|
| 90 |
+
Work or Derivative Works thereof in any medium, with or without
|
| 91 |
+
modifications, and in Source or Object form, provided that You
|
| 92 |
+
meet the following conditions:
|
| 93 |
+
|
| 94 |
+
(a) You must give any other recipients of the Work or
|
| 95 |
+
Derivative Works a copy of this License; and
|
| 96 |
+
|
| 97 |
+
(b) You must cause any modified files to carry prominent notices
|
| 98 |
+
stating that You changed the files; and
|
| 99 |
+
|
| 100 |
+
(c) You must retain, in the Source form of any Derivative Works
|
| 101 |
+
that You distribute, all copyright, patent, trademark, and
|
| 102 |
+
attribution notices from the Source form of the Work,
|
| 103 |
+
excluding those notices that do not pertain to any part of
|
| 104 |
+
the Derivative Works; and
|
| 105 |
+
|
| 106 |
+
(d) If the Work includes a "NOTICE" text file as part of its
|
| 107 |
+
distribution, then any Derivative Works that You distribute must
|
| 108 |
+
include a readable copy of the attribution notices contained
|
| 109 |
+
within such NOTICE file, excluding those notices that do not
|
| 110 |
+
pertain to any part of the Derivative Works, in at least one
|
| 111 |
+
of the following places: within a NOTICE text file distributed
|
| 112 |
+
as part of the Derivative Works; within the Source form or
|
| 113 |
+
documentation, if provided along with the Derivative Works; or,
|
| 114 |
+
within a display generated by the Derivative Works, if and
|
| 115 |
+
wherever such third-party notices normally appear. The contents
|
| 116 |
+
of the NOTICE file are for informational purposes only and
|
| 117 |
+
do not modify the License. You may add Your own attribution
|
| 118 |
+
notices within Derivative Works that You distribute, alongside
|
| 119 |
+
or as an addendum to the NOTICE text from the Work, provided
|
| 120 |
+
that such additional attribution notices cannot be construed
|
| 121 |
+
as modifying the License.
|
| 122 |
+
|
| 123 |
+
You may add Your own copyright statement to Your modifications and
|
| 124 |
+
may provide additional or different license terms and conditions
|
| 125 |
+
for use, reproduction, or distribution of Your modifications, or
|
| 126 |
+
for any such Derivative Works as a whole, provided Your use,
|
| 127 |
+
reproduction, and distribution of the Work otherwise complies with
|
| 128 |
+
the conditions stated in this License.
|
| 129 |
+
|
| 130 |
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
| 131 |
+
any Contribution intentionally submitted for inclusion in the Work
|
| 132 |
+
by You to the Licensor shall be under the terms and conditions of
|
| 133 |
+
this License, without any additional terms or conditions.
|
| 134 |
+
Notwithstanding the above, nothing herein shall supersede or modify
|
| 135 |
+
the terms of any separate license agreement you may have executed
|
| 136 |
+
with Licensor regarding such Contributions.
|
| 137 |
+
|
| 138 |
+
6. Trademarks. This License does not grant permission to use the trade
|
| 139 |
+
names, trademarks, service marks, or product names of the Licensor,
|
| 140 |
+
except as required for reasonable and customary use in describing the
|
| 141 |
+
origin of the Work and reproducing the content of the NOTICE file.
|
| 142 |
+
|
| 143 |
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
| 144 |
+
agreed to in writing, Licensor provides the Work (and each
|
| 145 |
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
| 146 |
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
| 147 |
+
implied, including, without limitation, any warranties or conditions
|
| 148 |
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
| 149 |
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
| 150 |
+
appropriateness of using or redistributing the Work and assume any
|
| 151 |
+
risks associated with Your exercise of permissions under this License.
|
| 152 |
+
|
| 153 |
+
8. Limitation of Liability. In no event and under no legal theory,
|
| 154 |
+
whether in tort (including negligence), contract, or otherwise,
|
| 155 |
+
unless required by applicable law (such as deliberate and grossly
|
| 156 |
+
negligent acts) or agreed to in writing, shall any Contributor be
|
| 157 |
+
liable to You for damages, including any direct, indirect, special,
|
| 158 |
+
incidental, or consequential damages of any character arising as a
|
| 159 |
+
result of this License or out of the use or inability to use the
|
| 160 |
+
Work (including but not limited to damages for loss of goodwill,
|
| 161 |
+
work stoppage, computer failure or malfunction, or any and all
|
| 162 |
+
other commercial damages or losses), even if such Contributor
|
| 163 |
+
has been advised of the possibility of such damages.
|
| 164 |
+
|
| 165 |
+
9. Accepting Warranty or Additional Liability. While redistributing
|
| 166 |
+
the Work or Derivative Works thereof, You may choose to offer,
|
| 167 |
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
| 168 |
+
or other liability obligations and/or rights consistent with this
|
| 169 |
+
License. However, in accepting such obligations, You may act only
|
| 170 |
+
on Your own behalf and on Your sole responsibility, not on behalf
|
| 171 |
+
of any other Contributor, and only if You agree to indemnify,
|
| 172 |
+
defend, and hold each Contributor harmless for any liability
|
| 173 |
+
incurred by, or claims asserted against, such Contributor by reason
|
| 174 |
+
of your accepting any such warranty or additional liability.
|
| 175 |
+
|
| 176 |
+
END OF TERMS AND CONDITIONS
|
BUILD.md
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Build Bonsai Local
|
| 2 |
+
|
| 3 |
+
JDK 17, SDK 36, build-tools 36.0.0, NDK 28.2.13676358, CMake 3.31.6; pinned dependencies in dependencies.json, Gradle locks and verification metadata.
|
| 4 |
+
|
| 5 |
+
```sh
|
| 6 |
+
export ANDROID_HOME=/path/to/android-sdk
|
| 7 |
+
scripts/fetch-upstream.sh
|
| 8 |
+
./gradlew --no-daemon :android-app:assembleDebug :android-app:assembleDebugAndroidTest :android-app:testDebugUnitTest :android-app:lintDebug
|
| 9 |
+
python3 scripts/check-apk.py android-app/build/outputs/apk/debug/android-app-debug.apk
|
| 10 |
+
```
|
| 11 |
+
|
| 12 |
+
Model-bundled APK:
|
| 13 |
+
|
| 14 |
+
```sh
|
| 15 |
+
python3 scripts/fetch-model.py Q2_0 /absolute/path/bonsai-Q2_0.gguf
|
| 16 |
+
./gradlew --no-daemon -PbonsaiBundledModel=/absolute/path/bonsai-Q2_0.gguf -PbonsaiBundledFormat=Q2_0 :android-app:assembleRelease
|
| 17 |
+
python3 scripts/check-apk.py --bundled --release android-app/build/outputs/apk/release/android-app-release.apk
|
| 18 |
+
```
|
| 19 |
+
|
| 20 |
+
Archive the small APK before building the bundled variant: they share the output path and package ID. The official checksum/size is checked before packaging. `gguf` assets are uncompressed; first launch copies the model into private storage. Budget for APK, private model copy and installer overhead. Installed storage must be measured separately from APK bytes.
|
| 21 |
+
|
| 22 |
+
Distribution previews use non-debuggable release builds signed with Android's debug signing identity for evaluation. Build a small preview with `./gradlew :android-app:assembleRelease`. A durable production signing identity and independently repeated build comparison remain pending; no signing keys are included. Do not call it a production-signed release. Never commit keys or credentials.
|
| 23 |
+
|
| 24 |
+
Host checks remain available through `scripts/build-host.sh`, `build/runtime-host/meshmind-runtime-test` and the benchmark scripts. Native target names retained from MeshMind are internal; no messenger code is compiled. The application has no INTERNET, Bluetooth, location or broad storage permission.
|
Bonsai-Local-0.2.3-arm64-Q2_0-bundled-preview.apk
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:9801a13581aec46dbb1adc4eea6d19cf0f0ecf46a27eef28042be87d5b756c0e
|
| 3 |
+
size 575608110
|
Bonsai-Local-0.2.3-arm64-small-preview.apk
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:dc4e6b8646238575c82a0c836795b4560b11145d88d1ccb5353f5f141e64ee35
|
| 3 |
+
size 28917976
|
Bonsai-Local-0.2.3-source.zip
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:414a0d421064e211156016948d1f4e91cb0c69291e9b37659e8eb256773e0127
|
| 3 |
+
size 39513023
|
Bonsai-Local-Apache-2.0.txt
ADDED
|
@@ -0,0 +1,176 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
Apache License
|
| 2 |
+
Version 2.0, January 2004
|
| 3 |
+
http://www.apache.org/licenses/
|
| 4 |
+
|
| 5 |
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
| 6 |
+
|
| 7 |
+
1. Definitions.
|
| 8 |
+
|
| 9 |
+
"License" shall mean the terms and conditions for use, reproduction,
|
| 10 |
+
and distribution as defined by Sections 1 through 9 of this document.
|
| 11 |
+
|
| 12 |
+
"Licensor" shall mean the copyright owner or entity authorized by
|
| 13 |
+
the copyright owner that is granting the License.
|
| 14 |
+
|
| 15 |
+
"Legal Entity" shall mean the union of the acting entity and all
|
| 16 |
+
other entities that control, are controlled by, or are under common
|
| 17 |
+
control with that entity. For the purposes of this definition,
|
| 18 |
+
"control" means (i) the power, direct or indirect, to cause the
|
| 19 |
+
direction or management of such entity, whether by contract or
|
| 20 |
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
| 21 |
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
| 22 |
+
|
| 23 |
+
"You" (or "Your") shall mean an individual or Legal Entity
|
| 24 |
+
exercising permissions granted by this License.
|
| 25 |
+
|
| 26 |
+
"Source" form shall mean the preferred form for making modifications,
|
| 27 |
+
including but not limited to software source code, documentation
|
| 28 |
+
source, and configuration files.
|
| 29 |
+
|
| 30 |
+
"Object" form shall mean any form resulting from mechanical
|
| 31 |
+
transformation or translation of a Source form, including but
|
| 32 |
+
not limited to compiled object code, generated documentation,
|
| 33 |
+
and conversions to other media types.
|
| 34 |
+
|
| 35 |
+
"Work" shall mean the work of authorship, whether in Source or
|
| 36 |
+
Object form, made available under the License, as indicated by a
|
| 37 |
+
copyright notice that is included in or attached to the work
|
| 38 |
+
(an example is provided in the Appendix below).
|
| 39 |
+
|
| 40 |
+
"Derivative Works" shall mean any work, whether in Source or Object
|
| 41 |
+
form, that is based on (or derived from) the Work and for which the
|
| 42 |
+
editorial revisions, annotations, elaborations, or other modifications
|
| 43 |
+
represent, as a whole, an original work of authorship. For the purposes
|
| 44 |
+
of this License, Derivative Works shall not include works that remain
|
| 45 |
+
separable from, or merely link (or bind by name) to the interfaces of,
|
| 46 |
+
the Work and Derivative Works thereof.
|
| 47 |
+
|
| 48 |
+
"Contribution" shall mean any work of authorship, including
|
| 49 |
+
the original version of the Work and any modifications or additions
|
| 50 |
+
to that Work or Derivative Works thereof, that is intentionally
|
| 51 |
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
| 52 |
+
or by an individual or Legal Entity authorized to submit on behalf of
|
| 53 |
+
the copyright owner. For the purposes of this definition, "submitted"
|
| 54 |
+
means any form of electronic, verbal, or written communication sent
|
| 55 |
+
to the Licensor or its representatives, including but not limited to
|
| 56 |
+
communication on electronic mailing lists, source code control systems,
|
| 57 |
+
and issue tracking systems that are managed by, or on behalf of, the
|
| 58 |
+
Licensor for the purpose of discussing and improving the Work, but
|
| 59 |
+
excluding communication that is conspicuously marked or otherwise
|
| 60 |
+
designated in writing by the copyright owner as "Not a Contribution."
|
| 61 |
+
|
| 62 |
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
| 63 |
+
on behalf of whom a Contribution has been received by Licensor and
|
| 64 |
+
subsequently incorporated within the Work.
|
| 65 |
+
|
| 66 |
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
| 67 |
+
this License, each Contributor hereby grants to You a perpetual,
|
| 68 |
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
| 69 |
+
copyright license to reproduce, prepare Derivative Works of,
|
| 70 |
+
publicly display, publicly perform, sublicense, and distribute the
|
| 71 |
+
Work and such Derivative Works in Source or Object form.
|
| 72 |
+
|
| 73 |
+
3. Grant of Patent License. Subject to the terms and conditions of
|
| 74 |
+
this License, each Contributor hereby grants to You a perpetual,
|
| 75 |
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
| 76 |
+
(except as stated in this section) patent license to make, have made,
|
| 77 |
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
| 78 |
+
where such license applies only to those patent claims licensable
|
| 79 |
+
by such Contributor that are necessarily infringed by their
|
| 80 |
+
Contribution(s) alone or by combination of their Contribution(s)
|
| 81 |
+
with the Work to which such Contribution(s) was submitted. If You
|
| 82 |
+
institute patent litigation against any entity (including a
|
| 83 |
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
| 84 |
+
or a Contribution incorporated within the Work constitutes direct
|
| 85 |
+
or contributory patent infringement, then any patent licenses
|
| 86 |
+
granted to You under this License for that Work shall terminate
|
| 87 |
+
as of the date such litigation is filed.
|
| 88 |
+
|
| 89 |
+
4. Redistribution. You may reproduce and distribute copies of the
|
| 90 |
+
Work or Derivative Works thereof in any medium, with or without
|
| 91 |
+
modifications, and in Source or Object form, provided that You
|
| 92 |
+
meet the following conditions:
|
| 93 |
+
|
| 94 |
+
(a) You must give any other recipients of the Work or
|
| 95 |
+
Derivative Works a copy of this License; and
|
| 96 |
+
|
| 97 |
+
(b) You must cause any modified files to carry prominent notices
|
| 98 |
+
stating that You changed the files; and
|
| 99 |
+
|
| 100 |
+
(c) You must retain, in the Source form of any Derivative Works
|
| 101 |
+
that You distribute, all copyright, patent, trademark, and
|
| 102 |
+
attribution notices from the Source form of the Work,
|
| 103 |
+
excluding those notices that do not pertain to any part of
|
| 104 |
+
the Derivative Works; and
|
| 105 |
+
|
| 106 |
+
(d) If the Work includes a "NOTICE" text file as part of its
|
| 107 |
+
distribution, then any Derivative Works that You distribute must
|
| 108 |
+
include a readable copy of the attribution notices contained
|
| 109 |
+
within such NOTICE file, excluding those notices that do not
|
| 110 |
+
pertain to any part of the Derivative Works, in at least one
|
| 111 |
+
of the following places: within a NOTICE text file distributed
|
| 112 |
+
as part of the Derivative Works; within the Source form or
|
| 113 |
+
documentation, if provided along with the Derivative Works; or,
|
| 114 |
+
within a display generated by the Derivative Works, if and
|
| 115 |
+
wherever such third-party notices normally appear. The contents
|
| 116 |
+
of the NOTICE file are for informational purposes only and
|
| 117 |
+
do not modify the License. You may add Your own attribution
|
| 118 |
+
notices within Derivative Works that You distribute, alongside
|
| 119 |
+
or as an addendum to the NOTICE text from the Work, provided
|
| 120 |
+
that such additional attribution notices cannot be construed
|
| 121 |
+
as modifying the License.
|
| 122 |
+
|
| 123 |
+
You may add Your own copyright statement to Your modifications and
|
| 124 |
+
may provide additional or different license terms and conditions
|
| 125 |
+
for use, reproduction, or distribution of Your modifications, or
|
| 126 |
+
for any such Derivative Works as a whole, provided Your use,
|
| 127 |
+
reproduction, and distribution of the Work otherwise complies with
|
| 128 |
+
the conditions stated in this License.
|
| 129 |
+
|
| 130 |
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
| 131 |
+
any Contribution intentionally submitted for inclusion in the Work
|
| 132 |
+
by You to the Licensor shall be under the terms and conditions of
|
| 133 |
+
this License, without any additional terms or conditions.
|
| 134 |
+
Notwithstanding the above, nothing herein shall supersede or modify
|
| 135 |
+
the terms of any separate license agreement you may have executed
|
| 136 |
+
with Licensor regarding such Contributions.
|
| 137 |
+
|
| 138 |
+
6. Trademarks. This License does not grant permission to use the trade
|
| 139 |
+
names, trademarks, service marks, or product names of the Licensor,
|
| 140 |
+
except as required for reasonable and customary use in describing the
|
| 141 |
+
origin of the Work and reproducing the content of the NOTICE file.
|
| 142 |
+
|
| 143 |
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
| 144 |
+
agreed to in writing, Licensor provides the Work (and each
|
| 145 |
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
| 146 |
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
| 147 |
+
implied, including, without limitation, any warranties or conditions
|
| 148 |
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
| 149 |
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
| 150 |
+
appropriateness of using or redistributing the Work and assume any
|
| 151 |
+
risks associated with Your exercise of permissions under this License.
|
| 152 |
+
|
| 153 |
+
8. Limitation of Liability. In no event and under no legal theory,
|
| 154 |
+
whether in tort (including negligence), contract, or otherwise,
|
| 155 |
+
unless required by applicable law (such as deliberate and grossly
|
| 156 |
+
negligent acts) or agreed to in writing, shall any Contributor be
|
| 157 |
+
liable to You for damages, including any direct, indirect, special,
|
| 158 |
+
incidental, or consequential damages of any character arising as a
|
| 159 |
+
result of this License or out of the use or inability to use the
|
| 160 |
+
Work (including but not limited to damages for loss of goodwill,
|
| 161 |
+
work stoppage, computer failure or malfunction, or any and all
|
| 162 |
+
other commercial damages or losses), even if such Contributor
|
| 163 |
+
has been advised of the possibility of such damages.
|
| 164 |
+
|
| 165 |
+
9. Accepting Warranty or Additional Liability. While redistributing
|
| 166 |
+
the Work or Derivative Works thereof, You may choose to offer,
|
| 167 |
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
| 168 |
+
or other liability obligations and/or rights consistent with this
|
| 169 |
+
License. However, in accepting such obligations, You may act only
|
| 170 |
+
on Your own behalf and on Your sole responsibility, not on behalf
|
| 171 |
+
of any other Contributor, and only if You agree to indemnify,
|
| 172 |
+
defend, and hold each Contributor harmless for any liability
|
| 173 |
+
incurred by, or claims asserted against, such Contributor by reason
|
| 174 |
+
of your accepting any such warranty or additional liability.
|
| 175 |
+
|
| 176 |
+
END OF TERMS AND CONDITIONS
|
Bonsai-Local-NOTICE.txt
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
Bonsai Local for Android
|
| 2 |
+
Copyright 2026 GDA Labs
|
| 3 |
+
|
| 4 |
+
GDA Labs application code is available under the Apache License, Version 2.0.
|
| 5 |
+
This notice does not change the licenses or ownership of third-party components.
|
| 6 |
+
|
| 7 |
+
PrismML llama.cpp: MIT; see docs/notices/llama-MIT.txt.
|
| 8 |
+
Official Ternary Bonsai 2 2B model: Apache-2.0; see the model license and NOTICE.
|
| 9 |
+
Created using Bonsai by Prism ML.
|
| 10 |
+
This independent application is not affiliated with or endorsed by PrismML.
|
Bonsai-model-Apache-2.0.txt
ADDED
|
@@ -0,0 +1,177 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
Apache License
|
| 2 |
+
Version 2.0, January 2004
|
| 3 |
+
http://www.apache.org/licenses/
|
| 4 |
+
|
| 5 |
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
| 6 |
+
|
| 7 |
+
1. Definitions.
|
| 8 |
+
|
| 9 |
+
"License" shall mean the terms and conditions for use, reproduction,
|
| 10 |
+
and distribution as defined by Sections 1 through 9 of this document.
|
| 11 |
+
|
| 12 |
+
"Licensor" shall mean the copyright owner or entity authorized by
|
| 13 |
+
the copyright owner that is granting the License.
|
| 14 |
+
|
| 15 |
+
"Legal Entity" shall mean the union of the acting entity and all
|
| 16 |
+
other entities that control, are controlled by, or are under common
|
| 17 |
+
control with that entity. For the purposes of this definition,
|
| 18 |
+
"control" means (i) the power, direct or indirect, to cause the
|
| 19 |
+
direction or management of such entity, whether by contract or
|
| 20 |
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
| 21 |
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
| 22 |
+
|
| 23 |
+
"You" (or "Your") shall mean an individual or Legal Entity
|
| 24 |
+
exercising permissions granted by this License.
|
| 25 |
+
|
| 26 |
+
"Source" form shall mean the preferred form for making modifications,
|
| 27 |
+
including but not limited to software source code, documentation
|
| 28 |
+
source, and configuration files.
|
| 29 |
+
|
| 30 |
+
"Object" form shall mean any form resulting from mechanical
|
| 31 |
+
transformation or translation of a Source form, including but
|
| 32 |
+
not limited to compiled object code, generated documentation,
|
| 33 |
+
and conversions to other media types.
|
| 34 |
+
|
| 35 |
+
"Work" shall mean the work of authorship, whether in Source or
|
| 36 |
+
Object form, made available under the License, as indicated by a
|
| 37 |
+
copyright notice that is included in or attached to the work
|
| 38 |
+
(an example is provided in the Appendix below).
|
| 39 |
+
|
| 40 |
+
"Derivative Works" shall mean any work, whether in Source or Object
|
| 41 |
+
form, that is based on (or derived from) the Work and for which the
|
| 42 |
+
editorial revisions, annotations, elaborations, or other modifications
|
| 43 |
+
represent, as a whole, an original work of authorship. For the purposes
|
| 44 |
+
of this License, Derivative Works shall not include works that remain
|
| 45 |
+
separable from, or merely link (or bind by name) to the interfaces of,
|
| 46 |
+
the Work and Derivative Works thereof.
|
| 47 |
+
|
| 48 |
+
"Contribution" shall mean any work of authorship, including
|
| 49 |
+
the original version of the Work and any modifications or additions
|
| 50 |
+
to that Work or Derivative Works thereof, that is intentionally
|
| 51 |
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
| 52 |
+
or by an individual or Legal Entity authorized to submit on behalf of
|
| 53 |
+
the copyright owner. For the purposes of this definition, "submitted"
|
| 54 |
+
means any form of electronic, verbal, or written communication sent
|
| 55 |
+
to the Licensor or its representatives, including but not limited to
|
| 56 |
+
communication on electronic mailing lists, source code control systems,
|
| 57 |
+
and issue tracking systems that are managed by, or on behalf of, the
|
| 58 |
+
Licensor for the purpose of discussing and improving the Work, but
|
| 59 |
+
excluding communication that is conspicuously marked or otherwise
|
| 60 |
+
designated in writing by the copyright owner as "Not a Contribution."
|
| 61 |
+
|
| 62 |
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
| 63 |
+
on behalf of whom a Contribution has been received by Licensor and
|
| 64 |
+
subsequently incorporated within the Work.
|
| 65 |
+
|
| 66 |
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
| 67 |
+
this License, each Contributor hereby grants to You a perpetual,
|
| 68 |
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
| 69 |
+
copyright license to reproduce, prepare Derivative Works of,
|
| 70 |
+
publicly display, publicly perform, sublicense, and distribute the
|
| 71 |
+
Work and such Derivative Works in Source or Object form.
|
| 72 |
+
|
| 73 |
+
3. Grant of Patent License. Subject to the terms and conditions of
|
| 74 |
+
this License, each Contributor hereby grants to You a perpetual,
|
| 75 |
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
| 76 |
+
(except as stated in this section) patent license to make, have made,
|
| 77 |
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
| 78 |
+
where such license applies only to those patent claims licensable
|
| 79 |
+
by such Contributor that are necessarily infringed by their
|
| 80 |
+
Contribution(s) alone or by combination of their Contribution(s)
|
| 81 |
+
with the Work to which such Contribution(s) was submitted. If You
|
| 82 |
+
institute patent litigation against any entity (including a
|
| 83 |
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
| 84 |
+
or a Contribution incorporated within the Work constitutes direct
|
| 85 |
+
or contributory patent infringement, then any patent licenses
|
| 86 |
+
granted to You under this License for that Work shall terminate
|
| 87 |
+
as of the date such litigation is filed.
|
| 88 |
+
|
| 89 |
+
4. Redistribution. You may reproduce and distribute copies of the
|
| 90 |
+
Work or Derivative Works thereof in any medium, with or without
|
| 91 |
+
modifications, and in Source or Object form, provided that You
|
| 92 |
+
meet the following conditions:
|
| 93 |
+
|
| 94 |
+
(a) You must give any other recipients of the Work or
|
| 95 |
+
Derivative Works a copy of this License; and
|
| 96 |
+
|
| 97 |
+
(b) You must cause any modified files to carry prominent notices
|
| 98 |
+
stating that You changed the files; and
|
| 99 |
+
|
| 100 |
+
(c) You must retain, in the Source form of any Derivative Works
|
| 101 |
+
that You distribute, all copyright, patent, trademark, and
|
| 102 |
+
attribution notices from the Source form of the Work,
|
| 103 |
+
excluding those notices that do not pertain to any part of
|
| 104 |
+
the Derivative Works; and
|
| 105 |
+
|
| 106 |
+
(d) If the Work includes a "NOTICE" text file as part of its
|
| 107 |
+
distribution, then any Derivative Works that You distribute must
|
| 108 |
+
include a readable copy of the attribution notices contained
|
| 109 |
+
within such NOTICE file, excluding those notices that do not
|
| 110 |
+
pertain to any part of the Derivative Works, in at least one
|
| 111 |
+
of the following places: within a NOTICE text file distributed
|
| 112 |
+
as part of the Derivative Works; within the Source form or
|
| 113 |
+
documentation, if provided along with the Derivative Works; or,
|
| 114 |
+
within a display generated by the Derivative Works, if and
|
| 115 |
+
wherever such third-party notices normally appear. The contents
|
| 116 |
+
of the NOTICE file are for informational purposes only and
|
| 117 |
+
do not modify the License. You may add Your own attribution
|
| 118 |
+
notices within Derivative Works that You distribute, alongside
|
| 119 |
+
or as an addendum to the NOTICE text from the Work, provided
|
| 120 |
+
that such additional attribution notices cannot be construed
|
| 121 |
+
as modifying the License.
|
| 122 |
+
|
| 123 |
+
You may add Your own copyright statement to Your modifications and
|
| 124 |
+
may provide additional or different license terms and conditions
|
| 125 |
+
for use, reproduction, or distribution of Your modifications, or
|
| 126 |
+
for any such Derivative Works as a whole, provided Your use,
|
| 127 |
+
reproduction, and distribution of the Work otherwise complies with
|
| 128 |
+
the conditions stated in this License.
|
| 129 |
+
|
| 130 |
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
| 131 |
+
any Contribution intentionally submitted for inclusion in the Work
|
| 132 |
+
by You to the Licensor shall be under the terms and conditions of
|
| 133 |
+
this License, without any additional terms or conditions.
|
| 134 |
+
Notwithstanding the above, nothing herein shall supersede or modify
|
| 135 |
+
the terms of any separate license agreement you may have executed
|
| 136 |
+
with Licensor regarding such Contributions.
|
| 137 |
+
|
| 138 |
+
6. Trademarks. This License does not grant permission to use the trade
|
| 139 |
+
names, trademarks, service marks, or product names of the Licensor,
|
| 140 |
+
except as required for reasonable and customary use in describing the
|
| 141 |
+
origin of the Work and reproducing the content of the NOTICE file.
|
| 142 |
+
|
| 143 |
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
| 144 |
+
agreed to in writing, Licensor provides the Work (and each
|
| 145 |
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
| 146 |
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
| 147 |
+
implied, including, without limitation, any warranties or conditions
|
| 148 |
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
| 149 |
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
| 150 |
+
appropriateness of using or redistributing the Work and assume any
|
| 151 |
+
risks associated with Your exercise of permissions under this License.
|
| 152 |
+
|
| 153 |
+
8. Limitation of Liability. In no event and under no legal theory,
|
| 154 |
+
whether in tort (including negligence), contract, or otherwise,
|
| 155 |
+
unless required by applicable law (such as deliberate and grossly
|
| 156 |
+
negligent acts) or agreed to in writing, shall any Contributor be
|
| 157 |
+
liable to You for damages, including any direct, indirect, special,
|
| 158 |
+
incidental, or consequential damages of any character arising as a
|
| 159 |
+
result of this License or out of the use or inability to use the
|
| 160 |
+
Work (including but not limited to damages for loss of goodwill,
|
| 161 |
+
work stoppage, computer failure or malfunction, or any and all
|
| 162 |
+
other commercial damages or losses), even if such Contributor
|
| 163 |
+
has been advised of the possibility of such damages.
|
| 164 |
+
|
| 165 |
+
9. Accepting Warranty or Additional Liability. While redistributing
|
| 166 |
+
the Work or Derivative Works thereof, You may choose to offer,
|
| 167 |
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
| 168 |
+
or other liability obligations and/or rights consistent with this
|
| 169 |
+
License. However, in accepting such obligations, You may act only
|
| 170 |
+
on Your own behalf and on Your sole responsibility, not on behalf
|
| 171 |
+
of any other Contributor, and only if You agree to indemnify,
|
| 172 |
+
defend, and hold each Contributor harmless for any liability
|
| 173 |
+
incurred by, or claims asserted against, such Contributor by reason
|
| 174 |
+
of your accepting any such warranty or additional liability.
|
| 175 |
+
|
| 176 |
+
END OF TERMS AND CONDITIONS
|
| 177 |
+
|
Bonsai-model-NOTICE.txt
ADDED
|
@@ -0,0 +1,4 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
This software is copyright 2026-present Prism ML, Inc. It is available under the Apache 2.0 license.
|
| 2 |
+
If you publicly deploy or redistribute this software, we would appreciate attribution such as: "Created using Bonsai by Prism ML."
|
| 3 |
+
|
| 4 |
+
This software is built from Qwen3.5-2B, Copyright 2026 Alibaba Cloud, which is available under the Apache 2.0 License: https://huggingface.co/Qwen/Qwen3.5-2B/blob/main/LICENSE
|
LICENSE
ADDED
|
@@ -0,0 +1,176 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
Apache License
|
| 2 |
+
Version 2.0, January 2004
|
| 3 |
+
http://www.apache.org/licenses/
|
| 4 |
+
|
| 5 |
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
| 6 |
+
|
| 7 |
+
1. Definitions.
|
| 8 |
+
|
| 9 |
+
"License" shall mean the terms and conditions for use, reproduction,
|
| 10 |
+
and distribution as defined by Sections 1 through 9 of this document.
|
| 11 |
+
|
| 12 |
+
"Licensor" shall mean the copyright owner or entity authorized by
|
| 13 |
+
the copyright owner that is granting the License.
|
| 14 |
+
|
| 15 |
+
"Legal Entity" shall mean the union of the acting entity and all
|
| 16 |
+
other entities that control, are controlled by, or are under common
|
| 17 |
+
control with that entity. For the purposes of this definition,
|
| 18 |
+
"control" means (i) the power, direct or indirect, to cause the
|
| 19 |
+
direction or management of such entity, whether by contract or
|
| 20 |
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
| 21 |
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
| 22 |
+
|
| 23 |
+
"You" (or "Your") shall mean an individual or Legal Entity
|
| 24 |
+
exercising permissions granted by this License.
|
| 25 |
+
|
| 26 |
+
"Source" form shall mean the preferred form for making modifications,
|
| 27 |
+
including but not limited to software source code, documentation
|
| 28 |
+
source, and configuration files.
|
| 29 |
+
|
| 30 |
+
"Object" form shall mean any form resulting from mechanical
|
| 31 |
+
transformation or translation of a Source form, including but
|
| 32 |
+
not limited to compiled object code, generated documentation,
|
| 33 |
+
and conversions to other media types.
|
| 34 |
+
|
| 35 |
+
"Work" shall mean the work of authorship, whether in Source or
|
| 36 |
+
Object form, made available under the License, as indicated by a
|
| 37 |
+
copyright notice that is included in or attached to the work
|
| 38 |
+
(an example is provided in the Appendix below).
|
| 39 |
+
|
| 40 |
+
"Derivative Works" shall mean any work, whether in Source or Object
|
| 41 |
+
form, that is based on (or derived from) the Work and for which the
|
| 42 |
+
editorial revisions, annotations, elaborations, or other modifications
|
| 43 |
+
represent, as a whole, an original work of authorship. For the purposes
|
| 44 |
+
of this License, Derivative Works shall not include works that remain
|
| 45 |
+
separable from, or merely link (or bind by name) to the interfaces of,
|
| 46 |
+
the Work and Derivative Works thereof.
|
| 47 |
+
|
| 48 |
+
"Contribution" shall mean any work of authorship, including
|
| 49 |
+
the original version of the Work and any modifications or additions
|
| 50 |
+
to that Work or Derivative Works thereof, that is intentionally
|
| 51 |
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
| 52 |
+
or by an individual or Legal Entity authorized to submit on behalf of
|
| 53 |
+
the copyright owner. For the purposes of this definition, "submitted"
|
| 54 |
+
means any form of electronic, verbal, or written communication sent
|
| 55 |
+
to the Licensor or its representatives, including but not limited to
|
| 56 |
+
communication on electronic mailing lists, source code control systems,
|
| 57 |
+
and issue tracking systems that are managed by, or on behalf of, the
|
| 58 |
+
Licensor for the purpose of discussing and improving the Work, but
|
| 59 |
+
excluding communication that is conspicuously marked or otherwise
|
| 60 |
+
designated in writing by the copyright owner as "Not a Contribution."
|
| 61 |
+
|
| 62 |
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
| 63 |
+
on behalf of whom a Contribution has been received by Licensor and
|
| 64 |
+
subsequently incorporated within the Work.
|
| 65 |
+
|
| 66 |
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
| 67 |
+
this License, each Contributor hereby grants to You a perpetual,
|
| 68 |
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
| 69 |
+
copyright license to reproduce, prepare Derivative Works of,
|
| 70 |
+
publicly display, publicly perform, sublicense, and distribute the
|
| 71 |
+
Work and such Derivative Works in Source or Object form.
|
| 72 |
+
|
| 73 |
+
3. Grant of Patent License. Subject to the terms and conditions of
|
| 74 |
+
this License, each Contributor hereby grants to You a perpetual,
|
| 75 |
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
| 76 |
+
(except as stated in this section) patent license to make, have made,
|
| 77 |
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
| 78 |
+
where such license applies only to those patent claims licensable
|
| 79 |
+
by such Contributor that are necessarily infringed by their
|
| 80 |
+
Contribution(s) alone or by combination of their Contribution(s)
|
| 81 |
+
with the Work to which such Contribution(s) was submitted. If You
|
| 82 |
+
institute patent litigation against any entity (including a
|
| 83 |
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
| 84 |
+
or a Contribution incorporated within the Work constitutes direct
|
| 85 |
+
or contributory patent infringement, then any patent licenses
|
| 86 |
+
granted to You under this License for that Work shall terminate
|
| 87 |
+
as of the date such litigation is filed.
|
| 88 |
+
|
| 89 |
+
4. Redistribution. You may reproduce and distribute copies of the
|
| 90 |
+
Work or Derivative Works thereof in any medium, with or without
|
| 91 |
+
modifications, and in Source or Object form, provided that You
|
| 92 |
+
meet the following conditions:
|
| 93 |
+
|
| 94 |
+
(a) You must give any other recipients of the Work or
|
| 95 |
+
Derivative Works a copy of this License; and
|
| 96 |
+
|
| 97 |
+
(b) You must cause any modified files to carry prominent notices
|
| 98 |
+
stating that You changed the files; and
|
| 99 |
+
|
| 100 |
+
(c) You must retain, in the Source form of any Derivative Works
|
| 101 |
+
that You distribute, all copyright, patent, trademark, and
|
| 102 |
+
attribution notices from the Source form of the Work,
|
| 103 |
+
excluding those notices that do not pertain to any part of
|
| 104 |
+
the Derivative Works; and
|
| 105 |
+
|
| 106 |
+
(d) If the Work includes a "NOTICE" text file as part of its
|
| 107 |
+
distribution, then any Derivative Works that You distribute must
|
| 108 |
+
include a readable copy of the attribution notices contained
|
| 109 |
+
within such NOTICE file, excluding those notices that do not
|
| 110 |
+
pertain to any part of the Derivative Works, in at least one
|
| 111 |
+
of the following places: within a NOTICE text file distributed
|
| 112 |
+
as part of the Derivative Works; within the Source form or
|
| 113 |
+
documentation, if provided along with the Derivative Works; or,
|
| 114 |
+
within a display generated by the Derivative Works, if and
|
| 115 |
+
wherever such third-party notices normally appear. The contents
|
| 116 |
+
of the NOTICE file are for informational purposes only and
|
| 117 |
+
do not modify the License. You may add Your own attribution
|
| 118 |
+
notices within Derivative Works that You distribute, alongside
|
| 119 |
+
or as an addendum to the NOTICE text from the Work, provided
|
| 120 |
+
that such additional attribution notices cannot be construed
|
| 121 |
+
as modifying the License.
|
| 122 |
+
|
| 123 |
+
You may add Your own copyright statement to Your modifications and
|
| 124 |
+
may provide additional or different license terms and conditions
|
| 125 |
+
for use, reproduction, or distribution of Your modifications, or
|
| 126 |
+
for any such Derivative Works as a whole, provided Your use,
|
| 127 |
+
reproduction, and distribution of the Work otherwise complies with
|
| 128 |
+
the conditions stated in this License.
|
| 129 |
+
|
| 130 |
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
| 131 |
+
any Contribution intentionally submitted for inclusion in the Work
|
| 132 |
+
by You to the Licensor shall be under the terms and conditions of
|
| 133 |
+
this License, without any additional terms or conditions.
|
| 134 |
+
Notwithstanding the above, nothing herein shall supersede or modify
|
| 135 |
+
the terms of any separate license agreement you may have executed
|
| 136 |
+
with Licensor regarding such Contributions.
|
| 137 |
+
|
| 138 |
+
6. Trademarks. This License does not grant permission to use the trade
|
| 139 |
+
names, trademarks, service marks, or product names of the Licensor,
|
| 140 |
+
except as required for reasonable and customary use in describing the
|
| 141 |
+
origin of the Work and reproducing the content of the NOTICE file.
|
| 142 |
+
|
| 143 |
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
| 144 |
+
agreed to in writing, Licensor provides the Work (and each
|
| 145 |
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
| 146 |
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
| 147 |
+
implied, including, without limitation, any warranties or conditions
|
| 148 |
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
| 149 |
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
| 150 |
+
appropriateness of using or redistributing the Work and assume any
|
| 151 |
+
risks associated with Your exercise of permissions under this License.
|
| 152 |
+
|
| 153 |
+
8. Limitation of Liability. In no event and under no legal theory,
|
| 154 |
+
whether in tort (including negligence), contract, or otherwise,
|
| 155 |
+
unless required by applicable law (such as deliberate and grossly
|
| 156 |
+
negligent acts) or agreed to in writing, shall any Contributor be
|
| 157 |
+
liable to You for damages, including any direct, indirect, special,
|
| 158 |
+
incidental, or consequential damages of any character arising as a
|
| 159 |
+
result of this License or out of the use or inability to use the
|
| 160 |
+
Work (including but not limited to damages for loss of goodwill,
|
| 161 |
+
work stoppage, computer failure or malfunction, or any and all
|
| 162 |
+
other commercial damages or losses), even if such Contributor
|
| 163 |
+
has been advised of the possibility of such damages.
|
| 164 |
+
|
| 165 |
+
9. Accepting Warranty or Additional Liability. While redistributing
|
| 166 |
+
the Work or Derivative Works thereof, You may choose to offer,
|
| 167 |
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
| 168 |
+
or other liability obligations and/or rights consistent with this
|
| 169 |
+
License. However, in accepting such obligations, You may act only
|
| 170 |
+
on Your own behalf and on Your sole responsibility, not on behalf
|
| 171 |
+
of any other Contributor, and only if You agree to indemnify,
|
| 172 |
+
defend, and hold each Contributor harmless for any liability
|
| 173 |
+
incurred by, or claims asserted against, such Contributor by reason
|
| 174 |
+
of your accepting any such warranty or additional liability.
|
| 175 |
+
|
| 176 |
+
END OF TERMS AND CONDITIONS
|
LICENSES.md
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Licenses and attribution
|
| 2 |
+
|
| 3 |
+
- Bonsai Local application/source: Apache-2.0, relicensed at the owner's direction starting with 0.2.3. See LICENSE and NOTICE.
|
| 4 |
+
- PrismML llama.cpp, pinned commit in dependencies.json: MIT. Full runtime notice in docs/notices/llama-MIT.txt; vendored source in the source archive retains its notices.
|
| 5 |
+
- Official PrismML Ternary Bonsai 2 2B weights: Apache-2.0, derived from Qwen3.5-2B. Keep docs/notices/Bonsai-model-Apache-2.0.txt and Bonsai-model-NOTICE.txt with every bundled distribution. Model weights retain their upstream license and attribution.
|
| 6 |
+
- AndroidX/Compose, Kotlin/coroutines and Gradle wrapper: their Apache-2.0 notices apply. Dependency versions, hashes and build scripts accompany the application source.
|
| 7 |
+
|
| 8 |
+
The APK carries notices as assets; the download package includes application source, the pinned native source snapshot, build instructions and license texts. Native dependencies retain their own licenses. A corresponding-source archive is distributed alongside the APK rather than relying on a private GitHub link. No Bitchat code is included. PrismML attribution is not an endorsement.
|
| 9 |
+
|
| 10 |
+
Versions through 0.2.2 remain available under the GPL-3.0-only terms used for those releases. The new application license does not revoke those grants. See RELICENSING.md for scope. Third-party source files retain their own terms; the vendored upstream tree includes optional tools/dependencies that this APK does not build. Do not interpret the repository license as replacing every third-party file license.
|
NOTICE
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
Bonsai Local for Android
|
| 2 |
+
Copyright 2026 GDA Labs
|
| 3 |
+
|
| 4 |
+
GDA Labs application code is available under the Apache License, Version 2.0.
|
| 5 |
+
This notice does not change the licenses or ownership of third-party components.
|
| 6 |
+
|
| 7 |
+
PrismML llama.cpp: MIT; see docs/notices/llama-MIT.txt.
|
| 8 |
+
Official Ternary Bonsai 2 2B model: Apache-2.0; see the model license and NOTICE.
|
| 9 |
+
Created using Bonsai by Prism ML.
|
| 10 |
+
This independent application is not affiliated with or endorsed by PrismML.
|
PROGRESS.md
ADDED
|
@@ -0,0 +1,82 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Bonsai Local progress
|
| 2 |
+
|
| 3 |
+
## 2026-10-16 — independent app extraction and redesign
|
| 4 |
+
|
| 5 |
+
User requested extracting only MeshMind's Bonsai 2 2B Android runtime as an APK-distributable app for Hugging Face, and supplied namespace GDALabs.
|
| 6 |
+
|
| 7 |
+
Implemented an independent source/build root with package org.gdalabs.bonsailocal. Core runtime remains byte-identical; JNI package exports and Kotlin model interfaces are renamed. No messenger or derivative-model experiment is included. Redesigned Chat/Models/Settings, English/Japanese labels, system light/dark palette, installed-versus-loaded states, one-step bundled start, secondary import, confirmation for deletion/reset, streaming/Stop and readable optional metrics. Existing MeshMind package/data/release are unchanged.
|
| 8 |
+
|
| 9 |
+
Pinned official Q2_0/PQ2_0/PTQ1_0 manifests, backend, Gradle locks/verification metadata retained. Official model NOTICE/LICENSE fetched at the pinned revision. Standalone source packaging and Hugging Face app card are being prepared. Small APK, tests, lint and ARM64 native build are running; no success is claimed here before results are recorded.
|
| 10 |
+
|
| 11 |
+
Device/new UI validation remains pending. The earlier user-reported Redmi Note 13 5G airplane-mode success applies to MeshMind, not automatically to this package. No new benchmark or broad model-accuracy claim is made. Preview uses debug signing; production release signing is pending.
|
| 12 |
+
|
| 13 |
+
## 2026-10-17 — fresh checks
|
| 14 |
+
|
| 15 |
+
Independent ARM64 debug/test APK build and latest UI compilation succeeded. Fresh Debug JVM suite: 15 tests, 0 failures/errors. Debug lint: 0 errors, 10 warnings. The small non-debuggable Release APK and Release lint also built successfully. Packaged standalone application ID/JNI export set, ARM64, 16 KiB ELF/ZIP alignment, no network/Bluetooth/location/broad storage permissions and required license assets passed inspection; small APK signature verification passed.
|
| 16 |
+
|
| 17 |
+
The native core and engine interface were compared against the parent: runtime.cpp/runtime.h byte-identical, JNI and engine interface differ only in package names. This establishes inherited source identity, not new-device output equivalence. Device instrumentation remains unexecuted. Instrumented history tests now use an isolated directory and key alias.
|
| 18 |
+
|
| 19 |
+
Official Q2_0 model-bundled Release APK and fresh Release JVM checks are running. Preview Release builds are non-debuggable but use the existing Android development signing identity. No production signing claim is made. Hub standard authentication is absent; no HF upload has occurred.
|
| 20 |
+
|
| 21 |
+
### Final preview APKs
|
| 22 |
+
|
| 23 |
+
Small and bundled non-debuggable Release builds succeeded. Fresh Release JVM suite: 15/15 pass, 0 failures/errors. Release lint: 0 errors, 10 warnings. The updated isolated instrumentation tests compile; device execution remains pending.
|
| 24 |
+
|
| 25 |
+
Both distribution APKs pass packaged package/JNI, ARM64, 16 KiB alignment, required license assets, no INTERNET/Bluetooth/location/broad storage permissions and `apksigner verify` checks. Bundled Q2_0 matches the exact pinned official checksum/size/manifest.
|
| 26 |
+
|
| 27 |
+
- Bundled Release preview: **575,632,610 bytes = 575.633 MB**.
|
| 28 |
+
- Small Release preview: **28,942,476 bytes = 28.942 MB**.
|
| 29 |
+
- Bundled APK + private official model copy: 1,122,322,114 bytes before installer/native/history overhead; computed, not measured installed storage.
|
| 30 |
+
|
| 31 |
+
App source captured at `f750fef`; native source identity and detailed results are in tests/results. Preview uses the existing Android development signing identity, not a production release key. Hugging Face target is GDALabs/Bonsai-Local-Android; standard client authentication is absent, so no upload was attempted. Source/card/APK folder is prepared for publication and private trial download. New-package phone/UI testing remains pending.
|
| 32 |
+
|
| 33 |
+
### Export validation and publication gate
|
| 34 |
+
|
| 35 |
+
The source ZIP was independently extracted: CRC/path checks, all vendored native-source SHA-256 checks and Android CMake configuration **passed**. Missing Git build-info warnings are expected for a source snapshot without .git. No complete independent APK rebuild/comparison or new-package device test was performed. Detailed source validation and distribution inventory are retained in tests/results and the prepared Hub folder.
|
| 36 |
+
|
| 37 |
+
A flat Hub folder and one downloadable HF-upload ZIP are prepared for GDALabs/Bonsai-Local-Android. Both APKs, source, app card, notices, exact sizes/hashes and build/test records are included. Standard Hub client authentication is absent; no Hub repository/upload was created by this session. Private GitHub trial distribution is complete: https://github.com/gdalabs/MeshMind/releases/tag/bonsai-local-v0.2.0-preview . All six assets report uploaded; GitHub APK/source digests match local checksums. The HF-upload ZIP also passed full member SHA-256/CRC verification. Hub publication remains pending authentication.
|
| 38 |
+
|
| 39 |
+
|
| 40 |
+
## 2026-10-17 — Hub publication copy
|
| 41 |
+
|
| 42 |
+
Updated docs/HF_APP_CARD.md with an English publication-ready introduction, APK choice/size table, installation instructions and explicit fresh-versus-inherited validation. No new performance or accuracy results are claimed. This is repository description copy, not a separate article. The previously checksummed release/upload ZIPs remain unchanged; use the latest card as the Hub README when publishing. Hub upload is still pending authentication.
|
| 43 |
+
|
| 44 |
+
|
| 45 |
+
## 2026-10-17 — English-only public presentation
|
| 46 |
+
|
| 47 |
+
At owner request, removed Japanese UI translations and system-language switching. App and current publication copy are English only, with no creator nationality/location claim. Version 0.2.1 uses versionCode 3 so it can update the prior preview. Historical test inputs are preserved as Unicode-escaped JSON; upstream license/source attribution is unchanged. Existing 0.2.0 archives remain historical artifacts. Fresh APK rebuild/checks and updated distribution are pending below.
|
| 48 |
+
|
| 49 |
+
0.2.1 results: both Release APKs built; Release JVM 15/15 passed; small Release lint 0 errors/10 warnings. Both APKs passed signature/permissions/JNI/ARM64/16 KiB checks, bundled official Q2_0 checksum verified. Small 28,926,088 bytes; bundled 575,616,226 bytes. No new-device tests or performance measurements. See tests/results/english-only-0.2.1.json. Updated private distribution and HF preparation use 0.2.1; historical 0.2.0 remains unchanged.
|
| 50 |
+
|
| 51 |
+
|
| 52 |
+
## 2026-10-17 — owner phone report and output budget
|
| 53 |
+
|
| 54 |
+
Owner reports offline Xiaomi Redmi Note 13 5G operation: 4.51 tokens/s, 2.8 s TTFT, 832 MiB peak process memory, configured output limit 256. Version/model/settings/raw logs remain unconfirmed; requested clarification. This is a reported observation, not an independently reproduced benchmark. Recorded in benchmark/redmi-note-13-user-report.json and the Hub card.
|
| 55 |
+
|
| 56 |
+
0.2.2 raises the Kotlin generation default to 512, adds Chat output choices 256/512/1024, and permits changing only the output budget without unloading the model. Retains the length warning with an actionable explanation; clears stale prior-run metrics at new generation. No automatic continuation or context/native runtime change. New builds/checks pending below. Model quality and truncated-output completion are not guaranteed by raising a cap.
|
| 57 |
+
|
| 58 |
+
0.2.2 validation: both Release APK builds succeeded; Release JVM 15/15; small Release lint 0 errors/10 warnings. Both APK signatures, package/JNI/ARM64/16 KiB/permissions passed; bundled official model checksum passed. New controls have not been tested on the physical phone. Native core unchanged. See tests/results/output-budget-0.2.2.json.
|
| 59 |
+
|
| 60 |
+
|
| 61 |
+
## 2026-10-17 — public release preparation
|
| 62 |
+
|
| 63 |
+
The owner authorized a dedicated public GitHub repository, a public HF announcement/Space and a Bonsai Local listing on gdalabs.dev. Lead with the Redmi Note 13 5G report, not proposed Xiaomi 13 Ultra figures. Rechecked exact-model prior art: no earlier native Android APK was verified in inspected HF results; browser exact-2B and older/different-size Android projects exist. No priority ranking is claimed.
|
| 64 |
+
|
| 65 |
+
Prepared an English announcement, static Space page and checksum-verifying preparation/publishing scripts. HF standard authentication remains absent. Exported independent application source with pinned vendored native source; no private MeshMind git history, model-editing experiments or first-party binary weights included. Updated source packaging to work from both a native Git checkout and a verified SOURCE_REVISION/SOURCE_SHA256SUMS snapshot. Public repository and site deployment results are recorded separately after completion.
|
| 66 |
+
|
| 67 |
+
|
| 68 |
+
Public distribution completed: gdalabs/bonsai-local-android (PUBLIC, initial cbbc96b), release v0.2.2-preview with six verified uploaded assets. APK hashes match tested 0.2.2 artifacts. New clone native checksums passed; app/native sources match the tested source. Both local static pages passed browser checks at 1440/390/360. gdalabs.dev was deployed through existing Cloudflare Pages project gdalabs-website from website commit af1ac1b; production HTTP 200 confirmed the upper-left link and first card. HF Post is only a public draft and Space is prepared, not uploaded: standard client authentication absent. See docs/HF_PUBLICATION_STATUS.md and tests/results/publication-browser.json. No new Android build or phone measurement was performed for this publication-only change.
|
| 69 |
+
|
| 70 |
+
|
| 71 |
+
## 2026-10-17 — Apache-2.0 application release
|
| 72 |
+
|
| 73 |
+
At the owner's explicit request, changed GDA Labs application licensing to Apache-2.0 for 0.2.3. Added application NOTICE and license assets; preserved PrismML MIT, model Apache-2.0 and model NOTICE byte-for-byte. Updated APK notice checks, repository/HF/static-page metadata and distribution tooling. Native inference and Kotlin behavior are unchanged; only version and license assets change in the APK. Historical GPL releases remain unchanged. Fresh APK builds and packaging validation are pending below.
|
| 74 |
+
|
| 75 |
+
0.2.3 checks: small and bundled Release builds passed; Release JVM 15/15; small lint 0 errors/10 warnings. Both APKs passed updated Apache license/NOTICE/no-stale-GPL, source-version, signature, package/JNI, permissions, ARM64 and 16 KiB checks. Official bundled model SHA verified; signing identity matches 0.2.2. No inference changes or new phone measurements. See tests/results/apache-release-0.2.3.json.
|
| 76 |
+
|
| 77 |
+
|
| 78 |
+
## Public name
|
| 79 |
+
|
| 80 |
+
The owner selected **Bonsai 2 2B Local for Android** as the formal project name. The installed application remains **Bonsai Local**. Existing GitHub and HF repository URLs remain stable. This documentation-only change does not alter the tested APKs.
|
| 81 |
+
|
| 82 |
+
The owner renamed the HF model repository to https://huggingface.co/GDALabs/Bonsai-2-2B-Local-Android . Publication links and the model-repository uploader now target that exact identifier. GitHub remains bonsai-local-android.
|
README.md
CHANGED
|
@@ -1,3 +1,96 @@
|
|
| 1 |
---
|
| 2 |
license: apache-2.0
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 3 |
---
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
---
|
| 2 |
license: apache-2.0
|
| 3 |
+
language:
|
| 4 |
+
- en
|
| 5 |
+
tags:
|
| 6 |
+
- android
|
| 7 |
+
- offline
|
| 8 |
+
- arm64
|
| 9 |
+
- gguf
|
| 10 |
+
- llama-cpp
|
| 11 |
+
- bonsai
|
| 12 |
+
- application
|
| 13 |
---
|
| 14 |
+
|
| 15 |
+
# Bonsai 2 2B Local for Android
|
| 16 |
+
|
| 17 |
+
**Run Bonsai 2 2B locally on your Android phone — with no account or cloud inference.**
|
| 18 |
+
|
| 19 |
+
Bonsai Local is an installable Android application by GDA Labs. This is an unofficial runner for [PrismML's official Ternary Bonsai 2 2B](https://huggingface.co/prism-ml/Ternary-Bonsai-2-2B-gguf), not a newly trained model or an online inference service. PrismML affiliation/endorsement is not implied.
|
| 20 |
+
|
| 21 |
+
## Why this project
|
| 22 |
+
|
| 23 |
+
The practical demonstration is offline inference on the **Redmi Note 13 5G with 6 GB physical RAM**, with owner-reported 4.51 tokens/s, 2.8 s TTFT and 832 MiB peak process memory. See the scope and validation section for unrecorded settings and attribution. This is an early Android application integrating PrismML's runtime, not a claim of world-first Android engine support.
|
| 24 |
+
|
| 25 |
+
## Download and start
|
| 26 |
+
|
| 27 |
+
| Download | APK size | Model provisioning |
|
| 28 |
+
| --- | ---: | --- |
|
| 29 |
+
| **Bonsai-Local-0.2.3-arm64-Q2_0-bundled-preview.apk** | **575.6 MB** | Official Q2_0 included; recommended for getting started |
|
| 30 |
+
| Bonsai-Local-0.2.3-arm64-small-preview.apk | 28.9 MB | Import a local compatible GGUF separately |
|
| 31 |
+
|
| 32 |
+
Sizes use decimal MB. Choose **Bonsai-Local-0.2.3-arm64-Q2_0-bundled-preview.apk** under Files and versions. It includes the official Q2_0 model, so no separate model download is required after installation.
|
| 33 |
+
|
| 34 |
+
1. Install the APK on an ARM64 Android phone (Android 9 / API 28 or later).
|
| 35 |
+
2. Open Bonsai Local. Initial local copying and SHA-256 verification can take time.
|
| 36 |
+
3. Tap **Load model & start** on Chat. Import is unnecessary for the bundled APK.
|
| 37 |
+
4. Chat on the phone. Airplane mode, Wi-Fi off and USB disconnected can be used to verify independence from a network/PC.
|
| 38 |
+
|
| 39 |
+
The **small-preview.apk** requires separately importing a local official GGUF from Models. Downloading/installing/provisioning happens before offline use. The app itself has no INTERNET, Bluetooth or location permission and never starts a local HTTP server. No account, analytics, ads, cloud inference or remote logging is included.
|
| 40 |
+
|
| 41 |
+
Bonsai Local installs independently of MeshMind. Data/model copies are separate. The UI provides Chat, Models and Settings, with streaming/Stop, explicit load/unload, SHA-256 import verification, local encrypted history, background cancellation, memory-efficient mode, 2K/4K context and generation controls. The UI is English only, with light/dark themes. Multilingual model accuracy has not been established.
|
| 42 |
+
|
| 43 |
+
## Scope and validation
|
| 44 |
+
|
| 45 |
+
Text-only CPU inference. Official Q2_0 is the initial default; pinned manifests for PQ2_0/PTQ1_0 are available for external import. No vision, mesh messenger, Vulkan acceleration or edited/uncensored weights are included.
|
| 46 |
+
|
| 47 |
+
### Owner-reported offline phone observation
|
| 48 |
+
|
| 49 |
+
The owner reports running the app offline on a **Xiaomi Redmi Note 13 5G**. Android 14 and 6 GB physical RAM were previously reported for this device.
|
| 50 |
+
|
| 51 |
+
| Metric | Reported value |
|
| 52 |
+
| --- | ---: |
|
| 53 |
+
| Generation speed | 4.51 tokens/s |
|
| 54 |
+
| Time to first token | 2.8 s |
|
| 55 |
+
| Peak process memory | 832 MiB |
|
| 56 |
+
| Configured output limit | 256 tokens |
|
| 57 |
+
|
| 58 |
+
These are owner-reported observations, not an independently reproduced benchmark or an average across runs. App version, exact model format, prompt, context length, thread count, thinking mode, run count and raw logs have not yet been confirmed. Peak process memory is a process high-water mark, not model-only memory or total device memory use. These numbers do not establish accuracy or performance on other phones.
|
| 59 |
+
|
| 60 |
+
Long replies reached the 256-token output limit. The current preview defaults to 512 and exposes 256/512/1024 choices on Chat, without unloading the model. A higher limit can still be reached; prompt and output must fit the context window. This change has not yet been tested on the owner's phone.
|
| 61 |
+
|
| 62 |
+
### Inherited host evidence
|
| 63 |
+
|
| 64 |
+
The unchanged native core inherits 3 exact rendered-prompt outputs matching the official desktop reference, 34 Hadamard cases and 450 ternary operation cases. These checks are separate from the owner's phone report.
|
| 65 |
+
|
| 66 |
+
Build and packaging validation is recorded per version in PROGRESS.md:
|
| 67 |
+
|
| 68 |
+
- ARM64 Debug and Release builds succeeded.
|
| 69 |
+
- Debug and Release JVM suites each passed 15 tests.
|
| 70 |
+
- Android lint reported 0 errors and 10 warnings in each checked variant.
|
| 71 |
+
- Both distributed APKs passed signature, package/JNI, permission and 16 KiB alignment checks.
|
| 72 |
+
- The exported source passed extraction, native-file checksums and Android CMake configuration checks.
|
| 73 |
+
|
| 74 |
+
**Still pending:** installation/UI/inference testing of this new package on a physical phone, Android instrumentation execution, production signing and a complete independent rebuild comparison. See PROGRESS.md and the validation files for details. No standard MMLU/MGSM score, multilingual parity, independently reproduced phone performance, universal RAM support, thermal or battery result is claimed. Generated translations may be inaccurate. Verify outputs before relying on them.
|
| 75 |
+
|
| 76 |
+
## Files, storage and source
|
| 77 |
+
|
| 78 |
+
`artifact-inventory.json` gives exact bytes, decimal MB, binary MiB and SHA-256. `SHA256SUMS` verifies the distributed files. Model-bundled installation stores the APK plus a private model copy and installer/native/history overhead; APK size is not installed size or RAM use.
|
| 79 |
+
|
| 80 |
+
`Bonsai-Local-0.2.3-source.zip` contains the standalone app, build scripts, locked dependencies and the pinned native source snapshot. Corresponding source is provided here; access to a private GitHub repository is not required to build. See BUILD.md for repeatable commands. Independently byte-identical APK rebuilds are not yet established.
|
| 81 |
+
|
| 82 |
+
## How inference works
|
| 83 |
+
|
| 84 |
+
The APK embeds the pinned, unmodified PrismML llama.cpp fork, compiled with Android NDK for ARM64 CPU execution. Kotlin/Compose calls an application-specific JNI layer and C++ adapter, then the upstream inference APIs directly. There is no local HTTP server. Ternary operators, Hadamard transforms, hybrid attention and applicable ARM NEON kernels come from PrismML's backend; tokenization and prompt formatting use the model's embedded tokenizer and chat template. This app does not contain an independently developed tensor engine, and Vulkan/GPU acceleration is not enabled.
|
| 85 |
+
|
| 86 |
+
## Provenance and licenses
|
| 87 |
+
|
| 88 |
+
Official model revision: `683f7be2629342a50987627b40881e54761a2430`.
|
| 89 |
+
Q2_0 SHA-256: `c2893fa6f951daee8b7263d5f49b455e57989ef56417a22125b03566dc560650`.
|
| 90 |
+
PrismML runtime commit: `5ae2e169eac202d2f065606539c3ad6ab8b51333`.
|
| 91 |
+
|
| 92 |
+
- App: Apache-2.0 from 0.2.3 (LICENSE, NOTICE and corresponding source ZIP).
|
| 93 |
+
- Runtime: MIT (llama-MIT.txt).
|
| 94 |
+
- Official model weights: Apache-2.0, derived from Qwen3.5-2B; retain Bonsai-model-Apache-2.0.txt and Bonsai-model-NOTICE.txt. Model attribution and license are retained independently of the app.
|
| 95 |
+
|
| 96 |
+
This experimental preview is a non-debuggable release build, signed with the Android debug identity for testing. Production signing and a new-package device validation remain pending. It is not independently security-audited. Android Keystore encryption protects stored history within its limits; unlocked or compromised devices can expose data. No claim of perfect privacy or suitability for high-risk users is made.
|
RELICENSING.md
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Application license change in 0.2.3
|
| 2 |
+
|
| 3 |
+
At the project owner's direction, GDA Labs application code is released under Apache-2.0 starting with version 0.2.3. The initial GPL-3.0-only selection was made for the GDA Labs MeshMind code from which this standalone application was extracted. No Bitchat code is included. The reviewed local application history and the initial public repository history use GDA Labs authorship; commit identity alone is not a substitute for copyright ownership records.
|
| 4 |
+
|
| 5 |
+
This change covers the application code that GDA Labs is authorized to relicense. It does not relicense PrismML, model weights, AndroidX/Kotlin or any other third-party code. Preserve their licenses and notices. In particular, the PrismML runtime remains MIT, and the official model remains Apache-2.0 with its original NOTICE. The upstream snapshot is unchanged.
|
| 6 |
+
|
| 7 |
+
Earlier tags, APKs and source archives retain their original GPL-3.0-only application notices and remain historical releases. They are not replaced or retrospectively withdrawn. The new release contains rebuilt APKs and a new source/upload bundle with Apache-2.0 application notices.
|
SHA256SUMS
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
ff1a7b166964685fad7eebf3d5e98152b0824bf0ab3ddc917ffb24c13869f6d2 ARCHITECTURE.md
|
| 2 |
+
a6cba85bc92e0cff7a450b1d873c0eaa2e9fc96bf472df0247a26bec77bf3ff9 Apache-2.0.txt
|
| 3 |
+
15973060e5d4b6d4871086dac8c2cd4e91e16f7e8ec1cdc465aa0dd7db016354 BUILD.md
|
| 4 |
+
9801a13581aec46dbb1adc4eea6d19cf0f0ecf46a27eef28042be87d5b756c0e Bonsai-Local-0.2.3-arm64-Q2_0-bundled-preview.apk
|
| 5 |
+
dc4e6b8646238575c82a0c836795b4560b11145d88d1ccb5353f5f141e64ee35 Bonsai-Local-0.2.3-arm64-small-preview.apk
|
| 6 |
+
414a0d421064e211156016948d1f4e91cb0c69291e9b37659e8eb256773e0127 Bonsai-Local-0.2.3-source.zip
|
| 7 |
+
a6cba85bc92e0cff7a450b1d873c0eaa2e9fc96bf472df0247a26bec77bf3ff9 Bonsai-Local-Apache-2.0.txt
|
| 8 |
+
e10bf6547dd789ceda0d3daaa3693b3cd260b71caafb900d545142e6997753f3 Bonsai-Local-NOTICE.txt
|
| 9 |
+
69849221bfb90053de2134ef5e6d540287b4b98062326492f1f96f5da685524b Bonsai-model-Apache-2.0.txt
|
| 10 |
+
316012fa6094c03c7b0600bec258bffb675a9261d86f37bc86e15763a1fabc99 Bonsai-model-NOTICE.txt
|
| 11 |
+
a6cba85bc92e0cff7a450b1d873c0eaa2e9fc96bf472df0247a26bec77bf3ff9 LICENSE
|
| 12 |
+
609aa80ce006aa0b558c75538759e5f5ba42df37b1b9cde441989848930d758b LICENSES.md
|
| 13 |
+
e10bf6547dd789ceda0d3daaa3693b3cd260b71caafb900d545142e6997753f3 NOTICE
|
| 14 |
+
b36691766c73fc3e8ad883d60c5cea3de5d5ea985b4da93b5dcdb2edf9cc1b42 PROGRESS.md
|
| 15 |
+
2eeeb45eac63a5d0f065830bad0fcdf9c9a2f45fcc47a067da3686e28ec1dffb README.md
|
| 16 |
+
e290618d1502e6e7160b0c6ae5aeefab58f8788cb5c09512810bf1f6d3aa88d8 RELICENSING.md
|
| 17 |
+
b97d67fdeba91c95c83147e6a0322f62aef8e2ba7121f722cd3c8038e4e95bd4 TEST_PLAN.md
|
| 18 |
+
e8b65891929aad4f63a79384c7b520e646f74a61378cec729763fd2fbb711a30 THIRD_PARTY.txt
|
| 19 |
+
bc2c84fea5f69c3776eb617ab0f6bc794dc803834627a96d7ab49b18c541ba5e artifact-inventory.json
|
| 20 |
+
0fdaef6d24a6517045575477a0dfae07a6c304e712a34657def24ffcb54d971b dependencies.json
|
| 21 |
+
94f29bbed6a22c35b992c5c6ebf0e7c92f13b836b90f36f461c9cf2f0f1d010d llama-MIT.txt
|
TEST_PLAN.md
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Standalone validation
|
| 2 |
+
|
| 3 |
+
## Executable checks
|
| 4 |
+
|
| 5 |
+
- `./gradlew :android-app:testDebugUnitTest`: model manifest, checksum, GGUF import and UTF-8 stream cases.
|
| 6 |
+
- `./gradlew :android-app:assembleDebug :android-app:assembleDebugAndroidTest :android-app:lintDebug`.
|
| 7 |
+
- `python3 scripts/check-apk.py [--bundled] APK`: packaged permission/ABI/alignment, JNI package and bundled model integrity checks.
|
| 8 |
+
- `apksigner verify APK`.
|
| 9 |
+
|
| 10 |
+
Inherited host evidence is explicitly named `inherited-*` in tests/results; it is not reported as a new run. Retained native core source hashes establish whether it is unchanged.
|
| 11 |
+
|
| 12 |
+
## Phone checklist (new package)
|
| 13 |
+
|
| 14 |
+
Install org.gdalabs.bonsailocal beside MeshMind. Check English/Japanese and light/dark modes, font scaling, keyboard/navigation insets and long chat scrolling. For the bundled APK, first launch should show local preparation, then Chat should offer Load model & start without requiring import. Load and generate synthetic text with radios off and USB disconnected. Test Stop, background cancellation, New chat confirmation, reset/repeat, restart, unload/reload and low-memory conditions. Record exact output, model hash, settings, time to first token, decode count/rate and peak process RSS. Do not collect private conversations.
|
| 15 |
+
|
| 16 |
+
The small APK should show a clear no-model state and allow local SAF import without broad storage permission. Wrong files/checksums/manifests must fail without activation. Delete model and conversation actions require confirmation. Loaded and installed states must be distinct.
|
| 17 |
+
|
| 18 |
+
Optional developer tests: install the matching test APK then run `adb shell am instrument -w org.gdalabs.bonsailocal.test/androidx.test.runner.AndroidJUnitRunner`. Model inference tests additionally require imported official Q2_0 and `-e runModelTests true`. No attached device/new-package instrumentation pass is claimed until actually executed.
|
THIRD_PARTY.txt
ADDED
|
@@ -0,0 +1,34 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
Bonsai Local — GDA Labs
|
| 2 |
+
Application: Apache-2.0. Copyright 2026 GDA Labs.
|
| 3 |
+
See Bonsai-Local-Apache-2.0.txt and Bonsai-Local-NOTICE.txt.
|
| 4 |
+
|
| 5 |
+
PrismML llama.cpp (MIT), commit 5ae2e169eac202d2f065606539c3ad6ab8b51333
|
| 6 |
+
MIT License
|
| 7 |
+
|
| 8 |
+
Copyright (c) 2023-2026 The ggml authors
|
| 9 |
+
|
| 10 |
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
| 11 |
+
of this software and associated documentation files (the "Software"), to deal
|
| 12 |
+
in the Software without restriction, including without limitation the rights
|
| 13 |
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
| 14 |
+
copies of the Software, and to permit persons to whom the Software is
|
| 15 |
+
furnished to do so, subject to the following conditions:
|
| 16 |
+
|
| 17 |
+
The above copyright notice and this permission notice shall be included in all
|
| 18 |
+
copies or substantial portions of the Software.
|
| 19 |
+
|
| 20 |
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
| 21 |
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
| 22 |
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
| 23 |
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
| 24 |
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
| 25 |
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
| 26 |
+
SOFTWARE.
|
| 27 |
+
|
| 28 |
+
|
| 29 |
+
Official PrismML Ternary Bonsai 2 2B weights: Apache-2.0.
|
| 30 |
+
Bundled in the model-included APK; separately imported in the small APK.
|
| 31 |
+
See Bonsai-model-Apache-2.0.txt and Bonsai-model-NOTICE.txt.
|
| 32 |
+
AndroidX / Jetpack Compose: Apache-2.0.
|
| 33 |
+
Kotlin / kotlinx.coroutines: Apache-2.0.
|
| 34 |
+
|
artifact-inventory.json
ADDED
|
@@ -0,0 +1,142 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
[
|
| 2 |
+
{
|
| 3 |
+
"file": "ARCHITECTURE.md",
|
| 4 |
+
"bytes": 1666,
|
| 5 |
+
"MB_decimal": 0.002,
|
| 6 |
+
"MiB_binary": 0.002,
|
| 7 |
+
"sha256": "ff1a7b166964685fad7eebf3d5e98152b0824bf0ab3ddc917ffb24c13869f6d2"
|
| 8 |
+
},
|
| 9 |
+
{
|
| 10 |
+
"file": "Apache-2.0.txt",
|
| 11 |
+
"bytes": 10173,
|
| 12 |
+
"MB_decimal": 0.01,
|
| 13 |
+
"MiB_binary": 0.01,
|
| 14 |
+
"sha256": "a6cba85bc92e0cff7a450b1d873c0eaa2e9fc96bf472df0247a26bec77bf3ff9"
|
| 15 |
+
},
|
| 16 |
+
{
|
| 17 |
+
"file": "BUILD.md",
|
| 18 |
+
"bytes": 1880,
|
| 19 |
+
"MB_decimal": 0.002,
|
| 20 |
+
"MiB_binary": 0.002,
|
| 21 |
+
"sha256": "15973060e5d4b6d4871086dac8c2cd4e91e16f7e8ec1cdc465aa0dd7db016354"
|
| 22 |
+
},
|
| 23 |
+
{
|
| 24 |
+
"file": "Bonsai-Local-0.2.3-arm64-Q2_0-bundled-preview.apk",
|
| 25 |
+
"bytes": 575608110,
|
| 26 |
+
"MB_decimal": 575.608,
|
| 27 |
+
"MiB_binary": 548.943,
|
| 28 |
+
"sha256": "9801a13581aec46dbb1adc4eea6d19cf0f0ecf46a27eef28042be87d5b756c0e"
|
| 29 |
+
},
|
| 30 |
+
{
|
| 31 |
+
"file": "Bonsai-Local-0.2.3-arm64-small-preview.apk",
|
| 32 |
+
"bytes": 28917976,
|
| 33 |
+
"MB_decimal": 28.918,
|
| 34 |
+
"MiB_binary": 27.578,
|
| 35 |
+
"sha256": "dc4e6b8646238575c82a0c836795b4560b11145d88d1ccb5353f5f141e64ee35"
|
| 36 |
+
},
|
| 37 |
+
{
|
| 38 |
+
"file": "Bonsai-Local-0.2.3-source.zip",
|
| 39 |
+
"bytes": 39513023,
|
| 40 |
+
"MB_decimal": 39.513,
|
| 41 |
+
"MiB_binary": 37.683,
|
| 42 |
+
"sha256": "414a0d421064e211156016948d1f4e91cb0c69291e9b37659e8eb256773e0127"
|
| 43 |
+
},
|
| 44 |
+
{
|
| 45 |
+
"file": "Bonsai-Local-Apache-2.0.txt",
|
| 46 |
+
"bytes": 10173,
|
| 47 |
+
"MB_decimal": 0.01,
|
| 48 |
+
"MiB_binary": 0.01,
|
| 49 |
+
"sha256": "a6cba85bc92e0cff7a450b1d873c0eaa2e9fc96bf472df0247a26bec77bf3ff9"
|
| 50 |
+
},
|
| 51 |
+
{
|
| 52 |
+
"file": "Bonsai-Local-NOTICE.txt",
|
| 53 |
+
"bytes": 458,
|
| 54 |
+
"MB_decimal": 0.0,
|
| 55 |
+
"MiB_binary": 0.0,
|
| 56 |
+
"sha256": "e10bf6547dd789ceda0d3daaa3693b3cd260b71caafb900d545142e6997753f3"
|
| 57 |
+
},
|
| 58 |
+
{
|
| 59 |
+
"file": "Bonsai-model-Apache-2.0.txt",
|
| 60 |
+
"bytes": 10174,
|
| 61 |
+
"MB_decimal": 0.01,
|
| 62 |
+
"MiB_binary": 0.01,
|
| 63 |
+
"sha256": "69849221bfb90053de2134ef5e6d540287b4b98062326492f1f96f5da685524b"
|
| 64 |
+
},
|
| 65 |
+
{
|
| 66 |
+
"file": "Bonsai-model-NOTICE.txt",
|
| 67 |
+
"bytes": 409,
|
| 68 |
+
"MB_decimal": 0.0,
|
| 69 |
+
"MiB_binary": 0.0,
|
| 70 |
+
"sha256": "316012fa6094c03c7b0600bec258bffb675a9261d86f37bc86e15763a1fabc99"
|
| 71 |
+
},
|
| 72 |
+
{
|
| 73 |
+
"file": "LICENSE",
|
| 74 |
+
"bytes": 10173,
|
| 75 |
+
"MB_decimal": 0.01,
|
| 76 |
+
"MiB_binary": 0.01,
|
| 77 |
+
"sha256": "a6cba85bc92e0cff7a450b1d873c0eaa2e9fc96bf472df0247a26bec77bf3ff9"
|
| 78 |
+
},
|
| 79 |
+
{
|
| 80 |
+
"file": "LICENSES.md",
|
| 81 |
+
"bytes": 1550,
|
| 82 |
+
"MB_decimal": 0.002,
|
| 83 |
+
"MiB_binary": 0.001,
|
| 84 |
+
"sha256": "609aa80ce006aa0b558c75538759e5f5ba42df37b1b9cde441989848930d758b"
|
| 85 |
+
},
|
| 86 |
+
{
|
| 87 |
+
"file": "NOTICE",
|
| 88 |
+
"bytes": 458,
|
| 89 |
+
"MB_decimal": 0.0,
|
| 90 |
+
"MiB_binary": 0.0,
|
| 91 |
+
"sha256": "e10bf6547dd789ceda0d3daaa3693b3cd260b71caafb900d545142e6997753f3"
|
| 92 |
+
},
|
| 93 |
+
{
|
| 94 |
+
"file": "PROGRESS.md",
|
| 95 |
+
"bytes": 10817,
|
| 96 |
+
"MB_decimal": 0.011,
|
| 97 |
+
"MiB_binary": 0.01,
|
| 98 |
+
"sha256": "b36691766c73fc3e8ad883d60c5cea3de5d5ea985b4da93b5dcdb2edf9cc1b42"
|
| 99 |
+
},
|
| 100 |
+
{
|
| 101 |
+
"file": "README.md",
|
| 102 |
+
"bytes": 7340,
|
| 103 |
+
"MB_decimal": 0.007,
|
| 104 |
+
"MiB_binary": 0.007,
|
| 105 |
+
"sha256": "2eeeb45eac63a5d0f065830bad0fcdf9c9a2f45fcc47a067da3686e28ec1dffb"
|
| 106 |
+
},
|
| 107 |
+
{
|
| 108 |
+
"file": "RELICENSING.md",
|
| 109 |
+
"bytes": 1146,
|
| 110 |
+
"MB_decimal": 0.001,
|
| 111 |
+
"MiB_binary": 0.001,
|
| 112 |
+
"sha256": "e290618d1502e6e7160b0c6ae5aeefab58f8788cb5c09512810bf1f6d3aa88d8"
|
| 113 |
+
},
|
| 114 |
+
{
|
| 115 |
+
"file": "TEST_PLAN.md",
|
| 116 |
+
"bytes": 1888,
|
| 117 |
+
"MB_decimal": 0.002,
|
| 118 |
+
"MiB_binary": 0.002,
|
| 119 |
+
"sha256": "b97d67fdeba91c95c83147e6a0322f62aef8e2ba7121f722cd3c8038e4e95bd4"
|
| 120 |
+
},
|
| 121 |
+
{
|
| 122 |
+
"file": "THIRD_PARTY.txt",
|
| 123 |
+
"bytes": 1565,
|
| 124 |
+
"MB_decimal": 0.002,
|
| 125 |
+
"MiB_binary": 0.001,
|
| 126 |
+
"sha256": "e8b65891929aad4f63a79384c7b520e646f74a61378cec729763fd2fbb711a30"
|
| 127 |
+
},
|
| 128 |
+
{
|
| 129 |
+
"file": "dependencies.json",
|
| 130 |
+
"bytes": 1067,
|
| 131 |
+
"MB_decimal": 0.001,
|
| 132 |
+
"MiB_binary": 0.001,
|
| 133 |
+
"sha256": "0fdaef6d24a6517045575477a0dfae07a6c304e712a34657def24ffcb54d971b"
|
| 134 |
+
},
|
| 135 |
+
{
|
| 136 |
+
"file": "llama-MIT.txt",
|
| 137 |
+
"bytes": 1078,
|
| 138 |
+
"MB_decimal": 0.001,
|
| 139 |
+
"MiB_binary": 0.001,
|
| 140 |
+
"sha256": "94f29bbed6a22c35b992c5c6ebf0e7c92f13b836b90f36f461c9cf2f0f1d010d"
|
| 141 |
+
}
|
| 142 |
+
]
|
dependencies.json
ADDED
|
@@ -0,0 +1,36 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"prism_llama_cpp": {
|
| 3 |
+
"url": "https://github.com/PrismML-Eng/llama.cpp",
|
| 4 |
+
"commit": "5ae2e169eac202d2f065606539c3ad6ab8b51333",
|
| 5 |
+
"license": "MIT"
|
| 6 |
+
},
|
| 7 |
+
"bonsai_demo": {
|
| 8 |
+
"url": "https://github.com/PrismML-Eng/Bonsai-demo",
|
| 9 |
+
"commit": "db871ea96bffff5ce5609873c412b75d7cd5ba3c",
|
| 10 |
+
"license": "Apache-2.0",
|
| 11 |
+
"use": "research only"
|
| 12 |
+
},
|
| 13 |
+
"official_model": {
|
| 14 |
+
"url": "https://huggingface.co/prism-ml/Ternary-Bonsai-2-2B-gguf",
|
| 15 |
+
"revision": "683f7be2629342a50987627b40881e54761a2430",
|
| 16 |
+
"license": "Apache-2.0"
|
| 17 |
+
},
|
| 18 |
+
"jdk": "17",
|
| 19 |
+
"gradle": "8.14.3",
|
| 20 |
+
"agp": "8.13.2",
|
| 21 |
+
"kotlin": "2.2.10",
|
| 22 |
+
"compileSdk": 36,
|
| 23 |
+
"targetSdk": 36,
|
| 24 |
+
"minSdk": 28,
|
| 25 |
+
"ndk": "28.2.13676358",
|
| 26 |
+
"cmake": "3.31.6",
|
| 27 |
+
"abi": "arm64-v8a",
|
| 28 |
+
"compose_bom": "2025.08.00",
|
| 29 |
+
"coroutines": "1.10.2",
|
| 30 |
+
"known_good_reference": {
|
| 31 |
+
"release": "prism-b10777-e3de715",
|
| 32 |
+
"asset": "llama-prism-b10777-e3de715-bin-ubuntu-x64.tar.gz",
|
| 33 |
+
"sha256": "3f97b6fbec0065fede2be92f05df531c1050636fc2613e1ba0d975249df19713",
|
| 34 |
+
"use": "desktop output reference only"
|
| 35 |
+
}
|
| 36 |
+
}
|
llama-MIT.txt
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
MIT License
|
| 2 |
+
|
| 3 |
+
Copyright (c) 2023-2026 The ggml authors
|
| 4 |
+
|
| 5 |
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
| 6 |
+
of this software and associated documentation files (the "Software"), to deal
|
| 7 |
+
in the Software without restriction, including without limitation the rights
|
| 8 |
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
| 9 |
+
copies of the Software, and to permit persons to whom the Software is
|
| 10 |
+
furnished to do so, subject to the following conditions:
|
| 11 |
+
|
| 12 |
+
The above copyright notice and this permission notice shall be included in all
|
| 13 |
+
copies or substantial portions of the Software.
|
| 14 |
+
|
| 15 |
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
| 16 |
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
| 17 |
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
| 18 |
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
| 19 |
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
| 20 |
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
| 21 |
+
SOFTWARE.
|