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.45, ONNX Runtime 1.27.1 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 Gen 3 Mobile 944.694 ms 78 - 3990 MB NPU
StateTransformer ONNX float Qualcomm® Dragonwing™ Q-8750 817.475 ms 91 - 3003 MB NPU
StateTransformer ONNX float Snapdragon® 8 Elite Mobile 817.475 ms 91 - 3003 MB NPU
StateTransformer TFLITE float Snapdragon® 8 Gen 3 Mobile 552.968 ms 391 - 405 MB CPU
StateTransformer TFLITE float Snapdragon® 8 Gen 1 Mobile 804.586 ms 362 - 381 MB CPU
StateTransformer TFLITE float Qualcomm® Dragonwing™ IQ-8275 1021.555 ms 453 - 874 MB CPU
StateTransformer TFLITE float Qualcomm® Dragonwing™ IQ-8275 988.67 ms 441 - 452 MB CPU
StateTransformer TFLITE float Qualcomm® Dragonwing™ QCS8550 (Proxy) 690.408 ms 163 - 572 MB CPU
StateTransformer TFLITE float Qualcomm® SA8775P 791.874 ms 444 - 459 MB CPU
StateTransformer TFLITE float Qualcomm® SA8650P 791.874 ms 444 - 459 MB CPU
StateTransformer TFLITE float Qualcomm® SA8255P 791.874 ms 444 - 459 MB CPU
StateTransformer TFLITE float Qualcomm® QCS8450 804.586 ms 362 - 381 MB CPU
StateTransformer TFLITE float Qualcomm® Dragonwing™ IQ-9075 817.255 ms 249 - 670 MB CPU
StateTransformer TFLITE float Qualcomm® Dragonwing™ Q-8750 429.48 ms 313 - 323 MB CPU
StateTransformer TFLITE float Qualcomm® SA7255P 988.67 ms 441 - 452 MB CPU
StateTransformer TFLITE float Qualcomm® SA8295P 645.822 ms 368 - 377 MB CPU
StateTransformer TFLITE float Snapdragon® 8 Elite Mobile 429.48 ms 313 - 323 MB CPU
StateTransformer TFLITE float Snapdragon® 8 Elite Gen 5 Mobile 293.77 ms 361 - 376 MB CPU

License

  • The license for the original implementation of StateTransformer can be found here.

Community

Downloads last month

-

Downloads are not tracked for this model. How to track
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support