Apply the model card standard
Browse files
README.md
CHANGED
|
@@ -11,15 +11,44 @@ base_model:
|
|
| 11 |
library_name: executorch
|
| 12 |
---
|
| 13 |
|
| 14 |
-
#
|
| 15 |
|
| 16 |
-
This repository hosts the **
|
|
|
|
|
|
|
| 17 |
|
| 18 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 19 |
|
| 20 |
## Compatibility
|
| 21 |
|
| 22 |
-
|
|
|
|
|
|
|
| 23 |
|
| 24 |
-
|
|
|
|
|
|
|
| 25 |
|
|
|
|
|
|
|
|
|
|
|
|
| 11 |
library_name: executorch
|
| 12 |
---
|
| 13 |
|
| 14 |
+
# gemma-4
|
| 15 |
|
| 16 |
+
This repository hosts the **gemma-4** models exported for the
|
| 17 |
+
[React Native ExecuTorch](https://www.npmjs.com/package/react-native-executorch)
|
| 18 |
+
library as ExecuTorch `.pte` programs, ready to run on device.
|
| 19 |
|
| 20 |
+
## Variants
|
| 21 |
+
|
| 22 |
+
| Path | Backend | Precision |
|
| 23 |
+
| --- | --- | --- |
|
| 24 |
+
| `e2b/mlx/gemma4_e2b_mlx_int4.pte` | mlx | int4 |
|
| 25 |
+
| `e2b/vulkan/gemma_4_e2b_vulkan_8da4w.pte` | vulkan | 8da4w |
|
| 26 |
+
| `e2b/xnnpack/gemma_4_e2b_xnnpack_8da4w.pte` | xnnpack | 8da4w |
|
| 27 |
+
|
| 28 |
+
## Repository structure
|
| 29 |
+
|
| 30 |
+
```
|
| 31 |
+
config.json 28 B
|
| 32 |
+
e2b/mlx/config.json 1.2 kB
|
| 33 |
+
e2b/mlx/gemma4_e2b_mlx_int4.pte 2.7 GB
|
| 34 |
+
e2b/tokenizer.json 30.7 MB
|
| 35 |
+
e2b/tokenizer_config.json 21.8 kB
|
| 36 |
+
e2b/vulkan/config.json 1.3 kB
|
| 37 |
+
e2b/vulkan/gemma_4_e2b_vulkan_8da4w.pte 2.4 GB
|
| 38 |
+
e2b/xnnpack/config.json 1.3 kB
|
| 39 |
+
e2b/xnnpack/gemma_4_e2b_xnnpack_8da4w.pte 2.5 GB
|
| 40 |
+
```
|
| 41 |
|
| 42 |
## Compatibility
|
| 43 |
|
| 44 |
+
These files are published for the **ExecuTorch v1.4.1** runtime. ExecuTorch
|
| 45 |
+
gives no forward compatibility guarantee, so an older runtime may fail to load
|
| 46 |
+
them.
|
| 47 |
|
| 48 |
+
To use them in React Native ExecuTorch, pass the model constant shipped in the
|
| 49 |
+
library's model registry to the corresponding task pipeline. See the
|
| 50 |
+
[documentation](https://docs.swmansion.com/react-native-executorch/docs/fundamentals/loading-models).
|
| 51 |
|
| 52 |
+
To load these files in your own ExecuTorch runtime, read the
|
| 53 |
+
[compatibility note](https://github.com/pytorch/executorch/blob/main/runtime/COMPATIBILITY.md)
|
| 54 |
+
first.
|