---
title: StateTransformer
canonical_url: "https://www.modelscope.cn/models/qualcomm/StateTransformer"
md_url: "https://www.modelscope.cn/models/qualcomm/StateTransformer.md"
repository: qualcomm/StateTransformer
last_updated: 2026-05-20
license: other
library_name:
  - pytorch
frameworks:
  - pytorch
downloads: 48
stars: 0
tags:
  - bu_auto
  - android
---

# StateTransformer

> StateTransformer - qualcomm 在 ModelScope 开源的模型。StateTransformer: Optimized for Qualcomm Devices

qualcomm/StateTransformer 是 ModelScope 魔搭社区上的机器学习模型，采用 other 许可。

- **Repository**: qualcomm/StateTransformer
- **License**: other
- **Tags**: bu_auto, android
- **Downloads**: 48
- **Stars**: 0
- **Last updated**: 2026-05-20

Source: https://www.modelscope.cn/models/qualcomm/StateTransformer

---

![](https://qaihub-public-assets.s3.us-west-2.amazonaws.com/qai-hub-models/models/statetransformer/web-assets/model_demo.png)

# 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](https://github.com/qualcomm/ai-hub-models/blob/main/src/qai_hub_models/models/statetransformer) library to export with custom configurations. More details on model performance across various devices, can be found [here](#performance-summary).

Qualcomm AI Hub Models uses [Qualcomm AI Hub Workbench](https://workbench.aihub.qualcomm.com) to compile, profile, and evaluate this model. [Sign up](https://myaccount.qualcomm.com/signup) 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 |
|---|---|---|---|---|
| TFLITE | float | Universal |  | [Download](https://qaihub-public-assets.s3.us-west-2.amazonaws.com/qai-hub-models/models/statetransformer/releases/v0.54.0/statetransformer-tflite-float.zip)

For more device-specific assets and performance metrics, visit **[StateTransformer on Qualcomm® AI Hub](https://aihub.qualcomm.com/models/statetransformer)**.


### Option 2: Export with Custom Configurations

Use the [Qualcomm® AI Hub Models](https://github.com/qualcomm/ai-hub-models/blob/main/src/qai_hub_models/models/statetransformer) 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](https://github.com/qualcomm/ai-hub-models/blob/main/src/qai_hub_models/models/statetransformer) for usage instructions.

## Model Details

**Model Type:** Model_use_case.driver_assistance

**Model Stats:**
- Model checkpoint: pretrained-mixtral-small
- Input resolution: 1x224x224x58, 1x224x224x58, 1x4x7
- Number of parameters: 90.7M
- Model size (float): 348 MB

## Performance Summary
| Model | Runtime | Precision | Chipset | Inference Time (ms) | Peak Memory Range (MB) | Primary Compute Unit
|---|---|---|---|---|---|---
| StateTransformer | TFLITE | float | Snapdragon® 8 Elite Gen 5 Mobile | 355.927 ms | 214 - 227 MB | CPU
| StateTransformer | TFLITE | float | Snapdragon® 8 Elite Mobile | 369.165 ms | 223 - 236 MB | CPU
| StateTransformer | TFLITE | float | Snapdragon® 8 Gen 3 Mobile | 468.827 ms | 215 - 228 MB | CPU
| StateTransformer | TFLITE | float | Qualcomm® QCS8550 (Proxy) | 579.771 ms | 375 - 475 MB | CPU
| StateTransformer | TFLITE | float | Qualcomm® SA8775P | 751.107 ms | 438 - 449 MB | CPU
| StateTransformer | TFLITE | float | Qualcomm® SA8775P | 751.107 ms | 438 - 449 MB | CPU
| StateTransformer | TFLITE | float | Qualcomm® SA8775P | 751.107 ms | 438 - 449 MB | CPU
| StateTransformer | TFLITE | float | Qualcomm® SA8295P | 616.546 ms | 391 - 400 MB | CPU
| StateTransformer | TFLITE | float | Qualcomm® QCS9075 | 780.078 ms | 238 - 659 MB | CPU
| StateTransformer | TFLITE | float | Snapdragon® 8 Elite For Galaxy Mobile | 369.165 ms | 223 - 236 MB | CPU
| StateTransformer | TFLITE | float | Qualcomm® QCS8450 (Proxy) | 717.885 ms | 413 - 427 MB | CPU
| StateTransformer | TFLITE | float | Qualcomm® SA7255P | 947.163 ms | 440 - 451 MB | CPU

## License
* The license for the original implementation of StateTransformer can be found
  [here](https://github.com/Tsinghua-MARS-Lab/StateTransformer/blob/main/setup.py).



## Community
* Join [our AI Hub Slack community](https://aihub.qualcomm.com/community/slack) to collaborate, post questions and learn more about on-device AI.
* For questions or feedback please [reach out to us](mailto:ai-hub-support@qti.qualcomm.com).
