← Docs

Template Reference

· 2 min read

TensorBloom includes 16 pre-built architecture templates. Each template creates a complete graph with a Data node, model layers, and loss function — ready to train with one click.

Getting Started

TemplateDatasetDescription
Simple MLPMNIST3-layer feedforward network. The “hello world” of deep learning.

Vision

TemplateDatasetDescription
LeNet-5MNISTThe original CNN (LeCun 1998). Conv → Pool → Conv → Pool → FC.
ResNet-18CIFAR-10Residual blocks with skip connections (He 2015). Demonstrates Add nodes for skip connections.
Vision Transformer (ViT)CIFAR-10Patch embedding via Conv2d → Transformer encoder stack → classifier (Dosovitskiy 2020).
MobileNetV2 BlockCIFAR-10Inverted residual blocks: expand → depthwise → project + skip (Sandler 2018).
U-NetImageFolderEncoder-decoder with skip connections for image segmentation (Ronneberger 2015). Uses Concatenate nodes.

Language

TemplateDatasetDescription
TransformerWikiText-2Full encoder-decoder transformer with dual embedding inputs (Vaswani 2017).
nanoGPTTinyShakespeareKarpathy’s char-level GPT. 6 decoder layers, 384 dim, 6 heads.
BERT BaseAG News12 encoder layers for text classification. Permute → Pool → Classify.
LSTM Text ClassifierIMDBBidirectional LSTM → Pool → Linear for sentiment analysis.

Audio

TemplateDatasetDescription
Whisper EncoderSpeechCommandsConv1d stem + Transformer encoder for keyword spotting (Radford 2022).
WaveNet BlockSpeechCommandsDilated convolutions (d=1,2,4) with residual connections (van den Oord 2016).

Generative

TemplateDatasetDescription
AutoencoderMNISTSymmetric FC encoder-decoder with bottleneck. Unsupervised reconstruction.
Conv AutoencoderMNISTConvolutional encoder (Conv+Pool) → decoder (ConvTranspose).
Embedding ClassifierMNISTConv feature extractor with learned embedding and classification head.

Other

TemplateDatasetDescription
DenseNet BlockCIFAR-10Dense connectivity via Concatenate nodes. Each layer receives all previous features.

Using Templates

  1. Go to Insert > From Template
  2. Browse by category. Each card shows a preview of the model’s layout, its layer count, dataset, and paper
  3. Click a template to load it
  4. The graph, training config, and dataset are all pre-configured
  5. Press Train (or Ctrl+Enter) to train immediately, or modify the architecture first

Modifying Templates

Templates are starting points. After loading:

  • Change layers — Click any node to edit parameters, or delete/add layers
  • Swap datasets — Click the Data node and select a different source
  • Adjust training — Switch to the Training tab to change optimizer, learning rate, epochs
  • Auto-layout — Press Ctrl+L after making structural changes