> 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="/files/kdVS8vFl9BPZkYwxyb7u" alt=""><figcaption></figcaption></figure>

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

<figure><img src="/files/7QiIU2icFqHZMWVD94EN" alt=""><figcaption></figcaption></figure>

Click on the copy icon

<figure><img src="/files/H9Plc7ZndfycZYUbITxF" 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="/files/FQZdzC4XMiesMIYelF0b" 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 dynamically by asking a question.

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

```
GET https://docs.tensorleap.ai/getting-started/tensorleap-setup/post-installation-sanity-check.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
