---
title: "load(contentsOf:configuration:)"
framework: coreml
role: symbol
role_heading: Type Method
path: "coreml/mlcomputeplan-1w21n/load(contentsof:configuration:)"
---

# load(contentsOf:configuration:)

Construct the compute plan of a model asynchronously given the location of its on-disk representation.

## Declaration

```swift
static func load(contentsOf url: URL, configuration: MLModelConfiguration) async throws -> MLComputePlan
```

## Parameters

- `url`: The on-disk location of the compiled model (.mlmodelc directory).
- `configuration`: The model configuration.

## See Also

### Loading a compute plan

- [load(asset:configuration:)](coreml/mlcomputeplan-1w21n/load(asset:configuration:).md)
