AI0-001 AI Infrastructure and Technologies Practice Question
An organisation needs to deploy PyTorch models on mobile devices with minimal latency. Which framework or tool should they use to convert and optimise the model for on-device inference?
⚠ Common exam trap
CompTIA often tests the misconception that any model can be easily converted to any mobile framework, but the trap here is that TorchScript is the only native, optimized path for PyTorch models, while options like TensorFlow Lite or ONNX Runtime require non-trivial cross-framework conversions that increase latency and complexity.
Answer choices
Why each option matters
Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.
Correct answer & explanation
✓
TorchScript
TorchScript is the correct choice because it is PyTorch's native model serialization and optimization format, designed specifically for deploying PyTorch models on mobile devices with minimal latency. It allows you to trace or script a PyTorch model into a static graph that can be run efficiently on iOS and Android via the PyTorch Mobile runtime, without the overhead of Python interpreter.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✗
TensorFlow Lite
Why it's wrong here
TensorFlow Lite is for TensorFlow models; PyTorch models need a different converter.
- ✗
Keras for mobile
Why it's wrong here
Keras is a high-level API typically used with TensorFlow, not directly applicable to PyTorch models.
- ✗
ONNX Runtime with Core ML conversion
Why it's wrong here
This is possible but not the direct PyTorch path; TorchScript is the native solution.
- ✓
TorchScript
Why this is correct
TorchScript is PyTorch's own tool for model serialisation and optimisation for mobile deployment.
About these practice questions
This AI0-001 question is part of Courseiva's 754-question bank — original exam-style content with full explanations and wrong-answer analysis, never real exam questions or exam dumps. Learn why practice questions differ from exam dumps →
JA
Written by Johnson Ajibi, MSc IT Security
Senior Network & Security Engineer · founder of Courseiva
This AI0-001 practice question is part of Courseiva's free CompTIA certification practice question bank. Courseiva provides original exam-style practice questions with explanations, topic-based practice, mock exams, readiness tracking, and study analytics to help learners prepare for the AI0-001 exam.