# Prerequisites to run LiteRT sample applications

The native LiteRT sample application uses the `benchmark_model` sample
application provided by the LiteRT framework, which can benchmark
classification models, such as MobileNet v1 and v2.

Before you begin, ensure that you have the following:

- An Ubuntu 22.04 host computer
- A Qualcomm development kit

To run a model using the sample application, do the following:

1. Download the sample model, corresponding labels, and an example image:

    - [BMP file](https://github.com/sourcecode369/tensorflow-1/tree/master/tensorflow/lite/examples/label_image/testdata/)
    - [MobileNet LiteRT model](https://github.com/emgucv/models/blob/master/mobilenet_v1_1.0_224_float_2017_11_08/mobilenet_v1_1.0_224.tflite)
2. Run the following commands on the host computer:

wget http://download.tensorflow.org/models/mobilenet_v1_2018_08_02/mobilenet_v1_1.0_224_quant.tgz
        Copy to clipboard

tar -xvf mobilenet_v1_1.0_224_quant.tgz
        Copy to clipboard

wget https://storage.googleapis.com/download.tensorflow.org/models/mobilenet_v1_1.0_224_frozen.tgz
        Copy to clipboard

tar -xvf mobilenet_v1_1.0_224_frozen.tgz
        Copy to clipboard

# For SCP, run the following command:
        ssh root@[ip-addr]
        mount -o remount,rw /
        cd /etc
        mkdir artifacts
        exit
        Copy to clipboard

scp mobilenet_v1_1.0_224_quant.tflite root@[ip-addr]:/etc/artifacts
        Copy to clipboard

scp grace_hopper.bmp root@[ip-addr]:/etc/artifacts
        Copy to clipboard

scp mobilenet_v1_1.0_224/labels.txt root@[ip-addr]:/etc/artifacts
        Copy to clipboard

scp mobilenet_v1_1.0_224.tflite root@[ip-addr]:/etc/artifacts
        Copy to clipboard
3. To access the Qualcomm® Adreno™ GPU OpenCL libraries, run the following
command on the device:

export OCL_ICD_FILENAMES=/usr/lib/libOpenCL_adreno.so.1
        Copy to clipboard
4. To enable GPU-based machine learning operations required by Qualcomm AI Runtime
and LiteRT frameworks, run the following command:

ln -sf /usr/lib/libOpenCL.so.1 /usr/lib/libOpenCL.so
        Copy to clipboard

The sample applications use the MobileNet v1 model, which is trained
on an ImageNet data set with 1000 classes as an example. MobileNet v1
demonstrates a model trained to classify an image.

Last Published: May 14, 2026

[Previous Topic
Benchmark a LiteRT model](https://docs.qualcomm.com/bundle/publicresource/80-80022-15B/topics/benchmark-a-litert-model.md) [Next Topic
Benchmark LiteRT on CPU](https://docs.qualcomm.com/bundle/publicresource/80-80022-15B/topics/benchmark-litert-on-cpu.md)