Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
%Make sure to have \usepackage{tikz} | |
%https://tex.stackexchange.com/a/45815/140440 - for grid | |
%https://tex.stackexchange.com/a/381175/140440 - for alignment in equation | |
% This function draws a matrix. | |
\newcommand{\mat}[2]{% cols, rows | |
\vcenter{\hbox{ %Vertical alignment | |
\begin{tikzpicture}[scale=0.3, align=center] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- coding: utf-8 -*- | |
"""SimplerMambaSSM.ipynb | |
Automatically generated by Colaboratory. | |
#pip install --pre torch --index-url https://download.pytorch.org/whl/nightly/cu121 | |
Original file is located at | |
https://colab.research.google.com/drive/1g9qpeVcFa0ca0cnhmqusO4RZtQdh9umY | |
""" | |
#!pip install mamba-ssm causal-conv1d | |
#!wget https://raw.githubusercontent.com/karpathy/char-rnn/master/data/tinyshakespeare/input.txt | |
#!mkdir differentattention |