EMR Serverless Spark provides built-in models that you can invoke directly with AI Functions. You can also register external model services that integrate with Alibaba Cloud Model Studio, PAI-EAS, or self-hosted endpoints.
Prerequisite
To use this feature, activate AI Center first.
Built-in models
The following models are built into EMR Serverless Spark. You can invoke them directly with AI Functions without registration.
|
Model service name |
Model name |
|
qwen3.6-plus |
qwen3.6-plus |
|
qwen3.5-plus |
qwen3.5-plus |
|
qwen-plus |
qwen-plus |
|
text-embedding-v4 |
text-embedding-v4 |
|
tongyi-embedding-vision-plus |
tongyi-embedding-vision-plus |
The tongyi-embedding-vision-plus AI Function is available only in the following regions: China (Beijing), China (Shanghai), China (Hangzhou), China (Shenzhen), China (Ulanqab), China (Chengdu), and China (Zhangjiakou).
Add an external model service
If the built-in models do not meet your needs, follow these steps to register an external model service.
-
Go to the model service page.
-
Log in to the E-MapReduce console.
-
In the left-side navigation pane, select .
-
On the Spark page, click the name of the target workspace.
-
On the EMR Serverless Spark page, click in the left-side navigation pane.
-
-
On the Model Service tab, click Create External Model Service and configure the following parameters:
Parameter
Example
Description
model service name
my_qwen_serviceUsed as the
endpointNameinput parameter in a subsequentAI Functioncall. The name must be unique within the workspace and cannot be modified after creation.endpoint
http://12*******39.vpc.cn-hangzhou.pai-eas.aliyuncs.com/api/predict/<ServiceName>/v1Enter the endpoint of the external model service. If you use a PAI-EAS model, append /v1 to the end of the endpoint.
NoteIf the model service provides a public network endpoint, you must configure a network connection with public network access to allow the Spark job to use this model. For more information, see network connection.
model name
Qwen3.5-PlusThe model name to use when you call the service.
model type
ChatSelect
ChatorEmbeddingbased on the deployed model type.API key
nMzI**********************Zg==The API key for the model service.
Description
The latest Qwen multimodal model service
A brief description for easier identification.
-
After you confirm the settings are correct, click create to register the model service.