# Set up a batch deployment A [batch deployment](../../model-integration/objectives/index.md#batch-deployments) is a special pipeline configured inside a modeling objective which allows data to be run through a model that outputs results to a Foundry dataset. These output datasets can be managed on a build schedule. ## Prerequisites Before creating a new batch deployment, there are two prerequisites: 1. There must be an existing release inside the objective with the corresponding [environment tag](../../model-integration/objectives/index.md#releases) of either staging or production. 2. Select an input dataset to run through your models. Ideally this dataset should be carefully maintained and updated regularly—it represents the new information of the problem you are trying to solve. ## Create deployment To create a new batch deployment, navigate to the **Deployments** section at the bottom of your modeling objective home page, and select **+ Create deployment** in the top right. Fill out the details and relevant information inside the prompts. Select your deployment environment based off of requirement #1, choose the input dataset decided upon in requirement #2, and choose a location and name for the output dataset. Alternatively, instead of creating a new output dataset, an existing dataset can also be chosen as the output dataset. ![create deployment](../../../assets/5d81f170e59d43b9ccaf1134de21579d461be25eabb2e3613a87f202102b05c7.webp) :::callout{theme="neutral"} Direct set up of batch deployment in Modeling Objectives is only compatible with models using a single tabular dataset input. If your model adapter requires several inputs, you can set up batch inference [in a Python transform](../../integrate-models/model-asset-code-repositories/index.md#run-inference-in-python-transforms) instead. ::: ## Resource configuration While creating a new batch deployment, you can configure the resources required for that individual deployment. Resources are configured via [Spark profiles](../../optimizing-pipelines/apply-spark-profiles/index.md), which will be applied to the Spark environment during inference. If creating a new batch deployment, a Spark profile selector will be presented upon initial deployment configuration. The behavior matches that of Python transforms. If omitted, no Spark profiles will be configured for the deployment, and a default resource profile will be used. ![configure batch deployment](../../../assets/755bc30e44117657a93ff84c660a3e7f33762dba23d320db07103d9e32a2fc17.webp) To edit the configured Spark profiles on an existing batch deployment, navigate to the **Deployments** section in your modeling objective, select your deployment from the listed deployments, and select the edit button under **Runtime configuration** to edit the Spark profiles. This will automatically update the deployment. ![edit batch deployment configuration](../../../assets/b73fac3c9735f204cce89e151ac23c1a0ac98ed8ac8c80f3f2fcdbb7954cc755.webp) ## Automatically build deployment output To navigate to the deployment view, select the new deployment. ![view deployment](../../../assets/d311250408ea82d606b61445ff216ed58614c31bb8feead37b5def96e82869ba.webp) To navigate to the output dataset, select the dataset link in the deployment details view. ![open deployment output dataset](../../../assets/cb9d4a1c6e753b2e687020a53f7dbce5ae1d61889a754f6227c224ecf4989d8b.webp) You can [create a schedule](../../building-pipelines/create-schedule/index.md) on the output dataset of a batch deployment for it to automatically update whenever a new model is released to that deployment environment. This is achieved by creating a new logic schedule that builds the output dataset whenever the logic for that dataset updates. When a new model is released in the objective, the logic for the output dataset will be updated and this schedule will be triggered. ![configure batch deployment schedule](../../../assets/4e71381f2e9254d8b10e1b7da61bf8ffd48218f9e980adb761f466a6f7a4292a.webp)