StateTransformer: Optimized for Qualcomm Devices
StateTransformer is a transformer-based model designed for trajectory prediction in self-driving scenarios. It integrates rasterized map data, agent context, and temporal dynamics to generate accurate future trajectories.
This repository contains pre-exported model files optimized for Qualcomm® devices. You can use the Qualcomm® AI Hub Models library to export with custom configurations. More details on model performance across various devices, can be found here.
Qualcomm AI Hub Models uses Qualcomm AI Hub Workbench to compile, profile, and evaluate this model. Sign up to run these models on a hosted Qualcomm® device.
Getting Started
There are two ways to deploy this model on your device:
Option 1: Download Pre-Exported Models
Below are pre-exported model assets ready for deployment.
| Runtime | Precision | Chipset | SDK Versions | Download |
|---|---|---|---|---|
| ONNX | float | Universal | QAIRT 2.51, ONNX Runtime 1.30.0 | Download |
| TFLITE | float | Universal | Download |
For more device-specific assets and performance metrics, visit StateTransformer on Qualcomm® AI Hub.
Option 2: Export with Custom Configurations
Use the Qualcomm® AI Hub Models Python library to compile and export the model with your own:
- Custom weights (e.g., fine-tuned checkpoints)
- Custom input shapes
- Target device and runtime configurations
This option is ideal if you need to customize the model beyond the default configuration provided here.
See our repository for StateTransformer on GitHub for usage instructions.
Model Details
Model Type: Model_use_case.driver_assistance
Model Stats:
- Input resolution: 1x224x224x58, 1x224x224x58, 1x4x7
- Model checkpoint: pretrained-mixtral-small
- Model size (float): 348 MB
- Number of parameters: 90.7M
Performance Summary
| Model | Runtime | Precision | Chipset | Inference Time (ms) | Peak Memory Range (MB) | Primary Compute Unit |
|---|---|---|---|---|---|---|
| StateTransformer | ONNX | float | Snapdragon® 8 Elite Gen 5 For Galaxy Mobile | 193.068 ms | 178 - 4348 MB | NPU |
| StateTransformer | ONNX | float | Snapdragon® 8 Elite For Galaxy Mobile | 187.542 ms | 170 - 4270 MB | NPU |
| StateTransformer | ONNX | float | Snapdragon® X2 Elite | 184.326 ms | 278 - 278 MB | NPU |
| StateTransformer | ONNX | float | Snapdragon® X Elite | 415.45 ms | 278 - 278 MB | NPU |
| StateTransformer | ONNX | float | Qualcomm® Dragonwing™ IQ-8275 | 307.686 ms | 100 - 142 MB | NPU |
| StateTransformer | ONNX | float | Qualcomm® Dragonwing™ IQ-9075 | 281.325 ms | 106 - 147 MB | NPU |
| StateTransformer | ONNX | float | Qualcomm® Dragonwing™ IQ-X7181 | 415.45 ms | 278 - 278 MB | NPU |
| StateTransformer | ONNX | float | Qualcomm® Dragonwing™ Q-8750 | 187.542 ms | 170 - 4270 MB | NPU |
| StateTransformer | ONNX | float | Snapdragon® 8 Elite Gen 6 Mobile | 163.594 ms | 101 - 4427 MB | NPU |
| StateTransformer | TFLITE | float | Snapdragon® 8 Elite For Galaxy Mobile | 953.274 ms | 241 - 3181 MB | CPU |
| StateTransformer | TFLITE | float | Snapdragon® 8 Gen 3 Mobile | 913.992 ms | 193 - 4257 MB | CPU |
| StateTransformer | TFLITE | float | Qualcomm® Dragonwing™ IQ-8275 | 1571.614 ms | 294 - 813 MB | CPU |
| StateTransformer | TFLITE | float | Qualcomm® Dragonwing™ QCS8550 (Proxy) | 983.593 ms | 294 - 617 MB | CPU |
| StateTransformer | TFLITE | float | Qualcomm® SA8775P | 1273.342 ms | 294 - 4058 MB | CPU |
| StateTransformer | TFLITE | float | Qualcomm® SA8650P | 1273.342 ms | 294 - 4058 MB | CPU |
| StateTransformer | TFLITE | float | Qualcomm® SA8255P | 1273.342 ms | 294 - 4058 MB | CPU |
| StateTransformer | TFLITE | float | Qualcomm® QCS8450 | 808.833 ms | 450 - 470 MB | CPU |
| StateTransformer | TFLITE | float | Qualcomm® Dragonwing™ IQ-9075 | 1251.821 ms | 292 - 812 MB | CPU |
| StateTransformer | TFLITE | float | Qualcomm® Dragonwing™ Q-8750 | 953.274 ms | 241 - 3181 MB | CPU |
| StateTransformer | TFLITE | float | Qualcomm® SA7255P | 1573.106 ms | 295 - 304 MB | CPU |
| StateTransformer | TFLITE | float | Qualcomm® SA8295P | 952.006 ms | 294 - 3944 MB | CPU |
| StateTransformer | TFLITE | float | Snapdragon® 8 Elite Gen 6 Mobile | 527.521 ms | 293 - 3829 MB | CPU |
License
- The license for the original implementation of StateTransformer can be found here.
Community
- Join our AI Hub Slack community to collaborate, post questions and learn more about on-device AI.
- For questions or feedback please reach out to us.
