# Viewing a model

**URL:** <https://community.konduit.ai/t/viewing-a-model/1223>\
**Category:** SameDiff\
**Created:** [March 6, 2021, 6:53pm UTC](https://community.konduit.ai/t/viewing-a-model/1223 "2021-03-06T18:53:15Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![xiptos](https://yyz1.discourse-cdn.com/flex035/user_avatar/community.konduit.ai/xiptos/32/275_2.png) [@xiptos](https://community.konduit.ai/u/xiptos)\
**Post date:** [March 6, 2021, 6:53pm UTC](https://community.konduit.ai/t/viewing-a-model/1223/1 "2021-03-06T18:53:15Z")

</div>

Hello, everyone

I saw, in this example ([https://github.com/eclipse/deeplearning4j/blob/cbf1fad16c3fefc3009a3048ee840aa02a0c3d99/nd4j/nd4j-backends/nd4j-tests/src/test/java/org/nd4j/imports/TFGraphs/BERTGraphTest.java#L420](https://github.com/eclipse/deeplearning4j/blob/cbf1fad16c3fefc3009a3048ee840aa02a0c3d99/nd4j/nd4j-backends/nd4j-tests/src/test/java/org/nd4j/imports/TFGraphs/BERTGraphTest.java#L420)), that it should be possible to visualize the model by writing it to a file (BERT\_UI.bin) and using DL4J UI (UIServer?) for viewing.

Does anyone knows how? I couldn’t find any reference or example to this…

Cheers,

/rp

---

<div class="post-metadata">

**Author:** ![xiptos](https://yyz1.discourse-cdn.com/flex035/user_avatar/community.konduit.ai/xiptos/32/275_2.png) [@xiptos](https://community.konduit.ai/u/xiptos)\
**Post date:** [March 8, 2021, 12:22am UTC](https://community.konduit.ai/t/viewing-a-model/1223/2 "2021-03-08T00:22:33Z")

</div>

Found it…  
Just add:

```auto
        UIServer uiServer = UIServer.getInstance();

        Thread.sleep(1000000000);

```

To the end of the function and execute.  
Afterwards, point the browser to: [localhost:9000/samediff](https://localhost:9000/samediff), open the file and enjoy…

/rp
