Skip to content
This repository has been archived by the owner on Mar 12, 2020. It is now read-only.

Use pytorch transformer #28

Draft
wants to merge 2 commits into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# To be changed to allennlp>=1.0 once that's released.
git+https://github.com/allenai/allennlp.git@4749fc3
git+https://github.com/allenai/allennlp.git@c5a56a1d68d2520978d1f03e4f8f2728991ab207

word2number>=1.1
py-rouge==1.1
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
#
# As a mitigation, run `pip uninstall allennlp` before installing this
# package.
sha = "4749fc3"
sha = "c5a56a1d68d2520978d1f03e4f8f2728991ab207"
requirement = f"allennlp @ git+https://github.com/allenai/allennlp@{sha}#egg=allennlp"
install_requirements.append(requirement)

Expand Down
20 changes: 11 additions & 9 deletions training_config/qanet.jsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -111,15 +111,17 @@
"attention_dropout_prob": 0
},
"dropout_prob": 0.1,
"regularizer": [
[
".*",
{
"type": "l2",
"alpha": 1e-07
}
"regularizer": {
"regexes": [
[
".*",
{
"type": "l2",
"alpha": 1e-07
}
]
]
]
}
},
"data_loader": {
"batch_sampler": {
Expand Down Expand Up @@ -147,4 +149,4 @@
"decay": 0.9999
}
}
}
}