<!--
{
  "availability" : [
    "iOS: 16.0.0 -",
    "iPadOS: 16.0.0 -",
    "macCatalyst: 16.0.0 -",
    "macOS: 13.0.0 -",
    "tvOS: 16.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 9.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "CoreML",
  "identifier" : "/documentation/CoreML/MLModel/load(_:configuration:completionHandler:)",
  "metadataVersion" : "0.1.0",
  "role" : "Type Method",
  "symbol" : {
    "kind" : "Type Method",
    "modules" : [
      "Core ML"
    ],
    "preciseIdentifier" : "c:objc(cs)MLModel(cm)loadModelAsset:configuration:completionHandler:"
  },
  "title" : "load(_:configuration:completionHandler:)"
}
-->

# load(_:configuration:completionHandler:)

Construct a model asynchronously from a compiled model asset.

```
class func load(_ asset: MLModelAsset, configuration: MLModelConfiguration, completionHandler handler: @escaping @Sendable (MLModel?, (any Error)?) -> Void)
```

## Parameters

`asset`

The compiled model asset derived from in-memory or on-disk Core ML model.

`configuration`

The model configuration that holds options for loading the model.

`handler`

The completion handler invoked when the load completes. A valid [`MLModel`](/documentation/CoreML/MLModel) returns on success, or an error if failure.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)