Abstract
In the process of integration of AI teaching into various disciplines, theoretical teaching and practical teaching are given equal importance, while the experimental teaching of AI has specific and complex requirements for the experimental environment. This paper introduces the practice and reflection on the method of microservice cluster transformation into AI experimental teaching platform based on the traditional laboratory, which makes full use of the existing laboratory hardware resources, fully introduces K8s, Docker and other open source technology solutions, creates a full process experimental environment for AI teaching that can fully improve the efficiency of teaching and research without affecting the daily teaching activities, optimizes the operation mechanism and service mode, realize the on-demand customization of teaching resources, improve teaching governance, and provide useful ideas and methods for the construction of experimental teaching environment of artificial intelligence.
Introduction
As "AI + X" becomes a core requirement across diverse academic disciplines, universities face a significant bottleneck: AI education requires specialized, high-performance computing environments that traditional computer labs are ill-equipped to handle. Traditional labs often suffer from rigid, "siloed" resources where hardware sits idle if a student is not physically present at a specific terminal. This paper presents a case study from the Southwest University of Finance and Economics on transforming a traditional 50-terminal computer lab into a flexible, "all-weather" AI experimental platform using cloud-native orchestration.
Methodology and System Architecture
The core of the solution involves transitioning from static workstations to a microservice cluster architecture. The researchers utilized Kubernetes (K8s) for orchestration and Docker for containerization, allowing complex AI frameworks like TensorFlow and PyTorch to be deployed as ready-to-use images.
Hybrid Infrastructure and Storage
The platform maintains 50 physical terminals as computing nodes while moving the K8s master control plane to a stable virtual machine in the university's data center. To handle massive datasets, existing Storage Area Network (SAN) hardware was bridged to the cluster by mounting Logical Unit Numbers (LUNs) to a host VM, which then served data via Network File System (NFS) to the containers.
GPU Virtualization and Resource Partitioning
A critical technical step in maximizing capacity is GPU virtualization. Rather than assigning one full GPU to a single student, the team implemented partitioning to increase the "seat count."
As illustrated in the comparison of solutions (Figure 1), the researchers selected the TKE (Tencent Kubernetes Engine) GPU manager. Unlike proprietary solutions like Nvidia vCS which require subscription fees, TKE is open-source and provides fine-grained segmentation (down to 0.1 of a card or 100MB of video memory). In this implementation, each physical 8GB NVIDIA GPU was split into two 4GB virtual GPUs (vGPUs), effectively doubling the lab's concurrent user capacity.
Key Results and Insights
The transformation yielded several significant improvements in teaching efficiency:
- Capacity Doubling: Through vGPU partitioning, the platform supports 100 concurrent users on only 50 physical GPU cards.
- Deployment Speed: The system can transition from a standard lab setup to a full AI experimental platform in approximately ten minutes, with new environments created in seconds.
- Ubiquitous Learning: Students interact with the cluster via web-based Jupyter notebooks or VNC for GUI applications, enabling access from any device and allowing long-running training jobs to continue overnight without physical supervision.
- Resource Recycling: The project demonstrates that existing lab hardware can be "recycled" into a distributed cloud, avoiding the massive capital expenditure of a new data center.
Conclusion and Future Work
While the platform successfully provides high-performance compute resources, future work will focus on enhancing pedagogical intelligence. This includes integrating automated grading plugins for Jupyter and expanding the library of containerized research software. Additionally, maintaining an open-source stack requires dedicated technical oversight for security audits and vulnerability patching to ensure long-term stability.
Summary updated