Deploy RecBole on a GPU Cloud to Learn Recommendation Algorithms

This guide explains how to launch the RecBole recommendation system image on the SumW GPU cloud, covering its key features, required setup steps, dependency installation tips, and a one‑line command to run a baseline model on an MLU accelerator.

SuanNi
SuanNi
SuanNi
Deploy RecBole on a GPU Cloud to Learn Recommendation Algorithms

RecBole overview

RecBole is a PyTorch‑based recommendation system library aimed at researchers. It implements 94 recommendation models covering general, sequential, context‑aware and knowledge‑based categories and provides a unified data file format that supports 44 benchmark datasets.

Generic and extensible data structures enable unified handling of diverse recommendation datasets.

Comprehensive collection of benchmark models and datasets.

GPU‑accelerated implementations use a series of optimization techniques to improve efficiency.

Supports a wide range of standard evaluation metrics for large‑scale benchmarking.

Running RecBole on SumW GPU platform (MLU accelerator)

The SumW GPU platform offers a pre‑built RecBole‑MLU Docker image. After launching a JupyterLab instance, the following steps install and run RecBole on the Cambricon MLU accelerator.

Extract the provided source package and enter the directory:

tar -zxvf RecBole_MLU_Ready.tar.gz
cd RecBole_mlu

Configure pip to use the Aliyun mirror (required on mainland China to avoid download stalls):

pip config set global.index-url https://mirrors.aliyun.com/pypi/simple/

Install dependencies while preventing the default PyTorch package from overwriting the MLU‑optimized torch:

# Install all non‑torch dependencies
cat requirements.txt | grep -v "torch" | xargs pip install

# Install missing visualization and logging packages
pip install colorlog==4.7.2 plotly tabulate tensorboard texttable colorama==0.4.4

# Install RecBole without dependency checks
pip install -e . --no-deps

Run a baseline model with a single command. The --use_gpu=True flag maps computation to the MLU card; --gpu_id=0 selects the first accelerator:

python run_recbole.py --model=BPR --dataset=ml-100k --use_gpu=True --gpu_id=0

If the console displays the large RecBole logo and the progress bar advances rapidly, the MLU accelerator is operating at full speed.

Original Source

Signed-in readers can open the original source through BestHub's protected redirect.

Sign in to view source
Republication Notice

This article has been distilled and summarized from source material, then republished for learning and reference. If you believe it infringes your rights, please contactadmin@besthub.devand we will review it promptly.

recommendation systemtutorialPyTorchGPU cloudMLURecBole
SuanNi
Written by

SuanNi

A community for AI developers that aggregates large-model development services, models, and compute power.

0 followers
Reader feedback

How this landed with the community

Sign in to like

Rate this article

Was this worth your time?

Sign in to rate
Discussion

0 Comments

Thoughtful readers leave field notes, pushback, and hard-won operational detail here.