This repository contains the hands-on introductory deep learning tutorial examples for the Deep Learning for Science school at Berkeley Lab: https://dl4sci-school.lbl.gov/
These jupyter notebooks come from the official TensorFlow 2.0 tutorials at https://www.tensorflow.org/beta.
We made minor updates so attendees could run them on Cori GPU without modification.
Open https://jupyter-dl.nersc.gov/ and log in with your training account credentials.
Start a terminal by scrolling to the bottom of the Launcher window and clicking
the Terminal
button under Other
.
Using the terminal, clone this repository to download all of the tutorial notebooks:
git clone https://github.com/sparticlesteve/dl4sci-tf-tutorials.git
Now you can use the Jupyter file browser to navigate the repository and launch notebooks.
You can test that things are working on a Cori GPU node by running the Test.ipynb notebook.
If you have issues with Cori GPU or if you simply prefer you can run these
examples in the cloud on Google's Collab service. Simply go to the TF webpage
for the specific example (links below) and click Run in Google Collab
.
Note that you may not get access to a GPU on Collab, but the TF tutorials are
designed to execute quickly regardless.
For a good introduction to implementing models in TensorFlow using the recommended Keras API, we recommend working through at least the first few examples below.
The overfitting/underfitting and save/restore examples also demonstrate very practical use-cases that you may want to work through.
Finally, depending on time, you can also try out the advanced examples.
For each example, see if you can successfully modify the code and take note of how results change.
https://www.tensorflow.org/beta/tutorials/keras/basic_classification
https://www.tensorflow.org/beta/tutorials/keras/feature_columns
https://www.tensorflow.org/beta/tutorials/images/intro_to_cnns
https://www.tensorflow.org/beta/tutorials/keras/overfit_and_underfit
https://www.tensorflow.org/beta/tutorials/keras/save_and_restore_models
https://www.tensorflow.org/beta/tutorials/eager/custom_layers
https://www.tensorflow.org/beta/tutorials/generative/dcgan
https://www.tensorflow.org/beta/tutorials/generative/cvae
https://www.tensorflow.org/beta/tutorials/load_data/images
https://www.tensorflow.org/beta/tutorials/text/transformer
https://www.tensorflow.org/beta/tutorials/text/image_captioning