Comments (4)
I was thinking more of implementation than the research problem of LSH itself. Well, I'll just leave it for now then.
from reformer-pytorch.
@erickrf yes, I think this was noted in this chart in the paper
The payoffs only come at sequences ~2048 or above, depending on the hash rate. I introduced an extra keyword full_attn_thres
, which you can set at your desired threshold to auto-switch between full and LSH attention, so that there is not wasted time and computation at smaller sequences. The other thing to note is, you could set the n_hashes
to be smaller. Per my conversations with some of the authors, 4 was enough in most of their runs.
from reformer-pytorch.
@erickrf there is also perhaps room to improve on LSH. https://science.sciencemag.org/content/358/6364/793/tab-figures-data But that is more a topic for longer term research. I would be happy to make the framework more flexible to experimentation if that is something you would be interested in
from reformer-pytorch.
@erickrf if you have any ideas for improving on performance, welcoming PRs :)
from reformer-pytorch.
Related Issues (20)
- TOKEN_SELF_ATTN_VALUE and QK attention
- Music Reformer results (some problems) HOT 1
- The exact English pretraining data and Chinese pretraining data that are exact same to the BERT paper's pretraining data.
- Image as input
- why lucidrains use reformerlm as pre train model?
- Class token implementation HOT 1
- Error while testing Code in Readme HOT 2
- Is the argument max_seq_len in Reformer() used? HOT 1
- Reversible layers increase memory usage HOT 1
- self-supervised.py Training Script is it worthwhile pretokenizing ?
- fp16 support
- About sequence length
- Default embeddings are rotary Embeddings not Axialpositional Embeddings as stated by the documentation HOT 1
- error in eval loss & ppl
- half precision on long sequence doesn't work HOT 3
- FLOPs calculation for LSHSelfAttention in LSH mode and Full attention mode
- not find axial_positional_embedding.py HOT 2
- ImportError: cannot import name 'amp' from 'apex' HOT 1
- how to get the dataset of enwik8.gz ?
- Is the unsort logits necessary?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from reformer-pytorch.