> For the complete documentation index, see [llms.txt](https://docs.contextsdk.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.contextsdk.com/context-decision/advanced/model-distribution-methods.md). Agents can also search and read this documentation through its [MCP server](https://docs.contextsdk.com/~gitbook/mcp).

# Model Distribution Methods

Learn about the different distribution methods of your ML models.

After our team trains your custom model using your app's data, it can be deployed directly to your users. A custom-trained model ensures optimal performance tailored specifically to your application and user base.

There are two distribution methods:

{% tabs %}
{% tab title="Over-the-Air (Recommended)" %}
We recommend distributing your machine learning models directly to your app over-the-air. This method provides instant updates, requires minimal system resources, and allows us to iterate faster and more efficiently to further improve your app's performance.

Our OTA rollouts are safe, reliable, and won't affect your app's performance. Our systems continuously monitor the rollout and the resulting conversion performance to ensure everything is working as expected.
{% endtab %}

{% tab title="Bundled With Your App" %}
Typically, our team will inform you, based on the flows of your app, whether over-the-air updates are possible. If they're not possible, or if you simply choose not to use over-the-air updates, we offer the option of shipping your custom model with your app, so it's available offline from the first launch.

On iOS, we embed your custom model within a custom-built SDK binary.

On Android, the SDK stays the same for every app, and your models ship in your app's assets instead. We send you a `ContextSDKFlowModels.zip` holding a `contextsdk/flow_models/` folder: a `manifest.json` and one `.ort` file per model. Unzip it into your app module's `src/main/assets/` folder, so you end up with:

```
app/src/main/assets/
└── contextsdk/
    └── flow_models/
        ├── manifest.json
        └── <model version>.ort
```

Add the folder as it is, without renaming or removing any file, and replace the whole folder when we send you a new package. There's no API to call. A model delivered over-the-air still takes precedence over the bundled one.

For Ad Tech apps on `com.contextsdk:contextsdk-adtech`, the same package can also hold the on-device models behind your [Golden Signals](https://docs.contextsdk.com/adtech/golden-signals.md). You add it the same way, and `goldenSignals()` and `fetchGoldenSignals()` return those models' outputs from the first launch, before ContextSDK has fetched any configuration. A model selection we deliver over-the-air takes precedence over the bundled one. `com.contextsdk:contextsdk` ignores these models.

To request a custom SDK binary or a model package, contact us at <support@contextsdk.com>.
{% endtab %}
{% endtabs %}

See [Analytics & Reporting](https://docs.contextsdk.com/context-decision/advanced/analytics-and-reporting.md) to learn how to monitor model rollouts.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.contextsdk.com/context-decision/advanced/model-distribution-methods.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
