Skip to main content

A lightweight Python package that supplies batteries-included abstractions for PyTorch workflows

Project description

model-sketch

PyPI version License: Apache 2.0 Docs

torch-batteries
Image generated by AI

Python package for generating publication-quality visualizations of PyTorch model architectures. It focuses on clean SVG output, optional PNG export, and a simple API for sketching models from example forward inputs.

Installation

Base installation:

pip install model-sketch

If you also want PNG export support (CairoSVG backend), install the optional PNG extras:

pip install model-sketch[png]

Examples

Explore practical examples demonstrating model-sketch features:

Example Description Notebook Colab
Tiny MLP sketch Build a small MLP, render SVG/PNG, and save outputs to files. simple_model.ipynb Open in Colab

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

model_sketch-0.0.1.tar.gz (12.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

model_sketch-0.0.1-py3-none-any.whl (15.0 kB view details)

Uploaded Python 3

File details

Details for the file model_sketch-0.0.1.tar.gz.

File metadata

  • Download URL: model_sketch-0.0.1.tar.gz
  • Upload date:
  • Size: 12.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.13

File hashes

Hashes for model_sketch-0.0.1.tar.gz
Algorithm Hash digest
SHA256 9d376551846ed571f27d413cb845073ae6fa542bc94e252e11d05c6f0f60739a
MD5 71efc949c98b2a6625ba1b28d3557263
BLAKE2b-256 420bd51b0897e1fcbdfb58db8f31e7f28e07ecd755beb2f114932ab52264bad9

See more details on using hashes here.

File details

Details for the file model_sketch-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: model_sketch-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 15.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.13

File hashes

Hashes for model_sketch-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 e0a1be69701ef0e19426b53779349d4341c287c67d5a9baf981c1c8563714653
MD5 f9fe6d377e8e8c9517b305b4c53e0521
BLAKE2b-256 9ff36528facfbc8a8632ba0a85e43b7ae8e7805a27f5336fb17c3c972c096745

See more details on using hashes here.

Supported by

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