Skip to main content

A tool to visualize big models

Project description

BigModelVis

version

A Tool to Visualize Big Models.

Overview

You can use this tool to visualize the tree structure of big models, with the name/shape of each layer showing in indents.

  • A demo picture of using BigModelVis to show the structure of Bert (bert-base-uncased)

bert_vis

Installation

install the latest pip version

pip install bigmodelvis

or build from source

[TODO] add the git address
git clone xxx
cd bigmodelvis
python setup.py install

Usage

from bigmodelvis import Visualization
from transformers import BertForMaskedLM
model = BertForMaskedLM.from_pretrained('bert-base-uncased')
visobj = Visualization(model)
visobj.structure_graph()

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

bigmodelvis-0.0.1.tar.gz (13.6 kB view hashes)

Uploaded Source

Built Distribution

bigmodelvis-0.0.1-py3-none-any.whl (13.7 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page