Comments (2)
FLOPS are reduced by this line where we cut out parts where the mask is zero https://github.com/facebookresearch/adaptive-span/blob/master/models.py#L67
from adaptive-span.
Got it, your implementation is based on history(transformer-xl like)
Thanks
from adaptive-span.
Related Issues (20)
- Will adaptive-span have faster predictive speeds than gpt-2? HOT 2
- Compute attention span of individual attention heads HOT 1
- Queries about adaptive span HOT 1
- Understanding adaptive-span loss HOT 7
- Warning with PyTorch 1.4 HOT 4
- A question about parameter z_t HOT 9
- Generate text HOT 1
- BPC HOT 6
- Understanding graphs from papers
- What does batch-size mean using distributed trainning? HOT 1
- Please convert to a permissive license
- confuse HOT 1
- Accept a mask to remove padding in batch HOT 1
- what is the cache_size mean? HOT 1
- Why does the hyper-parameter --batch-sz affect the bpc during evaluation? HOT 3
- Where to find the pretrained checkpoint? HOT 1
- Question: How to reduce the memory in this project HOT 7
- did you try to start with maximum possibile cache size HOT 2
- why not compare other local attention methods? HOT 2
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 adaptive-span.