# Model Integration

Model Integration to the platform requires a `.onnx` or `.h5` model.

To integrate the model via the CLI, ensure it's accessible from the Tensorleap [integration script](/tensorleap-integration/writing-integration-code.md)'s root. The model doesn't have to be located under the project root.

A more detailed explanation on how to integrate a model can be found in the [CLI assets upload ](/tensorleap-integration/uploading-with-cli/cli-assets-upload.md#uploading-a-model)section.

{% hint style="warning" %}
Tensorleap compatible models are:

* &#x20;`.onnx` or `.h5` formats.
* Models that has a batch dimension, i.e. inputs has a shape of \[Batch,\*] and outputs have the same batch dimension \[Batch,\*]. Both a dynamic or a hard-coded batches within the model are supported in the platform.
  {% endhint %}


---

# Agent Instructions: Querying This Documentation

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

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.tensorleap.ai/tensorleap-integration/model-integration.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
