18 Forks
202 Stars
202 Watchers

knn-transformers

PyTorch + HuggingFace code for RetoMaton: "Neuro-Symbolic Language Modeling with Automaton-augmented Retrieval" (ICML 2022), including an implementation of kNN-LM and kNN-MT

How to download and setup knn-transformers

Open terminal and run command
git clone https://github.com/neulab/knn-transformers.git
git clone is used to create a copy or clone of knn-transformers repositories. You pass git clone a repository URL.
it supports a few different network protocols and corresponding URL formats.

Also you may download zip file with knn-transformers https://github.com/neulab/knn-transformers/archive/master.zip

Or simply clone knn-transformers with SSH
[email protected]:neulab/knn-transformers.git

If you have some problems with knn-transformers

You may open issue on knn-transformers support forum (system) here: https://github.com/neulab/knn-transformers/issues