You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Habitat is a tool that predicts a deep neural network's training iteration
7
3
execution time on a given GPU. It currently supports PyTorch. To learn more
8
4
about how Habitat works, please see our [research
9
5
paper](https://arxiv.org/abs/2102.00527).
6
+
## Installation
7
+
You can install Habitat using the prebuilt wheel files. To install, download the whl files from the [releases page](https://github.com/CentML/habitat/releases) then run:
8
+
```sh
9
+
pip install habitat*.whl
10
+
```
10
11
12
+
## Usage example
13
+
You can verify your Habitat installation by running the simple usage example. This example measures a single inference iteration of Resnet50 on the RTX2080Ti and extrapolates the runtime to the V100.
14
+
```py
15
+
import habitat
16
+
import torch
17
+
import torchvision.models as models
11
18
12
-
## Running From Source
13
-
14
-
Currently, the only way to run Habitat is to build it from source. You should
15
-
use the Docker image provided in this repository to make sure that you can
16
-
compile the code.
17
-
18
-
1. Download the [Habitat pre-trained
19
-
models](https://doi.org/10.5281/zenodo.4876277).
20
-
2. Run `extract-models.sh` under `analyzer` to extract and install the
21
-
pre-trained models.
22
-
3. Run `setup.sh` under `docker/` to build the Habitat container image.
23
-
4. Run `start.sh` to start a new container. By default, your home directory
24
-
will be mounted inside the container under `~/home`.
25
-
5. Once inside the container, run `install-dev.sh` under `analyzer/` to build
26
-
and install the Habitat package.
27
-
6. In your scripts, `import habitat` to get access to Habitat. See
28
-
`experiments/run_experiment.py` for an example showing how to use Habitat.
29
-
30
-
**Note:** Habitat needs access to your GPU's performance counters, which
31
-
requires special permissions if you are running with a recent driver (418.43 or
32
-
later). If you encounter a `CUPTI_ERROR_INSUFFICIENT_PRIVILEGES` error when
0 commit comments