[go: nahoru, domu]

Skip to content

Commit

Permalink
added debugging and experiments
Browse files Browse the repository at this point in the history
  • Loading branch information
cfregly committed Apr 6, 2020
1 parent 34d9216 commit dee177f
Show file tree
Hide file tree
Showing 12 changed files with 621 additions and 605 deletions.
576 changes: 232 additions & 344 deletions 06_train/04_Train_Reviews_BERT_TensorFlow2_ScriptMode.ipynb

Large diffs are not rendered by default.

12 changes: 10 additions & 2 deletions 06_train/src/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
# Add python dependencies here...
scikit-learn==0.20.3
nltk==3.4.5
# SageMaker bug that requires us to do this in the code directly.
#scikit-learn==0.20.3
#tensorflow-hub==0.7.0
#bert-tensorflow==1.0.2

tensorflow==2.2.0-rc1
grpcio
tqdm
bert-for-tf2
sentencepiece
8 changes: 4 additions & 4 deletions 06_train/src/test-local.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
python copy_data_locally.py

SM_CHANNEL_TRAIN=feature-store/amazon-reviews/csv/balanced-tfidf-without-header/train SM_CHANNEL_VALIDATION=feature-store/amazon-reviews/csv/balanced-tfidf-without-header/validation SM_MODEL_DIR=. python xgboost_reviews.py
# --num-rounds=10
rm -rf model/
rm -rf output/
#SM_INPUT_DATA_CONFIG={\"train\":{\"TrainingInputMode\":\"Pipe\"}}
SM_CURRENT_HOST=blah SM_NUM_GPUS=0 SM_HOSTS={\"hosts\":\"blah\"} SM_MODEL_DIR=model/ SM_OUTPUT_DATA_DIR=output/ SM_CHANNEL_TRAIN=data/train SM_CHANNEL_VALIDATION=data/validation SM_CHANNEL_TEST=data/test python tf_bert_reviews.py --use-xla=False --use-amp=False --train-batch-size=8 --validation-batch-size=8 --test-batch-size=8 --epochs=2 --train-steps-per-epoch=10 --validation-steps=10 --test-steps=10 --max-seq-length=128 --freeze-bert-layer=False --enable-sagemaker-debugger=True
368 changes: 368 additions & 0 deletions 06_train/src/tf_bert_reviews.py

Large diffs are not rendered by default.

11 changes: 0 additions & 11 deletions 06_train/src_bert_tf2/requirements.txt

This file was deleted.

2 changes: 0 additions & 2 deletions 06_train/src_bert_tf2/test-local.sh

This file was deleted.

242 changes: 0 additions & 242 deletions 06_train/src_bert_tf2/tf_bert_reviews.py

This file was deleted.

File renamed without changes.
File renamed without changes.
3 changes: 3 additions & 0 deletions 06_train/wip/src/requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Add python dependencies here...
scikit-learn==0.20.3
nltk==3.4.5
4 changes: 4 additions & 0 deletions 06_train/wip/src/test-local.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
python copy_data_locally.py

SM_CHANNEL_TRAIN=feature-store/amazon-reviews/csv/balanced-tfidf-without-header/train SM_CHANNEL_VALIDATION=feature-store/amazon-reviews/csv/balanced-tfidf-without-header/validation SM_MODEL_DIR=. python xgboost_reviews.py
# --num-rounds=10
File renamed without changes.

0 comments on commit dee177f

Please sign in to comment.