> ## Documentation Index
> Fetch the complete documentation index at: https://docs.fiddler.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# DeploymentParams

> Configuration parameters for deploying a model in the Fiddler platform.

DeploymentParams defines the deployment configuration for a model, including
the artifact type, deployment environment, resource allocation, and container
specifications. These parameters control how the model is packaged, deployed,
and scaled within the Fiddler infrastructure.

This class is used when deploying models to specify the runtime environment,
resource requirements, and deployment strategy that best fits your model's
needs and performance requirements.

## Examples

Creating basic deployment parameters:

```python theme={null}
basic_params = DeploymentParams()
```

Creating deployment with custom resources:

```python theme={null}
custom_params = DeploymentParams(
    artifact_type=ArtifactType.PYTHON_PACKAGE,
    deployment_type=DeploymentType.BASE_CONTAINER,
    replicas=3,
    cpu=1000,  # millicpus (1 vCPU)
    memory=4096  # MiB (4 GiB)
)
```

Creating deployment with custom container:

```python theme={null}
container_params = DeploymentParams(
    artifact_type=ArtifactType.DOCKER_IMAGE,
    deployment_type=DeploymentType.CUSTOM_CONTAINER,
    image_uri="my-registry.com/my-model:v1.0",
    replicas=2,
    cpu=2000,  # millicpus (2 vCPU)
    memory=8192  # MiB (8 GiB)
)
```

## Attributes

**artifact\_type** `str`

Model artifact type; an [`ArtifactType`](https://docs.fiddler.ai/sdk-api/python-client/artifact-type) value (default `PYTHON_PACKAGE`).

**deployment\_type** `DeploymentType`

Deployment type; a [`DeploymentType`](https://docs.fiddler.ai/sdk-api/python-client/deployment-type) value (default `BASE_CONTAINER`).

**image\_uri** `str | None`

URI of the container image used to run the model (optional).

**replicas** `int | None`

Number of replicas to run for the model deployment (optional).

**cpu** `int | None`

CPU allocation per replica, in millicpus (e.g. `250` = 0.25 vCPU).

**memory** `int | None`

Memory allocation per replica, in mebibytes (MiB).
