MCPcopy Create free account

hub / github.com/SakanaAI/continuous-thought-machines / types & classes

Types & classes41 in github.com/SakanaAI/continuous-thought-machines

↓ 10 callersClassContinuousThoughtMachine
Continuous Thought Machine (CTM). Technical report: https://arxiv.org/abs/2505.05522 Interactive Website: https://pub.sakana.ai/ctm/
models/ctm.py:17
↓ 7 callersClassWarmupCosineAnnealingLR
utils/schedulers.py:16
↓ 7 callersClassWarmupMultiStepLR
utils/schedulers.py:75
↓ 7 callersClasswarmup
utils/schedulers.py:6
↓ 6 callersClassIdentity
Identity Module. Returns the input tensor unchanged. Useful as a placeholder or a no-op layer in nn.Sequential containers or conditional
models/modules.py:12
↓ 6 callersClassMazeImageFolder
A custom dataset class that extends the ImageFolder class. Args: root (string): Root directory path. transform (callable, op
data/custom_datasets.py:142
↓ 5 callersClassLSTMBaseline
LSTM Baseline Args: iterations (int): Number of internal 'thought' steps (T, in paper). d_model (int): Core dimensionality o
models/lstm.py:15
↓ 5 callersClassParityDataset
data/custom_datasets.py:310
↓ 5 callersClassQAMNISTSampler
utils/samplers.py:92
↓ 4 callersClassAgent
tasks/rl/train.py:110
↓ 4 callersClassFFBaseline
LSTM Baseline. Wrapper that lets us use the same backbone as the CTM and LSTM baselines, with a Args: d_model (int): workarou
models/ff.py:8
↓ 4 callersClassImageNet
data/custom_datasets.py:117
↓ 4 callersClassSqueeze
Squeeze Module. Removes a specified dimension of size 1 from the input tensor. Useful for incorporating tensor dimension squeezing withi
models/modules.py:26
↓ 3 callersClassContinuousThoughtMachineQAMNIST
models/ctm_qamnist.py:6
↓ 3 callersClassLearnableFourierPositionalEncoding
Learnable Fourier Feature Positional Encoding. Implements Algorithm 1 from "Learnable Fourier Features for Multi-Dimensional Spatial Pos
models/modules.py:461
↓ 3 callersClassSuperLinear
SuperLinear Layer: Implements Neuron-Level Models (NLMs) for the CTM. This layer is the core component enabling Neuron-Level Models (NLMs),
models/modules.py:146
↓ 2 callersClassClassicControlBackbone
models/modules.py:372
↓ 2 callersClassCustomRotationalEmbedding
Custom Rotational Positional Embedding. Generates 2D positional embeddings based on rotating a fixed start vector. The rotation angle fo
models/modules.py:587
↓ 2 callersClassCustomRotationalEmbedding1D
models/modules.py:667
↓ 2 callersClassFastRandomDistributedSampler
r""" A distributed sampler that continuously yields random indices with replacement, avoiding frequent iterator recreation overhead for DataLo
utils/samplers.py:8
↓ 2 callersClassMNISTBackbone
Simple backbone for MNIST feature extraction.
models/modules.py:315
↓ 2 callersClassMiniGridBackbone
models/modules.py:336
↓ 2 callersClassMultiLearnableFourierPositionalEncoding
Combines multiple LearnableFourierPositionalEncoding modules with different initialization scales (gamma) via a learnable weighted sum.
models/modules.py:533
↓ 2 callersClassParityBackbone
models/modules.py:241
↓ 2 callersClassQAMNISTDataset
A QAMNIST dataset that includes plus and minus operations on MNIST digits.
data/custom_datasets.py:21
↓ 2 callersClassQAMNISTIndexEmbeddings
models/modules.py:262
↓ 2 callersClassQAMNISTOperatorEmbeddings
models/modules.py:253
↓ 2 callersClassShallowWide
Simple, wide, shallow convolutional backbone for image feature extraction. Alternative to ResNet, uses grouped convolutions and GLU activati
models/modules.py:389
↓ 2 callersClassSortDataset
data/custom_datasets.py:10
↓ 2 callersClassSynapseUNET
UNET-style architecture for the Synapse Model (f_theta1 in the paper). This module implements the connections between neurons in the CTM's l
models/modules.py:45
↓ 1 callersClassContinuousThoughtMachineRL
models/ctm_rl.py:10
↓ 1 callersClassContinuousThoughtMachineSORT
Slight adaption of the CTM to work with the sort task.
models/ctm_sort.py:5
↓ 1 callersClassLSTMBaseline
LSTM Baseline Args: iterations (int): Number of internal 'thought' steps (T, in paper). d_model (int): Core dimensionality o
models/lstm_qamnist.py:11
↓ 1 callersClassLSTMBaseline
LSTM Baseline Args: iterations (int): Number of internal 'thought' steps (T, in paper). d_model (int): Core dimensionality
models/lstm_rl.py:12
↓ 1 callersClassMaskVelocityWrapper
Simple wrapper that automatically resets the environment on done. Modeled after EpisodicLifeEnv but simplified since we don't need to han
tasks/rl/envs.py:4
↓ 1 callersClassResNet
models/resnet.py:141
↓ 1 callersClassThoughtSteps
Helper class for managing "thought steps" in the ctm_qamnist pipeline. Args: iterations_per_digit (int): Number of iterations for ea
models/modules.py:280
ClassBasicBlock
models/resnet.py:35
ClassBottleneck
models/resnet.py:84
ClassModularEquationHighlight
tasks/qamnist/analysis/make_blog_gifs_equation_animation.py:6
ClassPretrainedResNetWrapper
Wrapper to use standard pre-trained ResNet models from torchvision. Loads a specified ResNet architecture pre-trained on ImageNet, removes t
models/modules.py:412