Snowflake Model Registry 用户界面¶
备注
模型注册表 Snowsight UI 已在所有部署中正式发布。
Inference Services UI for SPCS Model Serving is in preview in AWS, Azure and GCP commercial deployments only.
在 Snowsight 的 Models 页面上,您可以找到所有机器学习模型。您还可以查看它们的元数据和部署情况。
模型详细信息¶
Models 页面显示了已创建并登录到 Snowflake Model Registry 的模型,或您可以通过 USAGE 或 READ 权限访问的模型。这些模型既有使用 Snowpark ML 开发的模型,也有外部来源的模型(如来自 Hugging Face 的模型)。它还显示了 Cortex Fine-tuned 模型,并可能包括您在未来版本中可以在 Snowflake 中创建的其他模型类型。
To display the Models page, in the navigation menu, select AI & ML » Models. The resulting list contains all the models in the Snowflake Model Registry in all the databases and schemas that your current role has access to.
备注
如果您看不到任何模型,请确保您的角色具有 所需权限。
要打开模型的详细信息页面,请在 Models 列表中选择相应行。详细信息页面显示关键模型信息,包括模型的描述、标签和版本。
要编辑模型描述或删除模型,请选择右上角的 ...。
要打开版本的详细信息页面,请选择模型版本。此页面显示模型版本元数据(例如指标),以及可从 Python 或 SQL 调用的可用方法列表。
要查看调用模型函数的代码,请选择 SQL 或其旁边的 Python 链接。您可以将此代码片段复制到 Snowsight SQL 工作表或 Python 笔记本中。
要添加或修改元数据或删除模型版本,请选择右上角的 ...。
Files 选项卡包含模型版本的底层工件列表。您可以从本页面下载单个文件。仅当用户对模型具有 OWNERSHIP 或 READ 权限时,此页面才可用。
Lineage 选项卡显示模型的完整数据流沿袭信息,包括用于训练模型的任何数据集、来自功能商店的任何功能视图以及源数据表。
Deploy user models¶
You can deploy models to SPCS Model Serving directly from the Model Registry page.
备注
Snowflake Model Registry only supports deploying user models to SPCS Model Serving.
To deploy a model, complete the following steps:
Select a model from the list of models.
From the model details page, navigate to the Versions section.
To open the version details page, select a model version from the list of versions.
From the version details page, select the Deploy button.
From the opened pane, enter a name for the service to be deployed.
Select whether to create a REST API endpoint for the deployed service.
Select a compute pool for the deployed service.
(Optional) To customize performance and resource usage, you can adjust details, such as the number of workers, CPU, and memory, from the advanced settings.
选择 Deploy。
The deployment process can take up to 15 minutes to create the service.
After the deployment is complete, the you can view the service from the Inference Services tab on the main Model Registry page.
模型推理服务¶
您可以在模型注册表 UI 中查看使用 SPCS 模型服务创建的模型推理服务。主模式列表页面会显示为任何模式创建的推理服务的状态。
If you select model name and a model version, you can use the Inference Services tab in the model version details page to see more details about the deployed inference service, as well as suspend the inference service. This also shows the list of functions that the service exposes. And you can see or copy the SQL or Python usage code snippet.
Select Open Details to display service parameters. To view more details about the deployed inference service, select Open Service Details from the service parameters pane. You can also access the service details from the Inference Services tab on the main Model Registry page.
模型监控¶
对于已附加模型监视器的任何模型,您可以使用模型详细信息页面中的模型监视器来直观显示模型监控指标。
选择所需的模型监控器以显示监控仪表板:
选择 Compare 以查看模型版本菜单,选择第二个模型版本与此模型版本进行比较:
监控支持大量的模型准确性、模型偏移和特征偏移指标。要选择计算和显示的指标,请选择 Settings 图标,以选择所需的指标: