Dataford
Interview QuestionsInterview GuidesExperiencesCoaching
New
Pricing
Get started
Dataford
Popular roles
Software EngineerData AnalystData ScientistData EngineerBusiness AnalystAI EngineerMachine Learning EngineerProduct Manager
Browse
Browse All RolesEvery role hub, from analyst to MLBrowse All CompaniesCompany-specific interview loopsAll Interview GuidesThe full guide library
Top questions by role
Software EngineerData AnalystData ScientistData EngineerBusiness AnalystAI EngineerMachine Learning EngineerProduct Manager
Top questions by skill
SQLPythonStatisticsMachine LearningA/B TestingSystem DesignGenerative AIProduct SenseMetricsBehavioral
Browse all questions →Try a mock interview
Experiences
Practice
Mock InterviewsTimed interview simulations with feedbackCoaching1:1 coaching with people at your target companiesSuccess PathYour 6-week structured planModulesCurated lessons by topicWebinarsTalks from ex-Big Tech data leadsPlaygroundA free-form scratch editor
Learn
BlogInterview strategy and career adviceTech Job Market ReportHiring trends across data and AI rolesFor UniversitiesDataford for career centersAbout DatafordWho we are and how we build
Pricing
Build my plan

Deploy On-Device LLM for Android

MediumNLP00:00
Practice interviewer
In session
5 left
00:00

Your question is Deploy On-Device LLM for Android. Take a moment with it on the right.

Talk me through your thinking if you like. When you're confident, submit your answer and I'll grade it like a real screen (7/10 or better passes).

You need to log in / sign up to chat or submit.

Problem

Business Context

Nova Keyboard wants to ship an on-device LLM feature for smart reply and short-form rewriting inside its Android app. The NLP team must identify the main constraints of running an LLM locally on consumer phones and design mitigations that preserve usability, privacy, and battery life.

Data

You are given 180,000 anonymized mobile prompts and completion logs collected from beta users, plus device telemetry from 35 Android models.

  • Task framing: classify each prompt-device session into the dominant deployment bottleneck and recommend a mitigation strategy
  • Text length: 5-220 tokens per prompt, median 38
  • Language: English only
  • Labels: memory, latency, battery, thermal, storage, privacy/network
  • Distribution: moderately imbalanced; latency and memory together account for ~52%

Success Criteria

A good solution should achieve macro-F1 >= 0.82, recall >= 0.88 on memory and latency, and generate recommendations that are technically actionable for Android deployment.

Constraints

  • Inference must complete in < 800 ms for 32-token generation on mid-tier devices
  • Model package size must stay < 1.2 GB after compression
  • No raw user text may leave the device
  • The solution should account for heterogeneous CPU/GPU/NPU availability across Android devices

Requirements

  1. Build an NLP pipeline that classifies deployment constraints from device-session text logs.
  2. Propose preprocessing for mobile telemetry, prompts, and system diagnostics.
  3. Fine-tune a modern transformer baseline in Python.
  4. Explain mitigation strategies such as quantization, distillation, KV-cache limits, and token budget control.
  5. Define an evaluation plan covering model quality and practical on-device behavior.