Document AI: CREATE MODEL privilege required to create, publish, and train model builds¶
As part of Snowflake’s continued commitment to enable object sharing across Snowflake, Document AI will store any published or trained models within the model registry to enable replicating or cloning the models between schemas, databases, and accounts. This change requires you to grant the CREATE MODEL privilege on the schema to the account role to continue using the <model_build_name>!PREDICT method.
Note
Storing Document AI models in the model registry is planned to be introduced in April 2025, before which, replicating or cloning the models is not supported.
Behavior change¶
- Before the change:
To create, publish, and train a Document AI model build, you must use a role that has the following privileges:
GRANT CREATE SNOWFLAKE.ML.DOCUMENT_INTELLIGENCE ON SCHEMA doc_ai_db.doc_ai_schema TO ROLE doc_ai_role;
- After the change:
To create, publish, and train a Document AI model build, you must use a role that has the following privileges:
GRANT CREATE SNOWFLAKE.ML.DOCUMENT_INTELLIGENCE ON SCHEMA doc_ai_db.doc_ai_schema TO ROLE doc_ai_role; GRANT CREATE MODEL ON SCHEMA doc_ai_db.doc_ai_schema TO ROLE doc_ai_role;
Actions required¶
To continue working with the existing Document AI models, grant the additional privilege to the account role, as shown in the following example:
GRANT CREATE MODEL ON SCHEMA doc_ai_db.doc_ai_schema TO ROLE doc_ai_role;
To create a new Document AI model build, you must use a role that has the required privileges. For more information, see Setting up Document AI.
Additional notes¶
There are no changes to the <model_build_name>!PREDICT method itself.
You won’t be able to replicate a model build (which includes the model, the data values to be extracted, and the documents uploaded to test and train the model). This change only affects the model that was either published or trained out of a model build.
You must grant the CREATE MODEL privilege on any database and schema to which you replicate a model.
Ref: 1904