Comments (2)
yes I agree with you. we need to decode (using greedy, beam search, top-k, top-p, ...) output tokens.
this code was written in 2019, in that time I was not very familiar with transformer models.
I was 3rd grade in university and I was not managing this code currently
from transformer.
i see the problem too, anyone has right code for evaluate and generate summarize text
from transformer.
Related Issues (19)
- Masked attention HOT 3
- Potential bug in the pad mask HOT 5
- how to get dataset HOT 5
- The experimental results have a large gap with the one in README HOT 2
- Question about implementation in the multi-head attention part HOT 3
- How to convert TorchText 0.9 to the latest version HOT 10
- how to resolve the issue ”No module named 'torch._C'“
- About multi-head attention in attention is all you need, thanks. HOT 2
- src_pad_idx and trg_pad_idx
- About MultiHeadAttention's split method HOT 3
- shaollow copy HOT 1
- Weight matrix sharing confusion
- About initial learing rate HOT 1
- About parameter nums of the model HOT 3
- Questions regarding the implementation HOT 10
- [Bug] LayerNorm should not contain learnable parameters HOT 4
- LayerNorm implement HOT 4
- [Bug] Dropout should comes before residual connection and layer norm HOT 1
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 transformer.