Model Gallery is a model-as-a-service (MaaS) component of PAI that provides state-of-the-art models across large language model (LLM), AI-generated content (AIGC), computer vision (CV), and natural language processing (NLP). This topic describes how to deploy, fine-tune, distill, and build applications with DeepSeek models using Model Gallery.
Before you start
(Required) Activate PAI and create a workspace
PAI workspaces centralize management of computing resources, permissions, and AI assets. Activating PAI creates a default workspace. If none exists, create one manually. OSS is activated by default for storing code, models, and datasets.
(Note) Region and resource specifications
-
Most Alibaba Cloud services, including PAI workspaces and OSS buckets, are region-specific. Some regions are not interconnected, so select your region carefully.
-
Computing resource availability varies by region. If resources are unavailable in one region, check other regions.

-
PAI offers pay-as-you-go and subscription billing. Pay-as-you-go resources are shared across users, so stockouts may occur. Check other regions if needed.
-
PAI offers various resource specifications. Some are restricted to whitelisted users. Consult your sales manager for recommendations.
PAI also supports Lingjun resources with high-speed networks for distributed training or deployment. These are restricted to whitelisted users. Contact your sales manager if needed.

(Optional) Create a VPC for distributed training or deployment
Model deployment
One-click deployment of DeepSeek-V3 and DeepSeek-R1 models.
For quick practice, try DeepSeek-R1-Distill-Qwen-7B. This smaller distilled model has low resource requirements and can be deployed with free trial resources.
Fine-tuning and distillation
Fine-tuning: Train the model with your data to improve accuracy for your use case.
Distillation: Transfer knowledge from a larger teacher model to a smaller student model, retaining accuracy while reducing compute and storage costs.
Fine-tuning success depends on dataset quality, hyperparameters, and experimentation. For many use cases, RAG may be simpler and sufficient.
Build AI application
Develop applications with LangStudio
PAI LangStudio simplifies enterprise LLM application development with built-in templates for RAG, web search, and other AI application types.
-
DeepSeek + Knowledge base: Use LangStudio to create a DeepSeek- and RAG-based Q&A application flow for finance and healthcare
-
DeepSeek + Web Search: Use LangStudio and Alibaba Cloud Information Query Service to build a DeepSeek web search application flow
-
DeepSeek + Knowledge base + Web Search: Use LangStudio and DeepSeek to deploy a RAG- and web search-based chatbot



