Skip to content

MMS Usage & Access to Preview Models

MMS Usage

MMS is a component provided for APLUX board users. It allows users to log in to the Model Farm via the command line to query and download model files. The specific process is as follows:

  1. Login
bash
mms login

# Enter your username: 
# Enter your password:

# A message will appear after entering the correct credentials:
# Login successfully.
  1. Model Query
bash
# List all models
mms list
bash
# Search for a model by name
mms list yolo

Model        Precision  Chipset           Backend
-----        ---------  -------           -------
YOLO-NAS-l   FP16       Qualcomm QCS8550  QNN2.29
YOLO-NAS-l   INT8       Qualcomm QCS6490  QNN2.29
YOLO-NAS-l   INT8       Qualcomm QCS8550  QNN2.29
YOLO-NAS-l   W8A16      Qualcomm QCS6490  QNN2.29
YOLO-NAS-l   W8A16      Qualcomm QCS8550  QNN2.29
YOLO-NAS-m   FP16       Qualcomm QCS8550  QNN2.29
YOLO-NAS-m   INT8       Qualcomm QCS6490  QNN2.29
YOLO-NAS-m   INT8       Qualcomm QCS8550  QNN2.29
  1. Model Download
bash
# -m: Model Name
# -p: Precision
# -c: Chipset
# -b: QNN Version
# Download the yolov6l model with INT8 precision, optimized for the QCS8550 chipset, using the QNN2.23 inference framework.
mms get -m yolov6l -p int8 -c qcs8550 -b qnn2.23


Downloading model from [https://aiot.aidlux.com](https://aiot.aidlux.com) to directory: /var/opt/modelfarm_models

Downloading [yolov6l_qcs8550_qnn2.23_int8_aidlite.zip] ... done! [40.45MB in 375ms; 81.51MB/s]

Download complete!

Acquiring Preview Section Models

Models in the Preview Section of the Model Farm cannot be downloaded directly via the web interface. Developers can download these assets on APLUX boards using the mms command-line tool.

The following example demonstrates how to retrieve the MobileClip2-S3 model.

  1. Login via mms

Run the following command and enter your credentials:

bash
mms login

# Enter your username: 
# Enter your password:

# A successful login will return:
# Login successfully.
  1. Search for Models

Use the mms list command to search for models (supports keyword filtering):

bash
mms list mobileclip

# Expected output:
Model           Precision  Chipset           Backend
-----           ---------  -------           -------
MobileClip-S2   FP16       Qualcomm QCS8550  QNN2.31
MobileClip2-S3  FP16       Qualcomm QCS8550  QNN2.36
  1. Download MobileClip2-S3

Specify the model details using the flags below:

bash
# -m: Model Name
# -p: Precision
# -c: Chipset
# -b: QNN Version
mms get -m MobileClip2-S3 -p fp16 -c qcs8550 -b qnn2.36

# Model assets are downloaded by default to: /var/opt/modelfarm_models