Explore related resources

Find more information about the topics in this Learning Path:

Give feedback

How would you rate this Learning Path?

Review frequently asked questions

AI-assisted

These FAQs were drafted with an approved AI-assisted workflow and reviewed by Arm contributors before publication. Human technical review remains part of the process so the final page reflects engineering rigor, accuracy, and Arm editorial standards.

Close
?
How do I know adb is ready to use my phone?
Run adb devices -l and look for your device marked device with a serial number. If it shows unauthorized, unlock the phone and accept the USB debugging prompt. On Windows, you might also need the phone manufacturer’s USB driver.
Where should I place the model files on the device?
The application loads models from filesDir/models/<model-id>/. For development, stage the package under /data/local/tmp and use the run-as command to copy it into the application’s private directory.
Which identifiers do I use to run the starter application?
Use ANDROID_PACKAGE=com.arm.learningpath.texttotext and MODEL_ID=smollm2-360m-instruct-8da4w-xnnpack-executorch. Keep the identifiers consistent with the entries in model_catalog.json.
How do I switch between ExecuTorch and ONNX Runtime GenAI adapters?
ui/MainActivity.kt reads the selected entry from model_catalog.json, and inference/RuntimeRunnerFactory.kt creates the adapter named by its runtime field. Select the validated catalog entry for the runtime you want to use.
How do I confirm that the sample runs offline?
Enable airplane mode and run the prompts again. Expect relevant, readable text without prompt echoes, role markers, tokenizer control tokens, or runtime diagnostics. This confirms that the model generates responses on-device without a network connection.

Share

Tell others about this Learning Path.

Return to Mobile, Graphics, and Gaming