Dynamic adjustment of resource supply according to users’ resource load is one of the important technologies to achieve efficient management of cloud computing resources. In order to accurately obtain users’ demand for resource load in the future, based on quantum particle swarm optimization (QPSO), a prediction model QVMD_AM_LSTM was proposed to optimize variational mode decomposition (VMD) and to add attention mechanism to AM_LSTM. A comparative experiment was conducted on the open-source dataset cluster-trace-v2018 from Alibaba Cloud. The outcomes show that compared with LSTM, AM-LSTM, GRU-LSTM, Refined-LSTM, Stacked-LSTM and other existing prediction models, the mean square error of the QVMD_AM_LSTM model proposed in this article decreases by 8-14, and the correlation coefficient rises by 6%-11%. QVMD_AM_LSTM model has higher prediction accuracy.