-
Notifications
You must be signed in to change notification settings - Fork 35
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Habana Bert Training on Aws Gaudi1 #1
Comments
Hi @rajeshitshoulders, thanks for posting this question. We'll investigate and respond soon. In the future it's best to post these types of questions to our user forum https://forum.habana.ai. |
Hi Greg, any update on this? |
Still investigating. Sorry for the delay. |
Hi @rajeshitshoulders , please follow the instructions from Habana's site here: https://github.com/HabanaAI/Model-References/tree/master/MLPERF2.1/Habana/benchmarks#training-data-for-pytorch-bert We use Packed data for the dataset for best performance. The DL1 instance is not needed to run this Data Preprocessing, so you can use a CPU based instance with 1TB+ of memory and larger disk storage to be able to process the data. More background here: https://developer.habana.ai/tutorials/tensorflow/data-packing-process-for-mlperf-bert/ |
Thankyou Greg, working on dataset preparation as provided |
Hi Greg, I was able to prepare dataset and packed as instructed ran MLperf2.0 training code on DL1 instances. But we had below error with evaluation, but our developer was able to fix and make sure evaluation completed [1,1]:INFO:tensorflow:Inference Time : 8.13254s But, now the issues issue we are getting accuracy as 0.10 with training steps 9120 and LR as 0.0045. Please find the log, could you please helpe here? please let me know if you need a full log file and how to share with you. [1,0]:checkpoint file path=/mnt/dramfs/bert_gaudi4_2023-03-11_033402/ip-10-0-20-243/model.ckpt-9006 Thanks, Rajesh |
hi @rajeshitshoulders we'll review this info and if we need the full log file we'll have you post this to the user forum |
Hi @greg-serochi , I am working with Rajesh on this Bert issue. Could you point out if there is an way to generate wikipedia eval dataset as tfrecord format and then pack it? Thank you |
Hi, I need to run MLPerf 2.0 Intel-Habana Bert training on Aws Gaudi1 processor with image Deep Learning AMI Habana PyTorch 1.12.0 SynapseAI 1.6.0 (Ubuntu 20.04) 20220928. Followed below readme
Readme: https://github.com/mlcommons/training_results_v2.0/tree/main/Intel-HabanaLabs/benchmarks
Dataset : https://github.com/mlcommons/training/tree/master/language_model/tensorflow/bert#download-and-preprocess-datasets
Aws Deep Learning AMI Habana PyTorch 1.12.0 SynapseAI 1.6.0 (Ubuntu 20.04) 20220928 Guaid1 VM, RAM - 742GB and 96core
I've challenges in converting datasets into tf_records, packing script pack_pretraining_data_tfrec never succeeded due memory issue
To convert tf_records with unzipped dataset results_text.zip, when I ran pretraining/create_pretraining_data.py with --input_file=/root/datasets/results4/part-0000* option it tooks almost all the available 742GB memory and swap.
so, I converted each part file into tf_record using for loop.
To use packed method in training, I used script pack_pretraining_data_tfrec to covert tf_records with --max-files option 10 files (default 100), but looks like script load all tf_records into memory sequentially before start pack to create strategy files, hence fill-up all avaiable 742 memory and failed pack.
Hence I tried with Unpacked method, for that I converted tf_records into binary file using script record_to_binary script from GraphCore v1.0 submission,(https://github.com/mlcommons/training_results_v1.0/tree/master/Graphcore/benchmarks/bert/implementations/popart/bert_data)
When i run training process, getting corrupt data.
Questions: Is it right procedure to convert
1/ dataset part file into tf_records one at time.
2/ convert tf_records part-000* into binary file? can the resulted part-*** can be used for unpacked method?
3/ how to get limit max-files to 10 or 25 files in packing?
Please advise if there are any alternative method to pack Bert wiki dataset for Mlperf v2.0 Bert Training for Gaudi.
The text was updated successfully, but these errors were encountered: