<!--
{
  "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/MLModelAsset",
  "metadataVersion" : "0.1.0",
  "role" : "Class",
  "symbol" : {
    "kind" : "Class",
    "modules" : [
      "Core ML"
    ],
    "preciseIdentifier" : "c:objc(cs)MLModelAsset"
  },
  "title" : "MLModelAsset"
}
-->

# MLModelAsset

An abstraction of a compiled Core ML model asset.

```
class MLModelAsset
```

## Overview

[`MLModelAsset`](/documentation/CoreML/MLModelAsset) provides a unified interface by abstracting the compiled model representations for `.mlmodelc` files and in-memory representations.

To use an in-memory model, create an [`MLModelAsset`](/documentation/CoreML/MLModelAsset) with an in-memory model specification, then call [`load(_:configuration:completionHandler:)`](/documentation/CoreML/MLModel/load(_:configuration:completionHandler:)).

## Topics

### Creating a model asset

[`init(specification:)`](/documentation/CoreML/MLModelAsset/init(specification:))

Creates a model asset from an in-memory model specification.

[`init(specification:blobMapping:)`](/documentation/CoreML/MLModelAsset/init(specification:blobMapping:))

Construct a model asset from an ML Program specification by replacing blob file references with corresponding in-memory blobs.

[`init(url:)`](/documentation/CoreML/MLModelAsset/init(url:)-43988)

Constructs a ModelAsset from a compiled model URL.

### Getting function names

[`functionNames(completionHandler:)`](/documentation/CoreML/MLModelAsset/functionNames(completionHandler:))

The list of function names in the model asset.

### Getting the model description

[`modelDescription(completionHandler:)`](/documentation/CoreML/MLModelAsset/modelDescription(completionHandler:))

The default model descripton.

[`modelDescription(ofFunctionNamed:completionHandler:)`](/documentation/CoreML/MLModelAsset/modelDescription(ofFunctionNamed:completionHandler:))

The model descripton for a specified function.



---

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)