Path: blob/master/labml_nn/activations/fta/experiment.ipynb
4959 views
Kernel: Python 3 (ipykernel)
Fuzzy Tiling Activations
Here we train a transformer that uses Fuzzy Tiling Activation in the Feed-Forward Network. We use it for a language model and train it on Tiny Shakespeare dataset for demonstration. However, this is probably not the ideal task for FTA, and we believe FTA is more suitable for modeling data with continuous variables.
Install the packages
In [ ]:
Imports
In [ ]:
Create an experiment
In [ ]:
Configurations
In [ ]:
Set experiment configurations and assign a configurations dictionary to override configurations
In [ ]:
Set PyTorch models for loading and saving
In [ ]:
Start the experiment and run the training loop.
In [ ]: