Skip to content

tinghanf/RegluarLRNN

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Advancing Regular Language Reasoning in Linear Recurrent Neural Networks

PyTorch implementation of the paper Advancing Regular Language Reasoning in Linear Recurrent Neural Networks

Installation

  • torch >= 2.0 since we used torch.compile
  • If torch.compile doesn't work, remove the line of torch.compile in arithmetic.py, pair.py or cycle.py
  • That's it!

Code Run

Modular Arithmetic:

python arithmetic.py --seed 0

Even Pair:

python pair.py --seed 0

Sum:

python cycle.py --seed 0

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages