GitXplorerGitXplorer
p

transformers-nlp

public
10 stars
7 forks
0 issues

Commits

List of commits on branch master.
Unverified
0af30c360371c2802db141a38bc2303b450dca2c

visual linguistics

pprajjwal1 committed 5 years ago
Unverified
bd096f8cbce65b840722d8bfa391a573df0d68d5

bert

pprajjwal1 committed 6 years ago
Unverified
218bfc44a4c30c9304e32974f2dd51b60bae98dd

bert

pprajjwal1 committed 6 years ago
Unverified
7b0ff56004d269722bce3f124ed0076021f32217

update

pprajjwal1 committed 6 years ago
Unverified
40e29d4f3f327a70293bff777fe197c4df112a5c

update

pprajjwal1 committed 6 years ago
Unverified
91cc42f72ecc50e62db57f5e59e5632896a19f1f

update

pprajjwal1 committed 6 years ago

README

The README file for this repository.

transformers-nlp

This project contains implementation of transformer models being used in NLP research for various tasks.

This repo contains

Requirements

  • Pytorch == 1.0.0

Getting Started

To create a Transformer

from attention_main import *   
model = create_transformer(5, 5)
model_opt = get_trans_optim(model)
criterion = LabelSmoothing(size=5, padding_idx=0, smoothing=0.0)
fit_transformer(generate_data(5, 30, 20), model, loss_compute(model.generator,criterion,model_opt))