Skip to content
Merged
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
6 changes: 5 additions & 1 deletion examples/bert/bert_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,11 @@
# limitations under the License.
"""Bert model and layer implementations.

We should work to replace this with components from the keras-nlp library.
These components come from the tensorflow official model repository for BERT:
https://github.com/tensorflow/models/tree/master/official/nlp/modeling

This is to get us into a testable state. We should work to replace all of these
components with components from the keras-nlp library.
"""

import tensorflow as tf
Expand Down
3 changes: 3 additions & 0 deletions examples/bert/create_pretraining_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,9 @@
sentence pairs, as will the original paper. So a 20gb source of wikipedia and
bookscorpus will result in a 400gb dataset.

This script is adapted from the original BERT respository:
https://github.com/google-research/bert/blob/master/create_pretraining_data.py

Usage:
python create_pretraining_data.py \
--input_files ~/datasets/bert-sentence-split-data/shard_0.txt \
Expand Down