FEASIBILITY AND PERFORMANCE STUDY OF LLMS ON MOBILE DEVICES FOR SUPPORTING C++ PROGRAMMING LEARNING

Authors

  • Ha Hoang Phuc
  • Nguyen Tam Manh
  • Truong Hoang Man
  • Pham Hoang Phuong
  • Vo Thi Anh Nhi
  • Nguyen Le Van Thanh
  • Cao Thai Phuong Thanh

DOI:

https://doi.org/10.61591/jslhu.22.789

Keywords:

Programming in C , Mobile devices, Quantization, Learn offline programming, DeepSeek, Gemma

Abstract

Learning C++ programming is a complex process that requires mastering both syntax and algorithmic thinking. This study aims to evaluate the feasibility of deploying large language models (LLMs) on mobile devices to support users in learning C++ more effectively. The research involved testing models such as DeepSeek-Coder, Llama, and Gemma, and applying optimization techniques like 4-bit and 8-bit quantization to reduce hardware resource consumption. Experiments measured model accuracy on C++ tasks, memory usage (VRAM, RAM), and inference speed under different optimization levels. Results showed that DeepSeek-Coder-1.3B achieved the highest accuracy among mobile-friendly models, solving around 40% of C++ problems with 3.2GB of VRAM—suitable for smartphones. Meanwhile, DeepSeek-V2-Lite-Instruct (4-bit) reached 64% accuracy but consumed 6GB VRAM, making it more appropriate for laptops. After quantization, the model ran stably on devices such as the Samsung A52S (8GB RAM), requiring approximately 1.9GB of system RAM (excluding OS usage), which ensures acceptable performance on mid-range mobile devices. The findings confirm that deploying LLMs on mobile platforms is feasible and holds significant potential in supporting programming education. In the future, the research team will continue to optimize performance and improve the user interface to enhance the overall learning experience.

References

References

P. Ross, "Sistemas de tutoría inteligente," Intelligent Systems Journal, vol. 3, no. 4, pp. 194–203, 1987.

G.-J. Hwang, "Un modelo de mapa conceptual para el desarrollo de sistemas de tutoría inteligente," Computers & Education, vol. 40, no. 3, pp. 217–235, 2003.

T. Baker y L. Smith, "¿Educ-AI-ción reiniciada? Explorando el futuro de la inteligencia artificial en escuelas y colegios," Futuro de la Educación, 2019.

S. Bayne, "Teacherbot: Interventions in automated teaching," Teaching in Higher Education, vol. 20, no. 4, pp. 455–467, 2015.

"Google responds to DeepSeek with the ultra-lightweight AI model Gemma 3," Dantri, Mar. 2025. [Online]. Available: https://dantri.com.vn/cong-nghe/google-dap-tra-deepseek-bang-mo-hinh-ai-sieu-nhe-gemma-3-20250313105241524.htm.

"Optimizing large language models with LLaMACpp and running on mobile," AI Lab, 2024. [Online]. Available: https://ailab.siu.edu.vn/article/49/toi-uu-mo-hinh-ngon-ngu-lon-voi-llamacpp-va-chay-tren-ien-thoai.

"What is DeepSeek?" Growstack, 2024. [En línea]. Disponible en: https://www.growstack.vn/deepseek-la-gi.

Gemini Team, "Gemma: Open models based on Gemini research and technology," 2024.

Gemini Team, "Gemini: Una familia de modelos multimodales altamente capaces," 2023.

"Informe Técnico de Gemma 3," Google AI, 2024.

"Gemma 3 model overview," Google AI for Developers, 2024. [En línea]. Disponible: https://developers.google.com/gemma3.

LLaMA Team, "The Llama 3 Herd of Models," AI @ Meta, 2024.

"DeepSeek-Coder: Cuando el Modelo de Lenguaje Grande se Encuentra con la Programación," El Auge de la Inteligencia de Código, 2024.

"Application of chatbots in the field of education," VmixGPT, 2024. [Online]. Available: https://vmixgpt.com/ung-dung-chatbot-trong-linh-vuc-giao-duc.

"Application of chatbots in training," OES, 2024. [Online]. Available: https://oes.vn/ung-dung-chatbot-trong-dao-tao.

"A visual guide to quantization," Maarten Grootendorst's Newsletter, 2024. [En línea]. Disponible: https://newsletter.maartengrootendorst.com/p/a-visual-guide-to-quantization.

"Llama.cpp pull request #1684," GitHub, 2024. [En línea]. Disponible en: https://github.com/ggml-org/llama.cpp/pull/1684.

Downloads

Published

2025-09-30

How to Cite

Ha Hoang Phuc, Nguyen Tam Manh, Truong Hoang Man, Pham Hoang Phuong, Vo Thi Anh Nhi, Nguyen Le Van Thanh, & Cao Thai Phuong Thanh. (2025). FEASIBILITY AND PERFORMANCE STUDY OF LLMS ON MOBILE DEVICES FOR SUPPORTING C++ PROGRAMMING LEARNING. Journal of Science Lac Hong University, 1(22), 7–12. https://doi.org/10.61591/jslhu.22.789