<!--
{
  "availability" : [
    "iOS: 13.0.0 -",
    "iPadOS: 13.0.0 -",
    "macCatalyst: 13.1.0 -",
    "macOS: 10.15.0 -",
    "tvOS: 14.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 6.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "CoreML",
  "identifier" : "/documentation/CoreML/MLWritable",
  "metadataVersion" : "0.1.0",
  "role" : "Protocol",
  "symbol" : {
    "kind" : "Protocol",
    "modules" : [
      "Core ML"
    ],
    "preciseIdentifier" : "c:objc(pl)MLWritable"
  },
  "title" : "MLWritable"
}
-->

# MLWritable

A set of methods that saves a machine learning type to the file system.

```
protocol MLWritable : NSObjectProtocol
```

## Overview

You use [`MLWritable`](/documentation/CoreML/MLWritable) to save any [`MLModel`](/documentation/CoreML/MLModel) instance that adopts the protocol to the file system.

## Topics

### Saving to a file

[`write(to:)`](/documentation/CoreML/MLWritable/write(to:))

Exports a machine learning file to the file system.



---

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)