File size: 2,990 Bytes
14abcef
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
---
license: other
tags:
  - build-artifacts
  - not-a-dataset
---

# MobileTransformers — build artifacts

**This is not a dataset.** It is the set of build inputs that cannot live in git, published here so
that a `git clone` of
[MobileTransformers](https://github.com/martinkorelic/mobiletransformers) can provision itself.

Nothing here is downloaded by the Android app or by any model package. These files are consumed by
one script, at development time:

```bash
scripts/fetch_native_deps.sh              # the natives bundle — required to build the Android SDK
TRAINING=1 scripts/fetch_native_deps.sh   # + the ORT-training wheel, for exporting a training stage
SYMBOLS=1  scripts/fetch_native_deps.sh   # + unstripped binaries, for symbolicating a native crash
```

That script reads `third_party/android/manifest.json`, downloads what is missing, checks the archive
sha256, unpacks it, and then checks every unpacked file's sha256 individually. Both halves matter: the
archive hash proves the download, the per-file hashes prove the unpack, and a half-populated
`jniLibs/` is the failure mode that produces a linker error naming a symbol rather than a file.

## Contents

| file | size | needed for |
| --- | --- | --- |
| `mobiletransformers-natives-0.2.0-arm64-v8a.tar.zst` | 63 MB | **Required** to build the Android SDK: ONNX Runtime (training build), the GenAI engine, the tokenizer static libs, and vendored headers. |
| `onnxruntime_training-1.23.0+cpu-cp312-cp312-linux_x86_64.whl` | 632 MB | Only to export a **training** stage. Source-built, cp312/linux_x86_64 only — it is not on PyPI. |
| `mobiletransformers-natives-0.2.0-arm64-v8a-debug-symbols.tar.zst` | 261 MB | Optional. The unstripped originals of the shipped `.so` files. Android's build strips them at packaging, so these cost nothing at runtime and are the only way to read a native stack trace. |

Every sha256, size, provenance and role is recorded in
[`third_party/android/manifest.json`](https://github.com/martinkorelic/mobiletransformers/blob/main/third_party/android/manifest.json)
and
[`third_party/onnxruntime/manifest.json`](https://github.com/martinkorelic/mobiletransformers/blob/main/third_party/onnxruntime/manifest.json).
Verify by hand with `sha256sum` if you prefer; the fetch script does it for you either way.

## Licensing

These are builds of third-party projects — ONNX Runtime, onnxruntime-genai, tokenizers-cpp, protobuf
— each under its own upstream licence. See
[`THIRD_PARTY_NOTICES.md`](https://github.com/martinkorelic/mobiletransformers/blob/main/THIRD_PARTY_NOTICES.md).
The `license: other` tag above reflects that this repo is a mixed bundle of upstream artifacts rather
than a single licensed work.

## arm64-v8a only

There is no x86_64 build, so the SDK does not run on a standard Android emulator. `libonnxruntime.so`
and the tokenizer archives were never built for it; restoring x86_64 means building ONNX Runtime
Training and tokenizers-cpp for that ABI first.