Nothing Special   »   [go: up one dir, main page]

Skip to content

hazdzz/Linformer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Linformer

About

The PyTorch implementation of Linformer from the paper Linformer: Self-Attention with Linear Complexity.

Citation

@article{wang2020linformer,
  title     = {Linformer: Self-Attention with Linear Complexity},
  author    = {Sinong Wang and Belinda Z. Li and Madian Khabsa and Han Fang and Hao Ma},
  year      = {2020},
  journal   = {arXiv preprint arXiv: Arxiv-2006.04768}
}

Datasets

  1. LRA: https://mega.nz/file/tBdAyCwA#AvMIYJrkLset-Xb9ruA7fK04zZ_Jx2p7rdwrVVaTckE

Training Steps

  1. Create a data folder:
mkdir data
  1. Download the dataset compressed archive
wget $URL
  1. Decompress the dataset compressed archive and put the contents into the data folder
unzip $dataset.zip
mv $datast ./data/$datast
  1. Run the main file
python $dataset_main.py --task="$task"

Requirements

To install requirements:

pip3 install -r requirements.txt

Releases

No releases published

Packages

No packages published

Languages