bupark82 / the-clean-transformer Goto Github PK
View Code? Open in Web Editor NEWThis project forked from eubinecto/the-clean-transformer
pytorch-lightning과 wandb로 깔끔하게 구현해보는 트랜스포머
This project forked from eubinecto/the-clean-transformer
pytorch-lightning과 wandb로 깔끔하게 구현해보는 트랜스포머
key_padding_mask 적용하기
[PAD] 토큰은 집중할 필요가 없다고 (어텐션=0) 모델에게 알려줘야 한다.
subsequent_mask
구현하기
e.g.
max_length = 3
1 0 0
1 1 0
1 1 1
마스킹을 하지 않으면 모든 시간대에 대하여 가중평균을 하는 어텐션 메카니즘의 특성 상 auto-regressive training을 할 수 없기 때문이다.
'predict' 함수 구현하기
사전학습된 트랜스포머로 한-영 번역을 시도하기 위해선, 다음과 같은 auto-regressive inference 알고리즘을 구현해야 한다. 그 역할을 하는 함수가 'predict'이며, 그것을 구현하고자 한다.
'1st_flask_app' 구현
flask 웹 프레임워크를 사용하여 웹 어플리케이션 개발하기
-[ ] '1st_flask_app' 구현
MultiHeadAttentionLayer 구현
여러 의존관계를 학습하도록 유도하기 위해서.
브랜치 생성
...
isssue 머지 -> learn
'SelfAttentionlayer' 구현
'SelfAttentionLayer' 를 사용하면 단어가 쓰인 문장에서 단어가 가진 맥락을 인코딩 할 수 있기 때문에, 구현해야한다.
EncoderDecoderAttention
구현하기
인코더의 여러 히든 벡터 중에서 각 시간대를 번역하기에 필요한 것을 soft-search 할 수 있다. (word-word alignment)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.