Apply the model card standard
Browse files1234567891011121314151617181920212223242526272829303132---license: apache-2.0pipeline_tag: text-generationtags:- executorchlibrary_name: executorch---# IntroductionThis repository hosts the **Qwen 2.5** models for the [React Native ExecuTorch](https://www.npmjs.com/package/react-native-executorch) library. It includes **unquantized** and **quantized** versions of the Qwen model in `.pte` format, ready for use in the **ExecuTorch** runtime.If you'd like to run these models in your own ExecuTorch runtime, refer to the [official documentation](https://pytorch.org/executorch/stable/index.html) for setup instructions.## CompatibilityIf you intend to use this model outside of React Native ExecuTorch, make sure your runtime is compatible with the **ExecuTorch** version used to export the `.pte` files. For more details, see the compatibility note in the [ExecuTorch GitHub repository](https://github.com/pytorch/executorch/blob/11d1742fdeddcf05bc30a6cfac321d2a2e3b6768/runtime/COMPATIBILITY.md?plain=1#L4). If you work with React Native ExecuTorch, the constants from the library will guarantee compatibility with runtime used behind the scenes.These models were exported using `v0.6.0` version and **no forward compatibility** is guaranteed. Older versions of the runtime may not work with these files.### Repository StructureThe repository is organized into three main directories:- `qwen-2.5-0.5B`- `qwen-2.5-1.5B`- `qwen-2.5-3B`Each directory contains different versions of the model, including **quantized**, and the **original** models.- The `.pte` file should be passed to the `modelSource` parameter.- The tokenizer for the models is available within the repo root, under `tokenizer.json` and `tokenizer_config.json`12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364---license: apache-2.0pipeline_tag: text-generationtags:- executorchlibrary_name: executorch---# qwen-2.5This repository hosts the **qwen-2.5** models exported for the[React Native ExecuTorch](https://www.npmjs.com/package/react-native-executorch)library as ExecuTorch `.pte` programs, ready to run on device.## Variants| Path | Backend | Precision || --- | --- | --- || `0_5b/mlx/qwen_2_5_0_5b_mlx_int4.pte` | mlx | 4w || `0_5b/xnnpack/qwen_2_5_0_5b_xnnpack_bf16.pte` | xnnpack | bf16 || `0_5b/xnnpack/qwen_2_5_0_5b_xnnpack_8da4w.pte` | xnnpack | 8da4w || `1_5b/mlx/qwen_2_5_1_5b_mlx_int4.pte` | mlx | 4w || `1_5b/xnnpack/qwen_2_5_1_5b_xnnpack_bf16.pte` | xnnpack | bf16 || `1_5b/xnnpack/qwen_2_5_1_5b_xnnpack_8da4w.pte` | xnnpack | 8da4w || `3b/mlx/qwen_2_5_3b_mlx_int4.pte` | mlx | 4w || `3b/xnnpack/qwen_2_5_3b_xnnpack_bf16.pte` | xnnpack | bf16 || `3b/xnnpack/qwen_2_5_3b_xnnpack_8da4w.pte` | xnnpack | 8da4w |## Repository structure```0_5b/mlx/config.json 1.3 kB0_5b/mlx/qwen_2_5_0_5b_mlx_int4.pte 510 MB0_5b/xnnpack/config.json 2.3 kB0_5b/xnnpack/qwen_2_5_0_5b_xnnpack_8da4w.pte 398 MB0_5b/xnnpack/qwen_2_5_0_5b_xnnpack_bf16.pte 944 MB1_5b/mlx/config.json 1.3 kB1_5b/mlx/qwen_2_5_1_5b_mlx_int4.pte 1.2 GB1_5b/xnnpack/config.json 2.3 kB1_5b/xnnpack/qwen_2_5_1_5b_xnnpack_8da4w.pte 1.1 GB1_5b/xnnpack/qwen_2_5_1_5b_xnnpack_bf16.pte 2.9 GB3b/mlx/config.json 1.3 kB3b/mlx/qwen_2_5_3b_mlx_int4.pte 2.1 GB3b/xnnpack/config.json 2.3 kB3b/xnnpack/qwen_2_5_3b_xnnpack_8da4w.pte 1.9 GB3b/xnnpack/qwen_2_5_3b_xnnpack_bf16.pte 5.8 GBconfig.json 30 Btokenizer.json 6.7 MBtokenizer_config.json 7.1 kB```## CompatibilityThese files are published for the **ExecuTorch v1.4.1** runtime. ExecuTorchgives no forward compatibility guarantee, so an older runtime may fail to loadthem.To use them in React Native ExecuTorch, pass the model constant shipped in thelibrary's model registry to the corresponding task pipeline. See the[documentation](https://docs.swmansion.com/react-native-executorch/docs/fundamentals/loading-models).To load these files in your own ExecuTorch runtime, read the[compatibility note](https://github.com/pytorch/executorch/blob/main/runtime/COMPATIBILITY.md)first.
README.md+52-20