# Cube Studio

> A self-hosted, Kubernetes-native MLOps platform that puts notebooks, drag-and-drop pipelines, distributed training, hyperparameter search and model serving behind one web console

- Category: Models & Inference / GPU & Compute Clouds
- Language: Python
- Licence: MIT
- Repository: https://github.com/data-infra/cube-studio
- Website: https://cubestudio.vip
- Canonical page: https://ai-tldr.dev/tools/cube-studio/

## In short

Cube Studio is a self-hosted, Kubernetes-native MLOps platform that puts notebooks, drag-and-drop pipelines, distributed training, hyperparameter search and model serving behind one web console. It sits in the GPU & Compute Clouds category of the Models & Inference tools and is open-source, written in Python and licensed MIT. To get started: get the install scripts.

## Overview

Cube Studio is a one-stop AI platform that an organisation deploys on its own Kubernetes cluster to cover the whole path from data to a running model: online development in notebooks, drag-and-drop pipeline orchestration, multi-node multi-GPU distributed training, hyperparameter search, and model publishing as inference services. It spans classic machine learning, deep learning and large models, and adds LLM fine-tuning (SFT, reward models and reinforcement learning via LLaMA-Factory), multi-node vLLM and MindIE inference, an LLM gateway, private knowledge bases and a model market. The project was started by Tencent Music Entertainment Group under tencentmusic/cube-studio; that repository's README records it was archived on 2026-05-18, and development continues at data-infra/cube-studio.

The platform sits on Kubernetes and schedules CPUs and accelerators across multiple clusters and resource groups. Besides NVIDIA and AMD it manages Chinese accelerators — Huawei Ascend NPUs, Hygon DCUs, Cambricon MLUs, Moore Threads, MetaX, Baidu Kunlun and Biren — with whole-card, shared and vGPU allocation, RDMA over InfiniBand or RoCE, and ARM64 images for the platform components. Multi-tenancy, project groups with RBAC, SSO via OIDC or LDAP, per-project and per-user quotas, metering and daily billing make it usable as an internal compute-rental service, and the README states it runs on Kubernetes, Rancher, KubeSphere, KubeEdge, K3s or TKEStack, including fully offline intranet deployments.

Under the web console the install pulls together well-known open-source pieces: Argo for workflow scheduling, the Kubeflow training operator for distributed jobs, Volcano for batch scheduling, Istio as the ingress gateway, MinIO for object storage, and Prometheus plus Grafana for monitoring. The open-source edition is MIT-licensed and free for commercial use; the project's site also sells a commercial edition, with fees charged only for features exclusive to it, and some built-in pipeline templates are marked as enterprise-edition.

## What it does

- Online development: JupyterLab and VS Code (plus RStudio and Matlab) in the browser, with multiple Python, R and Julia environments, SSH remote access, Git and TensorBoard, image saving, and whole-card, virtual or shared GPU allocation
- Drag-and-drop pipelines built from a template library (data import, feature processing, classic ML, distributed deep learning, model evaluation, registration and deployment), with scheduled runs, backfill, concurrency limits, timeouts and visualised task output; any code image can be registered as a reusable template
- Distributed training on TensorFlow, PyTorch, PaddlePaddle, MindSpore and MXNet with DeepSpeed, Megatron, Colossal-AI, Horovod or MPI acceleration, plus single-machine or distributed hyperparameter search driven by NNI
- LLM work: DeepSeek, ChatGLM, Qwen and Llama LoRA fine-tuning, LLaMA-Factory SFT, reward-model and RL training, OpenCompass evaluation, quantization and pruning
- Zero-code serving for ML, TensorFlow, PyTorch, TensorRT and ONNX models, and single- or multi-node vLLM and MindIE inference behind an OpenAI-compatible LLM gateway with keys, rate limits and token quotas; autoscaling, traffic splitting and mirroring, rolling upgrades and rollback
- Data and labelling: SQLLab querying over MySQL, PostgreSQL, ClickHouse, Hive and Presto, dataset management, and a labelling platform with model-assisted auto-labelling for image, text, audio and multimodal data; an AIHub market of 400+ pre-trained models that deploy, open in a notebook or fine-tune in one click

## Getting started

Cube Studio installs onto an existing Kubernetes cluster from the scripts in the repository's install/kubernetes directory. The wiki lists Kubernetes 1.25–1.31 (1.28 recommended), Docker 1.19+, Ubuntu 20.04/22.04/24.04 or CentOS 7.9/8, and a control machine with at least 16 CPU cores and 32 GB of RAM. Newcomers to Kubernetes can first stand up a cluster with Rancher following install/kubernetes/rancher/readme.md.

1. Get the install scripts

   Clone the repository and work from the Kubernetes install directory. For a multi-machine setup, mount shared storage (NFS, Ceph) at /data/k8s on every node first; a single machine can skip it. GPU machines need their vendor drivers and nvidia-docker2.

```bash
git clone https://github.com/data-infra/cube-studio.git
cd cube-studio/install/kubernetes
```

2. Hand it your cluster's kubeconfig

   Copy the cluster's kubeconfig into install/kubernetes/config. On a dual-NIC machine, switch current-context to the internal-network connection. For an IPVS-mode cluster set K8S_NETWORK_MODE to ipvs, and for a containerd runtime set CONTAINER_CLI to nerdctl, in install/kubernetes/cube/overlays/config/config.py.

```bash
cp ~/.kube/config config
```

3. Run the installer with the internal IP

   Run start.sh on a Kubernetes worker machine, passing the machine's internal (not public) IP. It labels the node, creates namespaces, and deploys MySQL, Redis, Prometheus, Istio, Argo, Volcano and the Cube Studio web front end and back end.

```bash
# run on a k8s worker machine
sh start.sh xx.xx.xx.xx
```

4. Open the console and troubleshoot

   The entry point is the istio-ingressgateway service in the istio-system namespace, on port 80 by default; change that service to NodePort to use another port. If the page does not come up, check that the node carries the platform labels, that PVs and PVCs are bound, and that CoreDNS is healthy.

```bash
kubectl get nodes --show-labels
```

5. Optional: serve it on a domain

   Replace the * in the hosts field of install/kubernetes/virtual.yaml with your domain and re-apply it. Notebooks, internal services and inference services need a clean restart afterwards.

```bash
kubectl apply -f virtual.yaml
```

## When to use it

- Reach for it when a company wants a single self-hosted console where data scientists get notebooks, pipelines, training jobs and inference services on shared GPUs instead of each team running its own scripts
- Reach for it when you must run AI workloads on-premises or fully offline and schedule Chinese accelerators such as Ascend, Hygon, Cambricon or MetaX alongside NVIDIA GPUs
- Reach for it when you need to fine-tune open LLMs with LLaMA-Factory and publish them through multi-node vLLM or MindIE behind a key-managed, rate-limited gateway
- Reach for it when you are running a compute pool as an internal service and need project quotas, metering and billing on top of Kubernetes
