Generating key points…
Answers are grounded in this paper and cite their sources.
Deploying Large Language Models (LLMs) on memory-constrained portable and edge devices remains a fundamental challenge, as full in-DRAM residency of model weights is often infeasible on smartphones, embedded systems, and other resource-limited hardware. This paper proposes an Adaptive Dual-Mode Transformer Inference framework that dynamically switches between two execution strategies based on available system memory: a Full-RAM mode, loading the entire model for maximum inference speed when resources permit, and a Layer-Streaming mode, sequentially loading transformer layers from disk or flash storage on demand when memory is insufficient. Unlike static offloading or fixed compression schemes, the framework performs runtime memory-aware mode selection, enabling a single deployment to scale across heterogeneous hardware without separate model variants. We evaluate tradeoffs in memory footprint, disk I/O overhead, and inference latency/throughput across both modes on portable, fully offline devices. The Results show that dual-mode approach sustains usable throughput under memory pressure while reverting to highspeed full-RAM execution when resources allow, offering a practical solution for on-device LLM deployment.
No takes yet. Share an insight, caveat, or question.
A 2026 study studied this question.
Synapse has enriched 10 related papers. Consider them for comparative context: