SmolLM2-360M-Instruct optimized for Arm-based Edge Linux
SmolLM2-360M-Instruct text generation model, optimized with INT8 quantization and exported as an ExecuTorch program for the XNNPACK CPU backend on Arm-based platforms.
This model was optimized using Arm AI Model Optimizer.
Summary
This repository contains an optimized version of HuggingFaceTB/SmolLM2-360M-Instruct for text generation. The model is provided as an ExecuTorch .pte file using the XNNPACK delegate, targeting Edge Linux systems. Precision: INT8 weights (quantization details not recorded in metadata).
Key results
| Area | Result |
|---|---|
| Model format | ExecuTorch (.pte) |
| Target device class | Edge Linux |
| Reference device | Raspberry Pi 5 (16GB) (Cortex-A76, 4 cores) |
| Primary performance result | 3.16x lower p50 latency (446.41 ms to 141.08 ms) |
| Accuracy result | HellaSwag accuracy 47.00% (-2.00 pp vs. baseline) |
| Size / memory result | 1.70x smaller model (327.16 MB to 192.82 MB), 299.45 MB peak memory |
Original model
| Field | Value |
|---|---|
| Original model | HuggingFaceTB/SmolLM2-360M-Instruct |
| Original source | Hugging Face |
| Original developer | Hugging Face |
| Original model card | HuggingFaceTB/SmolLM2-360M-Instruct |
| Original license | Apache-2.0 |
Model files
| File | Description |
|---|---|
smollm2_prefill.pte |
Optimized INT8 ExecuTorch program (prefill) for deployment |
smollm2_decode.pte |
Optimized INT8 ExecuTorch program (decode) for deployment |
metadata.yaml |
Optimized model metadata |
benchmarks/ |
Baseline and optimized benchmark records |
Performance
Performance was measured on the reference configuration below. Results do not guarantee identical performance on every Arm-based system.
Reference configuration
| Field | Value |
|---|---|
| Device / platform | Raspberry Pi 5 (16GB) |
| CPU / accelerator | Cortex-A76, 4 cores, 2.4 GHz |
| OS | Raspberry Pi OS Bookworm |
| Runtime | ExecuTorch 1.1.0 |
| Backend / delegate | XNNPACK |
| Batch size | 1 |
| Prompt length | 512 |
| Generation length | 1 |
| Precision | INT8 weights (quantization details not recorded in metadata) |
| Runs | 30 measured |
Performance results
| Metric | Original / baseline | Optimized | Improvement |
|---|---|---|---|
| p50 end-to-end latency | 446.41 ms | 141.08 ms | 3.16x |
| Prefill time | 4,038.86 ms | 1,943.87 ms | 2.08x |
| Decode throughput | 2.24 tokens/sec | 7.09 tokens/sec | 3.17x |
| Peak memory | 525.83 MB | 299.45 MB | 1.76x less |
| Model size | 327.16 MB | 192.82 MB | 1.70x smaller |
Accuracy
Evaluation setup
| Field | Value |
|---|---|
| Benchmark | HellaSwag |
| Evaluation runtime | ExecuTorch |
Accuracy results
| Metric | Original / baseline | Optimized | Change |
|---|---|---|---|
| HellaSwag accuracy | 49.00% | 47.00% | -2.00 pp |
Users should re-evaluate the model on their own data before production use.
Optimization approach
| Optimization area | Applied? | Notes |
|---|---|---|
| Model conversion | Yes | PyTorch model exported to ExecuTorch (.pte) |
| Quantization | Yes | INT8 weights (quantization details not recorded in metadata) |
| Runtime/backend selection | Yes | XNNPACK |
| Accuracy validation | Yes | HellaSwag |
| Performance validation | Yes | Measured on Raspberry Pi 5 (16GB) |
Intended use
This model is intended for developers evaluating text generation workloads on Arm-based Edge Linux platforms. It is suitable as a reference implementation for benchmarking, prototyping, and integration exploration.
Limitations
- Performance depends on the target device, runtime version, backend support, memory configuration, and system load.
- Quality was measured on HellaSwag only. Task-level behavior on other benchmarks was not evaluated.
- This repository is not a replacement for the original model documentation.
About this version
Original Model: HuggingFaceTB/SmolLM2-360M-Instruct by Hugging Face - Repository
Optimization/conversion:
INT8 quantization and ExecuTorch .pte export with XNNPACK backend support for execution on Arm-based platforms.
Converted/optimized by: Nota AI, using Arm AI Model Optimizer
License: The Original Model and the Optimized Model are subject to Apache-2.0.
This repository contains a converted or optimized version of the Original Model (the "Optimized Model"). The Original Model has been converted or optimized as described above for execution on Arm-based platforms.
No retraining or fine-tuning of the Original Model was performed as part of the conversion or optimization. The conversion or optimization was not intended to change the Original Model's behavior or intended use.
Original Model and Documentation
For information about the Original Model, including its development, training data, intended uses, limitations and other relevant information, please refer to the Original Model repository. Information in that repository was provided by the original developer or other third parties and, unless expressly stated otherwise, has not been independently verified by Arm.
Licenses and Third-Party Terms
Use of the Original Model and the Optimized Model is subject to the applicable licenses, usage restrictions and other terms identified above and in the relevant repositories. Publication of the Optimized Model does not grant any rights beyond those provided under the applicable license terms.
You are responsible for reviewing those terms and ensuring that your use of the Original Model and the Optimized Model is permitted.
Purpose of this Release
The Optimized Model is provided as a reference implementation to demonstrate and evaluate execution and performance on Arm-based systems. It is not a production-ready or supported solution.
Arm's publication of the Optimized Model does not constitute an endorsement or certification of the Original Model or a representation that the Optimized Model is suitable for production use or any particular purpose.
To the fullest extent permitted by applicable law (i) the Optimized Model is provided "as is." Arm makes no representations or warranties that the Original Model, the Optimized Model or their outputs are accurate, safe, secure, non-infringing, legally compliant, suitable for production use or fit for any particular purpose; and (ii) Arm will not be liable for any loss or damage arising from or in connection with the Optimized Model, its use or its outputs.
You are responsible for independently evaluating the Optimized Model, its outputs and its suitability for your intended use, including compliance with applicable legal, regulatory, safety and security requirements.
Arm does not commit to provide ongoing support, maintenance or updates for the Optimized Model. Any use of or reliance on the Optimized Model or its outputs is at your own risk.
- Downloads last month
- 6
Model tree for Arm/smollm2-int8-xnnpack-executorch-raspberrypi5
Base model
HuggingFaceTB/SmolLM2-360M