Features

What TensorBloom does.

Graph Editor

Node-based canvas for PyTorch networks. Each node is a module — drag it on, connect it, configure its parameters. Text stays readable at the opening zoom, and below 50% nodes switch to just their titles so large models fit on screen. Skip connections run dotted beside the block they skip.

ResNet-18 in the graph editor after a training run, each layer colored by its gradient

80+ Modules

Linear, convolution, pooling, normalization, activation, recurrent, transformer, dropout, embedding, loss, reshape, math, and vision layers, plus the DecoderBlock that current LLMs are built from, in eight color families that each have their own icon. Drag a layer from the palette, click it, or Tab to it and press Enter. All configurable from the property panel. See the module reference.

Help for Every Parameter

Every layer parameter and training setting has a ? that explains what it does, on hover or keyboard focus. The torch.nn caption under a layer's name opens its PyTorch docs. The Help menu has a Getting Started guide, the keyboard shortcuts, and links to the docs.

Help text for the padding parameter of a Conv2d layer

Start in Seconds

The editor opens right away. If PyTorch isn't set up yet, a card on the canvas installs it in the background with real progress while you build. An empty canvas offers three starter models, the full template list, and the main shortcuts.

The welcome card on an empty canvas

Desktop and Browser

The desktop app runs on Windows, Linux, and Apple Silicon Macs (from the next release), and trains on NVIDIA GPUs with CUDA or on the Mac GPU. Nothing needs to be installed first: the app sets up its own Python and PyTorch, and updates itself when a new version is out. To look around without installing, the editor runs in your browser: build, check shapes, and see the code, then open the model in the desktop app to train it.

ResNet-18 in the web version, with the card that points training to the desktop app

Shape Errors That Point to the Fix

Tensor shapes propagate through the graph as you build. A mismatch marks the edge into the layer that can't take it, labels the shape it carries, and shows "Gets [1, 512], expects [1, 500]" on the layer. The toolbar lists every problem; click one to jump to it, or apply the offered fix such as Set in_features to 512.

A shape error on fc2, with the fix offered in the Properties panel

Training

Press Train or Ctrl+Enter. The toolbar shows the run live, from the dataset download to the epoch and progress bar to the final accuracy. Charts have a hover readout, and a summary card appears when the run ends. Supports SGD, Adam, AdamW, RMSprop, and schedulers like cosine annealing, step decay, one-cycle, and reduce-on-plateau, plus mixed precision, gradient clipping, early stopping, random seeds, and deterministic mode.

Simple MLP after a training run, with the summary card and charts

Training on the Graph

While a model trains, each layer on the canvas is colored by the gradient reaching it or by how spread out its outputs are. Layers that look wrong are flagged: NaNs, dead ReLU units, and vanishing or exploding gradients. Hover a layer for its gradient over the run, a histogram of its outputs, and its feature maps for a validation sample.

LeNet-5 colored by gradient, with conv2's gradient history, output histogram and feature maps

Pre-flight Review

Before the first epoch, a pre-flight check validates the graph. Suggested fixes, such as correcting in_features or the final layer's output size, are listed with their reasons so you can choose Fix and train, Train without changes, or Cancel. If a run fails, an error panel explains the likely cause in plain language.

Change One Thing

Every run is kept with its curves, settings, and model, saved in the project file. Change one thing starts from a run and follows what you change; train, and the new run sits next to the old one with what changed, how the result moved, and a map of the graph diff. The Runs tab overlays any runs and puts their settings side by side, and Restore brings back any run's graph.

Two runs compared, with the learning rate change and the result beside the curves

Try Your Model

See what a trained model does without exporting it. Try it runs the model on validation samples it didn't train on and shows its top three guesses for each, whether it was right, and the score. Filter to mistakes, draw other samples, or try your own image.

The model's mistakes on validation digits, with its top three guesses

Guided Lessons

Seven short lessons under Help > Lessons: train your first model, fix a shape error, find a learning rate, stop overfitting, add BatchNorm, see why a CNN beats an MLP, and why ReLU trains deep networks. Each starts from a real model, and a panel on the canvas checks each step and offers hints when you're stuck.

The Fix a shape error lesson beside the broken model

Assistant

An optional chat panel, using Claude with your own Anthropic API key. It reads your model, its code, and your runs, so you can ask why a shape is wrong or why validation loss went up. Ask it to add layers, write a custom layer, or set up training, and its changes are previewed on the canvas for you to apply or discard. During a lesson it acts as a tutor.

The assistant's changes previewed on the canvas, with Apply and Discard

Language Models

Import an LLM from Hugging Face, or a .gguf or .safetensors file, without downloading its weights, and see it as a graph. A table shows the memory it needs to run, LoRA fine-tune, or fully fine-tune at 16, 8, and 4 bits against your GPU or Mac. Then chat with it, and fine-tune it with LoRA or QLoRA on your own data.

Qwen2.5-0.5B as a graph, with the memory it needs

Layer Groups

Select layers and press Ctrl+G to put them in a named frame. Collapse a group to one card that shows its parameters and shapes. Groups only organize the canvas, so the model, its code, and its training stay the same, and they're saved with the project.

A collapsed group and an open group on the canvas

Custom Blocks

When the built-in modules aren't enough, create custom blocks with inline PyTorch code. Define __init__ and forward, add input/output handles, and use them like any other node.

Custom block creation dialog

Code Import & Export

Paste PyTorch code and it traces into a graph via torch.fx. The decompiler goes the other way — graph to readable Python. The code panel shows generated code in real time.

Code panel showing generated PyTorch code

Templates

16 architecture templates: Simple MLP, LeNet-5, ResNet-18, ViT, MobileNetV2, U-Net, Transformer, nanoGPT, BERT, LSTM Text Classifier, Whisper Encoder, WaveNet, Autoencoder, Conv Autoencoder, Embedding Classifier, and DenseNet Block. Each card shows a preview of the model's layout, its dataset, and its paper.

The templates dialog with layout previews

Export

ONNX and TorchScript (trace or script mode) from the export dialog, and Python code from the code panel. File > Export Diagram draws the model as a 3D architecture figure for papers and slides, as vector PDF, SVG, or PNG.

ResNet-18 exported as a 3D diagram

Datasets

Built-in loaders for MNIST, Fashion-MNIST, CIFAR-10, CIFAR-100, TinyShakespeare, WikiText-2, IMDB, AG News, SpeechCommands, ImageFolder, HuggingFace (experimental), Custom CSV, and Custom Tensors.

Tensor Mapping

Load your own data files and assign tensor roles visually. Scan a .pt, .npz, or .safetensors file to discover all tensors inside, then map each one as Model Input, Loss Target, or Not Used.

Save & Open Projects

Save your graph, groups, parameters, training configuration, and run history as a .tbloom file. Ctrl+S saves to the project's file, and Ctrl+Shift+S saves a copy elsewhere. A dot marks unsaved changes, and New, Open, and closing the window ask before discarding them. Undo works on the first press, and leftover work comes back as a banner you can restore or discard.

Light & Dark Themes

Toggle between light and dark mode from the toolbar or the View menu. Text is at least 11px, colors meet contrast guidelines in both themes, and status is shown with icons as well as color.

TensorBloom light theme

Keyboard Shortcuts

Ctrl+Enter train, Ctrl+K spotlight, Ctrl+J assistant, Ctrl+S save, Ctrl+Z undo, Ctrl+G group, Ctrl+L auto-layout, Ctrl+C/V copy/paste, Ctrl+D duplicate, Escape closes dialogs, Ctrl+/ shows all shortcuts.