# Inspect the model graph with Model Explorer

## In this learning path

- [Introduction](https://learn.arm.com/learning-paths/mobile-graphics-and-gaming/model-training-gym/)
- [Install Model Gym and explore neural graphics examples](https://learn.arm.com/learning-paths/mobile-graphics-and-gaming/model-training-gym/1-introduction/)
- [Set up your environment](https://learn.arm.com/learning-paths/mobile-graphics-and-gaming/model-training-gym/2-devenv/)
- [Launch the training notebook](https://learn.arm.com/learning-paths/mobile-graphics-and-gaming/model-training-gym/3-model-training/)
- [Fine-tune and export a quantized model](https://learn.arm.com/learning-paths/mobile-graphics-and-gaming/model-training-gym/4-quantization-fine-tuning/)
- [Inspect the model graph with Model Explorer](https://learn.arm.com/learning-paths/mobile-graphics-and-gaming/model-training-gym/4-model-explorer/)
- [Next Steps](https://learn.arm.com/learning-paths/mobile-graphics-and-gaming/model-training-gym/_next-steps/)

## What is Model Explorer?
Model Explorer is a visualization tool for inspecting neural network structures and execution graphs. Arm provides a VGF adapter for Model Explorer, allowing you to inspect the graph of a `.vgf` model created by the export pipeline.

This lets you inspect model architecture, tensor shapes, and graph connectivity before deployment. It does not visualize or evaluate rendered output quality; use the evaluation notebook to compare model output with the ground truth.

## Set up the VGF adapter
The VGF adapter extends Model Explorer to support `.vgf` files exported from the Model Gym toolchain.

## Install the VGF adapter with pip
Run:

```
pip install vgf-adapter-model-explorer
```

The VGF adapter model explorer source code is available on [GitHub](https://github.com/arm/vgf-adapter-model-explorer).

## Install Model Explorer
The next step is to make sure the Model Explorer itself is installed. Use pip to set it up:

```
pip install torch ai-edge-model-explorer
```

## Launch the viewer
Once installed, launch the explorer with the VGF adapter:

```
model-explorer --extensions=vgf_adapter_model_explorer
```

Use the file browser to open the `.vgf` model exported by the QAT notebook from:

```
__output__neural-graphics-model-gym-examples/tutorials/output/vgf
```

You have now trained, evaluated, quantized, and exported an NSS model, then inspected its graph with Model Explorer. Continue to Next Steps for more neural graphics resources.
