> For the complete documentation index, see [llms.txt](https://docs.tensorleap.ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.tensorleap.ai/getting-started/tensorleap-setup/post-installation-sanity-check.md).

# Post-Installation Sanity Check

Once you have installed Tensorleap on your local machine or server, you can perform a quick sanity check to ensure the system is fully operational. This guide will walk you through installing the Tensorleap CLI on your machine, authenticating your machine with a secure token, and deploying a sample MNIST project to verify your setup. Please note that the initial model evaluation process may take up to 20 minutes to complete.

### Performing the Sanity

1. Install the Leap CLI on your machine (you write code on) by running the following command:

```
curl -s https://raw.githubusercontent.com/tensorleap/leap-cli/master/install.sh | bash
```

2. Clone the sample mnist project by running the following command:

```
git clone https://github.com/Tensorleap-hub/mnist.git
cd mnist
```

3. Authenticate the CLI:&#x20;

Copy your API token from the Tensorleap UI by navigating to Settings and selecting CLI Token.&#x20;

<figure><img src="https://3509361326-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F9UXeOlFqlw8pl79U2HGU%2Fuploads%2FPIHP7tK9qvuzcZnWwlYR%2FScreenshot%202026-07-05%20at%2016.59.53.png?alt=media&amp;token=e027e82b-3014-4529-878d-8e48fa84a4cb" alt=""><figcaption></figcaption></figure>

Click on "YES, DISABLE MY OLD TOKEN AND GENERATE A NEW ONE"

<figure><img src="https://3509361326-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F9UXeOlFqlw8pl79U2HGU%2Fuploads%2FZi6egPWxtt713yx6TmZ6%2FScreenshot%202026-07-05%20at%2016.29.01.png?alt=media&amp;token=05dcfa31-d88f-4109-b937-46c5decbf784" alt=""><figcaption></figcaption></figure>

Click on the copy icon

<figure><img src="https://3509361326-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F9UXeOlFqlw8pl79U2HGU%2Fuploads%2FxSB3p02HVX3oKbbfD5ez%2FScreenshot%202026-07-05%20at%2016.29.10.png?alt=media&amp;token=d5ddd6ac-39ee-49a0-bd13-4aaf86cfb7c7" alt=""><figcaption></figcaption></figure>

Run the following command and replace the \[Token] with the token ID you've copied

```
leap auth login http://localhost:4589 -k [Token]
```

4. Within the mnist directory run the following command:

```
leap push
```

While being prompt in the process of the leap push run in the cli:

* Create a new project
* Provide a name for the model - For Example modelmnist
* Select the .h5 model
* Reply with a Yes to the Evaluate Model
* Set the batch to 256

<figure><img src="https://3509361326-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F9UXeOlFqlw8pl79U2HGU%2Fuploads%2FvI4ZRKLFXZOjvhXSFNom%2FScreenshot%202026-07-05%20at%2016.57.10.png?alt=media&amp;token=2b7de916-319d-4e8b-8f06-18838fe23d51" alt=""><figcaption></figcaption></figure>

Th evaluate process may take up to 20 minutes


---

# 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.tensorleap.ai/getting-started/tensorleap-setup/post-installation-sanity-check.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.
